Snow Leopard for the Ruby Developer
After the 2009 WWDC release, I decided to give Snow Leopard a try on my production machine. Crossing my fingers, expecting a plethora of broken gems and databases, I wiped my hard drive clean and installed the latest build.
Much to my surprise, most things worked flawlessly and exactly as it did on Leopard.
What Ships with Snow Leopard
$ gem --version
$ ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
$ gem list
*** LOCAL GEMS ***
actionmailer (2.2.2, 1.3.6)
actionpack (2.2.2, 1.13.6)
activerecord (2.2.2, 1.15.6)
activesupport (2.2.2, 1.4.4)
net-sftp (2.0.1, 1.1.1)
net-ssh (2.0.4, 1.1.4)
rails (2.2.2, 1.2.6)
Quite possibly these default gems and versions will change between now and the final release of Snow Leopard. For instance, this seed comes with Rails 2.2.2, even though we are already at 2.3.2. Snow Leopard doesn’t come out till September and by then we could have an even newer version of Rails that might be bundled.
What doesn’t work, and how to fix it.
Textmate - Everything works fine except for the following shortcuts: ⌘←, ⌘→, ⌘⇧←, and ⌘⇧→. These shortcuts are for moving the text insertion point to beginning and end of line, and selecting to beginning and end of line, respectively. The fix is easy, simply download and double click the TextMate macros attached to this ticket
Nokogiri - Nokogiri installs fine but gives error “native.bundle:
mach-o, but wrong architecture” when used. Getting around this is as
easy as running
sudo gem install nokogiri -s http://tenderlovemaking.com/ to get the
latest development release which includes a fix for this.
do_sqlite3 - I haven’t personally used this or tried to fix it but I saw report of it not working by @benlovell
Passenger PrefPane - Preference pane does not load. No known fix (it’s probably an easy fix but I haven’t looked enough into it to try).