This small gem is supposed to be used on Ubuntu only (for now). It's actually work in progress. rnotify displays certain messages in NotifyOSD so you shouldn't distract to see what's going on in the console:

  • Rails.logger messages (ones with severity >= WARN level)

  • Results of running rspec/cucumber/test::unit test suits

2 possible notifications styles

New Ubuntu style:

rnotify screenshot

In order to use it you just need to make sure you have a 'libnotify-bin' package installed:

$ sudo apt-get install libnotify-bin

Old Ubuntu style (preferred, since it supports stacking of messages):

rnotify screenshot with notification-daemon

if you already have notify-osd installed:

$ sudo apt-get install notification-daemon
$ sudo mv /usr/lib/notify-osd/notify-osd /usr/lib/notify-osd/notify-osd-original
$ sudo killall notify-osd
$ sudo ln -s /usr/lib/notification-daemon/notification-daemon /usr/lib/notify-osd/notify-osd

otherwise:

$ sudo apt-get install notification-daemon
$ sudo ln -s /usr/lib/notification-daemon/notification-daemon /usr/lib/notify-osd/notify-osd

Then you could change the look-and-feel of notification window if you want:

$ notification-properties

customizing old notifications style and position

Installing

then just add this line to your Gemfile:

gem 'rnotify'

and run

bundle install

TODO:

  • add minitest adapter
  • messages merging [done - only possible with old ubuntu notification-daemon library]
  • more icons

Copyright © 2011 Dmitrii Samoilov, released under the MIT license