https://github.com/german/rnotify
Using NotifyOSD system in Ubuntu to display Rails logger messages and TDD/BDD messages
https://github.com/german/rnotify
Last synced: 11 months ago
JSON representation
Using NotifyOSD system in Ubuntu to display Rails logger messages and TDD/BDD messages
- Host: GitHub
- URL: https://github.com/german/rnotify
- Owner: german
- Created: 2011-12-21T10:08:20.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T09:46:56.000Z (almost 2 years ago)
- Last Synced: 2025-06-29T10:39:47.240Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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:
```sh
$ sudo apt-get install libnotify-bin
```
### Old Ubuntu style (preferred, since it supports stacking of messages):

if you already have notify-osd installed:
```sh
$ 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:
```sh
$ 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:
```sh
$ notification-properties
```

## Installing
then just add this line to your Gemfile:
```ruby
gem 'rnotify'
```
and run
```sh
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