There certainly isn’t a “shortage”:https://rubygems.org/search?utf8=%E2%9C%93&query=growl of “growl”:http://growl.info/ notification libraries out there for “Ruby”:http://www.ruby-lang.org/en/about/. Most of them are built on top of the “ruby-growl”:https://github.com/drbrain/ruby-growl gem which uses Growl’s network API to post notifications.
I wasn’t a fan of using ruby-growl for several reasons:
* It required that you open a port on your machine
* It spawned a new process for each new notification
* The network API wasn’t particularly reliable
I did take a peek at Growl’s archaic ruby “bindings”:http://growl.info/documentation/developer/bindings.php. However, it requires “RubyCocoa”:http://en.wikipedia.org/wiki/RubyCocoa to work which means it can’t be used outside the installed version of Ruby that comes with MacOS X.
I decided it was time to throw my hat into the ring of ubiquitous growl libraries. Say hello to “real-growl”:http://github.com/dewind/real-growl: An easy-to-use growl notification built using native bindings.
h2. Using it
The easiest way to get started is to use the ‘rg’ method — which works just like the “g gem”:https://rubygems.org/gems/g.
If you want, you can create your own custom Growl application.
# “Download”:http://growl.cachefly.net/Growl-1.2.2-SDK.dmg and copy Growl.framework to /Library/Frameworks
# gem install real-growl
h2. What’s next
* Support for growl click notifications
* Add an executable script