Using --no-rdoc and --no-ri with bundler

Ruby on-RailsRubyRubygemsGemBundler

Ruby on-Rails Problem Overview


When using gem install gem_name I can pass --no-rdoc and --no-ri switches to skip generating RDoc/RI documentation for the gem on install.

Is there a similar way to do this with bundle install?

Ruby on-Rails Solutions


Solution 1 - Ruby on-Rails

Bundler doesn't include rdoc and ri. There is nothing you need to do.

Solution 2 - Ruby on-Rails

Make a file ~/.gemrc and put this in it:

gem: --no-rdoc --no-ri

That should make it apply whenever you run the gem command. (Even from bundle install)

Solution 3 - Ruby on-Rails

See https://stackoverflow.com/a/7662245/109618 for a better ~/.gemrc:

install: --no-rdoc --no-ri 
update:  --no-rdoc --no-ri

Solution 4 - Ruby on-Rails

The up-to-date setting for ~/.gemrc is

gem: --no-document

But as pointed out, this is already bundler's default.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondebView Question on Stackoverflow
Solution 1 - Ruby on-RailsTimbinousView Answer on Stackoverflow
Solution 2 - Ruby on-RailsMitch DempseyView Answer on Stackoverflow
Solution 3 - Ruby on-RailsDavid J.View Answer on Stackoverflow
Solution 4 - Ruby on-RailsthisismydesignView Answer on Stackoverflow