test_notifier 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -14,3 +14,7 @@
14
14
  == 0.0.4 2007-10-18
15
15
 
16
16
  * title was displayed incorrectly on growlnotify
17
+
18
+ == 0.0.5 2007-11-08
19
+
20
+ * only mac os x and windows are checked; other systems go to the "else" statement
data/lib/test_notifier.rb CHANGED
@@ -40,9 +40,11 @@ module Test
40
40
  system("growlnotify -n test_notifier --image #{image} -p 2 -m \"#{message}\" -t \"#{title}\"")
41
41
  elsif RUBY_PLATFORM =~ /mswin/
42
42
  Snarl.show_message(title, message, image)
43
- elsif RUBY_PLATFORM =~ /linux/
43
+ else
44
44
  system("notify-send -i #{image} #{title} \"#{message}\"")
45
45
  end
46
+ rescue
47
+ puts "=== test_notifier: No message lib found in your system. Please check the README.txt file"
46
48
  end
47
49
  end
48
50
  end
@@ -2,7 +2,7 @@ module TestNotifier #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: test_notifier
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.4
7
- date: 2007-10-18 00:00:00 -02:00
6
+ version: 0.0.5
7
+ date: 2007-11-08 00:00:00 -02:00
8
8
  summary: Display system notifications (dbus, growl and snarl) after running tests. It works on Mac OS X, Linux and Windows. Powerful when used with Autotest ZenTest gem for Rails apps.
9
9
  require_paths:
10
10
  - lib