Wednesday, September 30, 2009

--no-ri --no-rdoc for ruby gem installation

by Sandip Ransing 1 comments

One can install gem without rdoc using

gem install GEM_NAME --no-ri --no-rdoc


Skip ri rdoc for all gem installation as i haven't seen anyone using it.

Edit gemrc file
Add following line to it
vi ~/.gemrc
:gem: --no-ri --no-rdoc


Here is my ~/.gemrc file
---
:verbose: true
gem: --no-ri --no-rdoc
:update_sources: true
:sources:
- http://gems.rubyforge.org
- http://gems.github.com
:backtrace: false
:bulk_threshold: 1000
:benchmark: false


That's it !

blog comments powered by Disqus

About The Author

Sandip is a ruby on rails developer based in pune and also a blogger at funonrails. Opensource contributor and working with Josh software Private Limited. for more info read Follow Sandip on Twitter for updates.

Connect With Me...

Github Projects

@sandipransing Twitter