Can Bundler be configured to install gems rdoc?

2.4k views Asked by At

I use bdoc (with hanna for formatting) as a quick way of looking at the rdoc documentation for the gems installed on my system. However, because bundler does not install rdoc when installing gems, I'm constantly having to generate them manually whenever I start using a new gem, or update an existing one.

Does anyone know if there's a way of configuring bundler to get it to install rdoc when installing gems to avoid me having to do it manually? I can't see any mention of this in the bundler source, nor in the config manual.

3

There are 3 answers

0
Lawrence I. Siden On

If you use rvm, try "rvm rdocs generate ..."

0
eloyesp On

My first answer is wrong, there is a feature request for bundle on this and an invitations from the developer to implement this option.

https://github.com/carlhuda/bundler/issues/383

1
colinross On

bundler is concerned with an application's environmental dependencies. rdoc is not an environment dependency, but a developer resource tool.

(continue to) use gem rdoc gemname