Updating to RubyGems 1.8Edit
The RubyGems team has gone on a deprecation frenzy, meaning that after running sudo gem update --system every gem command is likely to spew a bunch of deprecation warnings across the screen.
To silence those, you'll need to do:
$ sudo gem pristine --all --no-extensions
Followed by individually for each extension, potentially with optional build arguments after a --:
$ sudo gem pristine json