growl-glue 1.0.5 → 1.0.6
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 +6 -4
- data/lib/growl_glue/autotest.rb +5 -1
- data/lib/growl_glue/config.rb +2 -2
- data/lib/growl_glue.rb +1 -2
- metadata +4 -25
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
data/History.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
=== 1.0.6 / 2009-01-20
|
2
|
+
* Added in a change from "iconofthestoneage":http://github.com/iconofthestoneage to use afplay if available on Leopard. This removes the sndplay dependency if being run on OS X 10.5.
|
3
|
+
|
1
4
|
=== 1.0.5 / 2008-11-06
|
2
5
|
* Fixed bug with regards to using voices with spaces in the names (e.g. Bad News)
|
3
6
|
|
data/README.txt
CHANGED
@@ -8,6 +8,7 @@ Simplifies Growl configuration for 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
10
|
* Ability to use a different OS X voice for each status
|
11
|
+
* Ability to specify sounds for success or failure conditions
|
11
12
|
* RSpec support
|
12
13
|
* Test::Unit support
|
13
14
|
|
@@ -38,15 +39,16 @@ OS X Speech:
|
|
38
39
|
config.say :failure => "PANIC PANIC PANIC"
|
39
40
|
config.voice :failure => "Hysterical"
|
40
41
|
|
41
|
-
|
42
|
+
Audio Notifications:
|
43
|
+
|
44
|
+
If you have *OS X 10.5* -or- *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":
|
42
45
|
|
43
46
|
config.sound :success => "Glass.aiff"
|
44
47
|
config.sound :pending => "Glass.aiff"
|
45
48
|
config.sound :failure => "Basso.aiff"
|
46
49
|
config.sound :location => "/System/Library/Sounds/" (optional)
|
47
50
|
|
48
|
-
GrowlGlue comes with success and error images it will use on test success and error, respectively.
|
49
|
-
If you wish to supply your own, for example:
|
51
|
+
GrowlGlue comes with success and error images it will use on test success and error, respectively. If you wish to supply your own, for example:
|
50
52
|
|
51
53
|
config.image :success => "~/Library/autotest/success.png"
|
52
54
|
config.image :pending => "~/Library/autotest/pending.png"
|
@@ -77,7 +79,7 @@ As an example, this is what I normally use:
|
|
77
79
|
|
78
80
|
== OPTIONAL:
|
79
81
|
|
80
|
-
* sndplay
|
82
|
+
* sndplay for #sound notification (only needed outside of OS X 10.5). If anyone can tell me if earlier versions of OS X have *afplay* please let me know.
|
81
83
|
|
82
84
|
== INSTALL:
|
83
85
|
|
data/lib/growl_glue/autotest.rb
CHANGED
@@ -64,7 +64,11 @@ module GrowlGlue
|
|
64
64
|
def self.sndplay(sound)
|
65
65
|
location = @config.option :sound, :location
|
66
66
|
if sound and location
|
67
|
-
"
|
67
|
+
if (system("which afplay > /dev/null 2>&1"))
|
68
|
+
"afplay #{location}/#{sound} > /dev/null 2>&1"
|
69
|
+
else
|
70
|
+
"sndplay #{location}/#{sound} > /dev/null 2>&1"
|
71
|
+
end
|
68
72
|
end
|
69
73
|
end
|
70
74
|
|
data/lib/growl_glue/config.rb
CHANGED
data/lib/growl_glue.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,15 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Collin VanDyck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
- |
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMRYwFAYDVQQDDA1nbHVl
|
14
|
-
ZHRvbXlzZWF0MRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
|
15
|
-
FgNjb20wHhcNMDgwNzA1MTQxMDQ0WhcNMDkwNzA1MTQxMDQ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Hf4HdyRgbrpT6Mws7g==
|
31
|
-
-----END CERTIFICATE-----
|
10
|
+
cert_chain: []
|
32
11
|
|
33
|
-
date:
|
12
|
+
date: 2009-01-20 00:00:00 -05:00
|
34
13
|
default_executable:
|
35
14
|
dependencies:
|
36
15
|
- !ruby/object:Gem::Dependency
|
@@ -91,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
70
|
requirements: []
|
92
71
|
|
93
72
|
rubyforge_project: growl-glue
|
94
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.3.1
|
95
74
|
signing_key:
|
96
75
|
specification_version: 2
|
97
76
|
summary: Easy configuration of Growl + Autotest
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
Binary file
|