How to speed up gem installs
Tháng Ba 8, 2009
Answer: Turn off ri and rdoc installation. Sure, you can do this on the commandline, like so:
sudo gem install fastercsv --no-ri --no-rdoc
Better, though, is to set this up as the default in your ~/.gemrc file.
--- :verbose: true :sources: - http://gems.rubyforge.org/ - http://gems.github.com/ :update_sources: true :backtrace: false :bulk_threshold: 1000 :benchmark: false gem: --no-ri --no-rdoc
Just add that last line and your gem installations will complete in no time.
Sometimes it’s the smaller, throwaway tips that can really brighten your day.