1. Technology
Send to a Friend via Email
You can opt-out at any time. Please refer to our privacy policy for contact information.

Quick Tip: Install Gems Faster


Some larger projects, especially Ruby on Rails, come with quite a bit of documentation. This is good, documentation is good, but the code that processes this documentation (RDoc) into HTML and ri format is not exactly speedy. On slower computers, or with larger projects, the time this takes becomes and annoyance.

You can get around this though. By installing Gems with the --no-rdoc --no-ri switches will skip this step.

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

If you want this to be the default behavior every time you install a new gem, you can put this into your .gemrc file. This will define the default parameters that will be passed to the gem command every time you run it. To do this, open your .gemrc file (stored in your home directory on Linux and OS X) and add the following line.

gem: --no-ri --no-rdoc
  1. About.com
  2. Technology
  3. Ruby
  4. Beginning Ruby
  5. Quick Tip: Install Gems Faster

©2014 About.com. All rights reserved.