public
Rubygem
Description: This gem set the autotest (ZenTest) to send messages to software as Growl, LibNotify, and Snarl, displaying a window with the results.
Homepage: http://www.nomedojogo.com/
Clone URL: git://github.com/carlosbrando/autotest-notification.git
Added Special Doom Edition to all plataforms.
carlosbrando (author)
Tue Jun 17 06:03:53 -0700 2008
commit  9284222d46e9d60c90b0e3431aa56776d3df29f6
tree    e0da9f7a93970fb6a5ead9bf881f9c23e1345fdc
parent  58db5cd689ec470c138ffcb7b57e3fa3c2a344f6
...
39
40
41
 
 
 
42
43
44
45
46
 
47
48
49
...
39
40
41
42
43
44
45
46
47
48
 
49
50
51
52
0
@@ -39,11 +39,14 @@ module AutotestNotification
0
 
0
   class << self
0
     def notify(title, msg, img = SUCCESS_IMAGE, total = 1, failures = 0, pri = 0)
0
+
0
+ img = Doom.image(total, failures) if DOOM_EDITION
0
+
0
       case RUBY_PLATFORM
0
       when /linux/
0
         Linux.notify(title, msg, img, failures)
0
       when /darwin/
0
- Mac.notify(title, msg, img, total, failures, pri)
0
+ Mac.notify(title, msg, img, failures, pri)
0
       when /cygwin/
0
         Cygwin.notify(title, msg, img)
0
       when /mswin/
...
1
2
3
4
5
6
7
8
9
10
 
11
12
13
...
21
22
23
24
25
26
27
...
1
2
 
3
4
5
 
 
 
 
6
7
8
9
...
17
18
19
 
20
21
22
0
@@ -1,13 +1,9 @@
0
 module AutotestNotification
0
   class Mac
0
-
0
     @last_test_failed = false
0
 
0
     class << self
0
-
0
- def notify(title, msg, img, total = 1, failures = 0, pri = 0)
0
- img = Doom.image(total, failures) if DOOM_EDITION
0
-
0
+ def notify(title, msg, img, failures = 0, pri = 0)
0
         system "growlnotify -n autotest --image #{img} -p #{pri} -m '#{msg}' #{title}"
0
         say(failures) if SPEAKING
0
       end
0
@@ -21,7 +17,6 @@ module AutotestNotification
0
           @last_test_failed = false
0
         end
0
       end
0
-
0
     end
0
   end
0
 end

Comments

    No one has commented yet.