The other day I wrote an app called dejour to give me growl notifications from all the *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:
Then you can do this:
No growl tweaks required! Here is a code sample that is a little more explanatory:
require 'meow'
meep = Meow.new('My Application Name')
meep.notify('Message Title', 'Message Description')
Be sure to check out the documentation.
All that work just to get rid of my inline help msg
http://github.com/aaronp/dejour/commit/1e589d9bfff7d67a98c881b377610612e1cc9a47
Forgive me for not getting the name, but is “dejour” like “dejour” [http://en.wikipedia.org/wiki/De_jure], “du jour”, or “detour”?
@Dr Nic: Yes that is the only reason I wrote Meow.
@Edward: “Du Jour”, but misspelled. Sorry.
Thank you for this — the world needs more growl integration.
It should be noted that this requires an installation of osx/cocoa, which is pretty involved. Any tips on making this as easy as possible starting from a stock ruby install?
Per the previous comment, I see now that: