Updating RubyGem on OSX
No gem would install on my machine because my RubyGem was outdated and rubyforge.org kept returning 302 (redirect) status code. After trying every recipe to update RubyGem on Mac OSX that I had the patience for, I came up with my own solution.
sudo ruby ~/Downloads/rubygems-1.8.6/setup.rb sudo gem update --system sudo gem install rubygems-update --source http://production.s3.rubygems.org/ update_rubygems
sudo gem update --system --source http://production.s3.rubygems.org/yaml