autotest-growl 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.txt +5 -3
- data/Gemfile.lock +1 -1
- data/README.rdoc +18 -1
- data/lib/autotest/growl.rb +10 -3
- data/lib/autotest-growl/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.txt
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
|
1
|
+
== 0.2.9 2010-12-09
|
2
|
+
|
3
|
+
* 1 minor improvement
|
4
|
+
* Remove -w flag but allow custom options
|
5
|
+
|
2
6
|
== 0.2.8 2010-12-02
|
3
7
|
|
4
8
|
* 2 minor improvements
|
5
9
|
* Update README due to autotest naming disagreement
|
6
10
|
* Switch from Jeweler to Bundler for development
|
7
11
|
|
8
|
-
=======
|
9
|
-
>>>>>>> 33b9db1484f1570710104e933ae1f79e5492be18
|
10
12
|
== 0.2.7 2010-10-29
|
11
13
|
|
12
14
|
* 1 minor improvement
|
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -134,6 +134,14 @@ click them away. Simply add the following to your ~/.autotest:
|
|
134
134
|
|
135
135
|
Autotest::Growl::sticky_failure_notifications = true
|
136
136
|
|
137
|
+
=== Custom Options
|
138
|
+
|
139
|
+
You can pass any custom option to the Growl binary. For instance to
|
140
|
+
set a non-standard port for remote notifications, add the following to
|
141
|
+
your ~/.autotest:
|
142
|
+
|
143
|
+
Autotest::Growl::custom_options = '--port 54321'
|
144
|
+
|
137
145
|
=== Show Modified Files
|
138
146
|
|
139
147
|
Add the following to your ~/.autotest if you would like to receive a Growl
|
@@ -170,6 +178,14 @@ whether a firewall is blocking the connection. Once the notification is
|
|
170
178
|
displayed, go back to the System Preferences and disable the checkbox
|
171
179
|
"Allow remote application registration" again.
|
172
180
|
|
181
|
+
=== Duplicate Notifications
|
182
|
+
|
183
|
+
Some people reported problems with duplicate notifications on some versions
|
184
|
+
of Mac OS X 10.5. If you experience this oddity, add the following to your
|
185
|
+
~/.autotest:
|
186
|
+
|
187
|
+
Autotest::Growl::custom_options = '-w'
|
188
|
+
|
173
189
|
=== No Notifications on Mac OS X 10.5
|
174
190
|
|
175
191
|
If you are still on Leopard and notifications don't work for you, get your
|
@@ -182,8 +198,9 @@ You can install the bleeding edge version as follows:
|
|
182
198
|
|
183
199
|
git clone git://github.com/svoop/autotest-growl.git
|
184
200
|
cd autotest-growl
|
201
|
+
bundle install
|
185
202
|
rake build
|
186
|
-
|
203
|
+
rake install
|
187
204
|
|
188
205
|
Please submit issues on:
|
189
206
|
|
data/lib/autotest/growl.rb
CHANGED
@@ -25,6 +25,7 @@ module Autotest::Growl
|
|
25
25
|
@@remote_notification = false
|
26
26
|
@@one_notification_per_run = false
|
27
27
|
@@sticky_failure_notifications = false
|
28
|
+
@@custom_options = ''
|
28
29
|
@@clear_terminal = true
|
29
30
|
@@hide_label = false
|
30
31
|
@@show_modified_files = false
|
@@ -48,6 +49,12 @@ module Autotest::Growl
|
|
48
49
|
@@sticky_failure_notifications = boolean
|
49
50
|
end
|
50
51
|
|
52
|
+
##
|
53
|
+
# Custom options passed to the notification binary
|
54
|
+
def self.custom_options=(options)
|
55
|
+
@@custom_options = options
|
56
|
+
end
|
57
|
+
|
51
58
|
##
|
52
59
|
# Whether to clear the terminal before running tests (default) or not.
|
53
60
|
def self.clear_terminal=(boolean)
|
@@ -83,15 +90,15 @@ module Autotest::Growl
|
|
83
90
|
image = File.join(@@image_dir, "#{icon}.png")
|
84
91
|
case Config::CONFIG['host_os']
|
85
92
|
when /mac os|darwin/i
|
86
|
-
options = "-
|
93
|
+
options = "-n Autotest --image '#{image}' -p #{priority} -m '#{message}' '#{title}' #{'-s' if sticky} #{@@custom_options}"
|
87
94
|
options << " -H localhost" if @@remote_notification
|
88
95
|
system %(#{growl} #{options} &)
|
89
96
|
when /linux|bsd/i
|
90
|
-
system %(notify-send "#{title}" "#{message}" -i #{image} -t 5000)
|
97
|
+
system %(notify-send "#{title}" "#{message}" -i #{image} -t 5000 #{@@custom_options})
|
91
98
|
when /windows|mswin|mingw|cygwin/i
|
92
99
|
growl += '.com'
|
93
100
|
image = `cygpath -w #{image}` if Config::CONFIG['host_os'] =~ /cygwin/i
|
94
|
-
system %(#{growl} #{message.inspect} /a:"Autotest" /r:"Autotest" /n:"Autotest" /i:"#{image}" /p:#{priority} /t:"#{title}" /s:#{sticky})
|
101
|
+
system %(#{growl} #{message.inspect} /a:"Autotest" /r:"Autotest" /n:"Autotest" /i:"#{image}" /p:#{priority} /t:"#{title}" /s:#{sticky} #{@@custom_options})
|
95
102
|
else
|
96
103
|
raise "#{Config::CONFIG['host_os']} is not supported by autotest-growl (feel free to submit a patch)"
|
97
104
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 9
|
9
|
+
version: 0.2.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sven Schwyn
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-09 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|