RubyGem 1.0 is out.
Which means that if you see
undefined method `require_gem' for main:Object (NoMethodError)
You’ll need to replace require_gem by just gem.
For example, unless you have the very latest version of ruby-debug (0.9.3), you’ll see the above error. In that case, though, updating your gem is simpler.