Wednesday, November 19, 2008

How to install gem without Rdoc or ri

$gem install passenger -d --no-rdoc --no-ri

2 comments:

george said...

or save yourself some typing by creating a ~/.gemrc file:

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

Christian Lescuyer said...

=== 1.3.6 / 2010-02-17

NOTE:

http://rubygems.org is now the default source for downloading gems.

You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org

http://gems.rubyforge.org will continue to work for the forseeable future.