Upgrade Ruby and RubyGems.