Use ruby 1.8 shim provided by TextMate.

Mac OS 10.10 (Yosemite) no longer includes Ruby 1.8. Use the Ruby 1.8 bundled with TextMate instead.

This also works for older versions of Mac OS Yosemite, as long as a recent version of TextMate is used.