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:
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):
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
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 Dmytro Samoilov, released under the MIT license