Often we want to avoid installing rdoc and ri on production/staging servers.
Simply create .gemrc file in your home directory and add gem: –no-ri –no-rdoc
You can also add few more things like
[source]
:update_sources: true
:sources:
– http://gems.rubyforge.org/
– http://gems.github.com
:benchmark: false
gem: –no-ri –no-rdoc
[/source]