Installing the latest upgrade from Apple of Snow Leopard version 10.6.3 will update the installed version of Ruby.
The version of ruby installed is:
Unfortunately, there is a known problem with patchlevel 173.
Under the previous version of ruby that was shipped with Snow Leopard, you would have received the expected answer of 3.0009.
There is a patch that you could try in the short term, otherwise you’re probably best advised to hold off installing 10.6.3. Or, if you’ve already installed it, you can wait until Apple or someone else releases an update.
Update: We are all using RVM now, as this allows us to easily install and use different ruby implementations. At the moment, this is normally the current version (2010.02) of Ruby Enterprise Edition.
A good way to get around this is to use the Ruby Version Manager – http://rvm.beginrescueend.com
I recommend checking out it’s GemSets feature too, makes working with multiple clients/projects much easier.
Unfortunately, I upgraded before reading this. Fortunately, MacPorts (http://www.macports.org/) offers ruby 1.8.7 (2010-01-10 patchlevel 249). All it really took was installing ruby using MacPorts and then reinstalling the gems I use for development.
RVM is definitely the way to go.
people use the ruby that ships with osx? hmm, interesting…