Sha256: 2ea293553072c549d1858637f860ba2aba3fe2b329b85526f2c4d10b42d0f090
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
= Notifier for testing framework riot. Notifies you about passes, errors, failures via $HOME/bin/notify_redgreen == Usage # in your test/helper.rb require 'riot' require 'riot_notifier' # Using notify-send (see below for wrapper script) Riot.reporter = RiotNotifier::RedgreenNotifier # Using libnotify gem (ruby bindings using ffi) # gem install libnotify Riot.reporter = RiotNotifier::Libnotify == notify_redgreen Your $HOME/bin/notify_redgreen #!/bin/sh case "$1" in red) OPTIONS="-t 2500 -u critical -i /usr/share/icons/gnome/scalable/emotes/face-angry.svg :-(" ;; green) OPTIONS="-t 2000 -u normal -i /usr/share/icons/gnome/scalable/emblems/emblem-default.svg :-)" ;; esac shift notify-send $OPTIONS "$*" == Install via gemcutter gem install gemcutter gem tumble gem install riot_notifier == Authors * Peter Suschlik == TODO * talk to DBUS directly (ruby-dbus?) instead of `notify-send` binary * riot's assertions support blocks! (like asserts_topic.equals { topic }). Use it! * Test Libnotify somehow * Autodetect notify class
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riot_notifier-0.0.6 | README.rdoc |
riot_notifier-0.0.5 | README.rdoc |
riot_notifier-0.0.3 | README.rdoc |