ri – WebOnRails http://webonrails.com Mon, 18 Jan 2016 10:25:01 +0000 en-US hourly 1 #/?v=4.4.13 Skiping installation of ri and RDoc documentation while installing gems /2008/12/03/skiping-installation-of-ri-and-rdoc-documentation-while-installing-gems/ /2008/12/03/skiping-installation-of-ri-and-rdoc-documentation-while-installing-gems/#comments Wed, 03 Dec 2008 08:11:17 +0000 /?p=145 Continue reading Skiping installation of ri and RDoc documentation while installing gems]]> Probably most of the time you would like to skip ri and RDoc installation while installing some new gems, specially on production server.

I do like to skip ri and RDoc documentation while installing gems on my development machine, because it takes more time to generate ri and RDoc then actual installation of gem.

We can skip rdoc and ri documentation while installing a gem by:

gem install rails --no-ri --no-rdoc

I am sure that you would not like to give –no-ri and –no-rdoc every time you install a gem. To avoid this situation, you can create/update $HOME/.gemrc file with following option:

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

Now every time you install a gem, it will skip installation of ri and RDoc for the gem.

My .gemrc file looks like:

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

]]>
/2008/12/03/skiping-installation-of-ri-and-rdoc-documentation-while-installing-gems/feed/ 24