Meow meow meow meow meow

Posted by – June 6, 2008

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
[/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:

require 'rubygems'
require 'meow'

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

Be sure to check out the documentation.

7 Comments on Meow meow meow meow meow

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

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

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

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

  4. Joshua Sierles says:

    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?

  5. Joshua Sierles says:

    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
  6. John says:

    OSX 10.6.3 64BIT, cant get this working… any tips?

    Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>