Meow meow meow meow meow 6

Posted by Aaron Patterson on June 06, 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

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.

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. Dr Nic Fri, 06 Jun 2008 14:49:58 PDT

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

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

  2. Edward Ocampo-Gooding Fri, 06 Jun 2008 23:31:53 PDT

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

  3. Aaron Patterson Sat, 07 Jun 2008 13:33:28 PDT

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

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

  4. Collin VanDyck Wed, 18 Jun 2008 06:13:18 PDT

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

  5. Joshua Sierles Fri, 25 Jul 2008 05:28:30 PDT

    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 Fri, 25 Jul 2008 05:41:24 PDT

    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
Comments

Check Spelling
Activate Spell Check while Typing