Sunday, January 12, 2014

No Ri and No Rdoc by Default

You can prevent ri and rdoc from being installed on a per (Ruby) gem basis from the command line by adding --no-document to the end of your gem install GEM_NAME command.

If you want ri and rdoc to not be installed by default, put the following in your ~/.gemrc file:


$ cat .gemrc 
--- 
:benchmark: false
gem: --no-document
install: --no-ri --no-rdoc
update: --no-ri --no-rdoc
:update_sources: true
:backtrace: false
:bulk_threshold: 1000
:verbose: true
:sources: 
- http://rubygems.org
- http://gems.github.com
- http://gems.rubyforge.org
- http://gemcutter.org

No comments:

Post a Comment