• Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

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
- http://gems.rubyforge.org/
- http://gems.github.com
:benchmark: false
:bulk_threshold: 1000
:backtrace: false
:verbose: true
gem: --no-ri --no-rdoc

21 Responses so far.

  1. sazwqa says:

    Nice trick, is there any reference for all the setting we can set here ?

  2. Akhil Bansal says:

    No, I don’t have such reference. It was just a hit and try

  3. Why would somebody wanna do this?
    Dont you like “gem server” as your local doc server?

  4. Akhil Bansal says:

    @Abhishek: It depends person to person, I don’t use “gem server”. Infact, I just used it once or twice. So why should I wait for ri and rdoc installation, even I don’t use them.

  5. PhilT says:

    You’d want to do this on a production server for example a cloud based system as you’re starting from scratch you want gem install to be as quick as possible. This is a great solution in combination with config.gem and rake gems:install. Thanks!

  6. […] This post was mentioned on Twitter by Jeremy Weiland, Anikendra. Anikendra said: Disable documentation on gem install: http://is.gd/7uWlX #ruby […]

  7. […] thought about this now: skipping gem documentation on the production server. Makes much more […]

  8. Gooder Code says:

    Build & Install Ruby Gems with Rake…

    Are you using rake to build your gems? Have you ever wished there were an install task to install it to your machine? ……

  9. […] http://webonrails.com/2008/12/03/skiping-installation-of-ri-and-rdoc-documentation-while-installing-… LikeBe the first to like this post.▶ No Responses /* 0) { jQuery('#comments').show('', change_location()); jQuery('#showcomments a .closed').css('display', 'none'); jQuery('#showcomments a .open').css('display', 'inline'); return true; } else { jQuery('#comments').hide(''); jQuery('#showcomments a .closed').css('display', 'inline'); jQuery('#showcomments a .open').css('display', 'none'); return false; } } jQuery('#showcomments a').click(function(){ if(jQuery('#comments').css('display') == 'none') { self.location.href = '#comments'; check_location(); } else { check_location('hide'); } }); function change_location() { self.location.href = '#comments'; } }); /* ]]> */ […]

  10. Mohit Jain says:

    Thats a great trick… installing ri and rdoc is really boring…

  11. nikhil yeole says:

    Thanks Akhil for the useful post. It works great. :)

  12. Hey there! I know this is kinda off topic but I was wondering if you knew where I could find a
    captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one?
    Thanks a lot!

  13. You can change your homepage, set the default position for downloads,.
    Enter your full email address contact information into the Account
    name field so that you can label your Hotmail account.

  14. homepage says:

    Merely break a photo of a card, and the app orients it, checks out the text, and also records it to your get in touch
    with list.

  15. Maps, Addresses and Driving Directions to important places such as:
    Local Hospital Emergency Medical or “Walk-In” Clinics; Bank, ATM and Money Exchange; Airport, Train Station,and Bus Stations; Post Office, Fed – Ex, UPS or other Express Mailing Businesses; Grocery Stores, Butcher, Baker,
    Liquor Stores, or other Essential Stores; Internet Caf or Business Center; Recommended
    Restaurants, Cafes, Clubs, or Thoroughfares; Local
    Places of Worship with phone numbers. ‘ Locksmiths can also give genuine suggestions on the
    kind of security systems which should be installed.
    Only the pins and tumblers of the locks are replaced, thereby invalidating
    existing keys.

  16. Clair says:

    Segundo ele, a parte inferior que liga a cabeça ao corpo do órgão age como uma espécie
    de pá, eliminando como um quebra-gelo esperma de parceiros anteriores da mulher.

  17. Cindy says:

    En fait j’ai subi un mini bypass en oméga, mais tout le
    monde racourci ça en bypass, ce qui revient à peu de
    choses près à la même chose, du moins au même résultat, ce sont juste les
    techniques qui changent et surtout le fait que le mini bypass est réversible alors que le bypass
    tout court ne l’est pas.

  18. An intriguing discussion is worth comment. I do
    believe that you ought to publish more about this issue,
    it might not be a taboo subject but generally folks don’t speak
    about such issues. To the next! Best wishes!!

Could not start application xmerl: ...

sudo apt-get install erlang-xmerl can solve following exception while starting ...

Creating command line programs in E...

Note: This is a very basic example of mix tool ...

My first version of Ping-Pong in El...

Recently I have started spending some of my time with ...

Asset Pipeline has been extracted a...

The asset pipeline which was introduced in Rails 3.1, has ...

ClientSideValidations: Add/Map mode...


Asset Pipeline has been extracted a...

The asset pipeline which was introduced in Rails 3.1, has ...

ClientSideValidations: Add/Map mode...


Action and Page caching has been ex...

With the commit c82cf81f00f Action and Page caching has been extracted ...

turbo-sprockets-rails3: Speeds up ...


EdgeRails: ActiveRecord::SessionSto...

With the commit 3324e28804 ActiveRecord::SessionStore is extracted out of Rails into ...