Martin Aumont

Harmony: JavaScript And A DOM Environment In Ruby

harmony.pngHarmony, from Martin Aumont, is a new Ruby DSL for executing JavaScript and DOM-using code from within Ruby apps. Why's that cool? Well, it enables you to build your own Ruby-level unit tests for JavaScript code within your Web applications - everything can be under one set of test suites!

Watchr: A Flexible, Generic Alternative to AutoTest

watcherWatchr is a continuous-testing tool by Martin Aumont in the vein of Autotest (part of the ZenTest package).

At its heart, Watchr basically watches any (or all!) of your project's files, then executes arbitrary Ruby code of your choice when things change.  Watchr configuration takes such a form:

Rails Envy Podcast – Episode #093

Episode #093. Dan Benjamin (Playgrounder, Hivelogic) is back this week. We’ve got a ton of news this week and just maybe an awkward moment or two. Also, I mis-pronounced John Mettreaux’s name wrong, calling him Jake. Sorry about that.

Update: We’re now accepting stories and feedback to @railsenvy on Twitter. You know, if you feel like letting us know about something.

Enumerable#filter

Update: Thanks to some feedback I rewrote Enumberable#filter so it doesn’t use ‘eval’. It’s a bit less flexible now and I also like the syntax less, but at least it doesn’t eat puppies for breakfast. As the disclaimer said, maybe it was a bad idea to begin with.

As much as I like Ruby, some constructs I just don’t find too sexy, e.g.:

[1,2,5,8,7,3,1,9,5].select { |x| x < 5 }

That’s why I came up with an alternative solution which I find reads nicer than the above code:

Syndicate content