Meow meow meow meow meow

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:

$ gem install meow

Then you can do this:

$ ruby -r rubygems -e'require "meow"; Meow.notify("meow", "meow", "meow")'

No growl tweaks required! Here is a code sample that is a little more explanatory:

require 'rubygems'
require 'meow'

meep = Meow.new('My Application Name')
meep.notify('Message Title', 'Message Description')

Be sure to check out the documentation.

6 Comments

  1. Posted June 6, 2008 at 2:49 pm | Permalink

    All that work just to get rid of my inline help msg :P

    http://github.com/aaronp/dejour/commit/1e589d9bfff7d67a98c881b377610612e1cc9a47

  2. Posted June 6, 2008 at 11:31 pm | Permalink

    Forgive me for not getting the name, but is “dejour” like “dejour” [http://en.wikipedia.org/wiki/De_jure], “du jour”, or “detour”?

  3. Posted June 7, 2008 at 1:33 pm | Permalink

    @Dr Nic: Yes that is the only reason I wrote Meow. ;-)

    @Edward: “Du Jour”, but misspelled. Sorry. :-(

  4. Posted June 18, 2008 at 6:13 am | Permalink

    Thank you for this — the world needs more growl integration.

  5. Joshua Sierles
    Posted July 25, 2008 at 5:28 am | Permalink

    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?

  6. Joshua Sierles
    Posted July 25, 2008 at 5:41 am | Permalink

    Per the previous comment, I see now that:

    • 10.5 includes ruby-cocoa by default
    • if you use macports, you can ‘port install rb-cocoa’ to get it
    • if you have a custom install, a simple ‘rake install’ on the rubycocoa package should work

Post a Comment

Your email is never shared. Required fields are marked *

*
*
Check Spelling
Activate Spell Check while Typing