diego's weblog

there and back again

ruby on os x: some useful links

So I’ve been using whatever free time I have to play a bit more with Ruby and Rails. Here’s some links that I’ve found useful for OS X:

  • Fink. Not Ruby-related, but definitely one of the first things I install in a new Mac. Another thing you probably want to install is MySQL (I have that running separately under Linux already), particularly since the GUI Tools for it have become pretty decent, across all platforms.
  • Netbeans 6. Currently still in beta (at Milestone 10) Netbeans is really the simplest way to play around with Ruby. It includes RubyGems integration — but beware: since it’s actually running JRuby, rather than Ruby, some things will not work and some gems may not be downloadable. To get started, though, it’s an option that’s hard to beat. Unless you’re a TextMate fiend, that is (hey, don’t get me wrong, I love TextMate, but it’s hard to beat an integrated debugger :)). Check out this Netbeans 6 RoR tutorial for more.
  • Ruby One-click Installer for OS X. Now, back in the “Pure Ruby” world, Ruby comes of course preinstalled in OS X but there are some things that aren’t in there by default and others that are outdated — the Ruby One-click Installer for OS X takes care of that. For a bare-bones getting started guide for Rails though, this one from the Apple Developer Connection fits quite well I think.
  • Locomotive. I confess I haven’t tried it (prefer to stick to the command line, just to understand all the rough edges better, or use Netbeans for trying out JRuby) but Locomotive definitely looks like a simple solution for getting Rails running on a Mac quickly.
  • Hpricot. Now, one of the first things I wanted to try out in some depth was HTML parsing. Ruby has REXML (example), but no default HTML parsing I could find. Hpricot seemed to fit the bill. I’m sure there are others out there, but from what I could tell Hpricot is fairly good and stable. Adding JSON to that is also pretty straightforward with the json gem.
  • …and to finish it off, another list: Rui, at The Tao of Mac has a good set of Ruby-related links. Check the dates — some of them are a bit stale.

And that’s it for now!🙂

Comments are closed.

%d bloggers like this: