If you want to know where your Ruby installation is looking to do Gem installations, you can enter the following at a command prompt to find out:
gem sources
You’ll get back a message that looks similar to this:
*** CURRENT SOURCES ***
Bulk updating Gem source index for: http://gems.rubyforge.org
http://gems.rubyforge.org