Problem: Cannot install any gem, any type. But I want to install riddle if that matters.
When I run sudo gem install \"gem_name\" I get the following error:
I was having the same problem and ran the following:
gem env
And saw that I had the following sources in my rubygems configuration:
Based on other answers I've seen here and on the web I decided to remove the rubyonrails.org reference:
sudo gem sources -r http://gems.rubyonrails.org
I was then able to install the gem I was trying to get without the RubyGems 1.2+ index error.
So I'd suggest trimming your list of sources down to just rubyforge and github and then trying to install the gem you want.