I recently released a new version of meow which is a ruby library to easily integrate growl notifications in to your applications. The main feature I added was to make it easy to add growl notifications for autotest.
All you have to do is add “require ‘meow/autotest’” to your .autotest file.
Here is a screencast. Please be kind. This is my first screencast! (that is why I use all the features!)
The other day I wrote an app called dejour to give me growl notifications from allthe*jour gems out there. I used Eric Hodel’s awesome ruby-growl library. Unfortunately it does all communications over the interweb, so you have to tweak some knobs in Growl to get it to work. I stumbled across a ruby/cocoa example using Growl, fixed it up, and released a gem called “Meow”.
Meow lets you post notifications to your local machine without adjusting Growl. If you’re on OS X 10.5, just do:
$ gem install meow
[/sourcecode]
Then you can do this:
$ ruby -r rubygems -e'require "meow"; Meow.notify("meow", "meow", "meow")'
[/sourcecode]
No growl tweaks required! Here is a code sample that is a little more explanatory: