There are a lot of answers for this question that work under older versions of rubygems, but what is the recommended procedure for Rubygems 1.8.x? I have an /etc/gemrc
file that looks like this:
gem: --no-rdoc --no-ri
These options seem to be ignored during any gem install
.
Update:
After doing some more digging, it seems the problem is related to rvm
which partitions not just the various versions of ruby, but their associated configuration files, too. To check where the config file should go, use irb
:
require 'rubygems'
Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE
# => "/opt/local/rvm/rubies/ruby-1.9.2-p180/etc/gemrc"