growl-glue 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/README.txt +20 -4
- data/lib/growl_glue/autotest.rb +4 -3
- data/lib/growl_glue.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -7,6 +7,7 @@ Simplifies Growl configuration for Autotest.
|
|
7
7
|
* Easy configuration of growl notifications in ~/.autotest
|
8
8
|
* Comes bundled with sample green/red images, or you can supply your own
|
9
9
|
* Ability to specify OS X speech options (e.g. "Oh No!", if test failure)
|
10
|
+
* Ability to use a different OS X voice for each status
|
10
11
|
* RSpec support
|
11
12
|
* Test::Unit support
|
12
13
|
|
@@ -31,7 +32,11 @@ It is recommended that you use network notifications due to a bug in Growl on OS
|
|
31
32
|
|
32
33
|
OS X Speech:
|
33
34
|
|
34
|
-
config.say
|
35
|
+
config.say :pending => "Almost there guy!"
|
36
|
+
config.voice :pending => "Boing"
|
37
|
+
|
38
|
+
config.say :failure => "PANIC PANIC PANIC"
|
39
|
+
config.voice :failure => "Hysterical"
|
35
40
|
|
36
41
|
If you have *sndplay* compiled and in the path, you can have different sounds played based on test success or failure. The "location" below is optional, as it defaults to "/System/Library/Sounds":
|
37
42
|
|
@@ -54,11 +59,14 @@ By default, "Tests Passed" and "Tests Failed" will be used as the growl titles.
|
|
54
59
|
As an example, this is what I normally use:
|
55
60
|
|
56
61
|
GrowlGlue::Autotest.initialize do |config|
|
57
|
-
|
58
62
|
config.notification :use_network_notifications => true
|
59
|
-
config.title :success => "Love", :failure => "Hate", :pending => "Keep Going!"
|
60
|
-
config.say :failure => "Something is horribly wrong!"
|
61
63
|
|
64
|
+
config.sound :success => "Glass.aiff"
|
65
|
+
config.sound :pending => "Glass.aiff"
|
66
|
+
|
67
|
+
config.say :failure => "PANIC PANIC PANIC"
|
68
|
+
config.voice :failure => "Hysterical"
|
69
|
+
config.sound :failure => "Basso.aiff"
|
62
70
|
end
|
63
71
|
|
64
72
|
|
@@ -88,6 +96,14 @@ http://github.com/oculardisaster/growl-glue/tree/master
|
|
88
96
|
|
89
97
|
* Collin VanDyck <gluedtomyseat@gmail.com>
|
90
98
|
|
99
|
+
== OTHER
|
100
|
+
|
101
|
+
If you use my gem, and like it, it would be great to get a recommendation on Working with Rails:
|
102
|
+
|
103
|
+
http://workingwithrails.com/recommendation/new/person/13224-collin-vandyck.
|
104
|
+
|
105
|
+
Thanks!
|
106
|
+
|
91
107
|
== LICENSE:
|
92
108
|
|
93
109
|
(The MIT License)
|
data/lib/growl_glue/autotest.rb
CHANGED
@@ -54,9 +54,10 @@ module GrowlGlue
|
|
54
54
|
command.join(" ")
|
55
55
|
end
|
56
56
|
|
57
|
-
def self.say(msg)
|
57
|
+
def self.say(msg, voice=nil)
|
58
58
|
if msg
|
59
|
-
"
|
59
|
+
voice = "-v #{voice}" if voice
|
60
|
+
"say #{voice} '#{msg.gsub(/'/,"")}'"
|
60
61
|
end
|
61
62
|
end
|
62
63
|
|
@@ -70,7 +71,7 @@ module GrowlGlue
|
|
70
71
|
def self.notify(status, title, msg, img=nil, pri=1)
|
71
72
|
with_commands do |commands|
|
72
73
|
commands << growl(title, msg, img, pri)
|
73
|
-
commands << say(@config.option(:say, status))
|
74
|
+
commands << say(@config.option(:say, status), @config.option(:voice, status))
|
74
75
|
commands << sndplay(@config.option(:sound, status))
|
75
76
|
end
|
76
77
|
end
|
data/lib/growl_glue.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: growl-glue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Collin VanDyck
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
jA8FHf4HdyRgbrpT6Mws7g==
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2008-07-
|
33
|
+
date: 2008-07-29 00:00:00 -04:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|