autotest-growl 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +5 -0
- data/lib/autotest-growl/version.rb +1 -1
- data/lib/autotest/growl.rb +3 -3
- metadata +2 -2
data/CHANGELOG.txt
CHANGED
data/lib/autotest/growl.rb
CHANGED
@@ -89,7 +89,7 @@ module Autotest::Growl
|
|
89
89
|
growl = File.join(GEM_PATH, 'growl', 'growlnotify')
|
90
90
|
sender = 'Autotest'
|
91
91
|
image = File.join(@@image_dir, "#{icon}.png")
|
92
|
-
case
|
92
|
+
case RbConfig::CONFIG['host_os']
|
93
93
|
when /mac os|darwin/i
|
94
94
|
options = %(-n "#{sender}" --image "#{image}" -p #{priority} -m "#{message}" "#{title}" #{'-s' if sticky} #{@@custom_options})
|
95
95
|
options << " -H localhost" if @@remote_notification
|
@@ -99,12 +99,12 @@ module Autotest::Growl
|
|
99
99
|
system %(notify-send #{options})
|
100
100
|
when /windows|mswin|mingw|cygwin/i
|
101
101
|
growl += '.com'
|
102
|
-
image = `cygpath -w #{image}` if
|
102
|
+
image = `cygpath -w #{image}` if RbConfig::CONFIG['host_os'] =~ /cygwin/i
|
103
103
|
options = %(/a:"#{sender}" /n:"#{sender}-#{icon}" /i:"#{image}" /p:#{priority} /t:"#{title}" /s:#{sticky} /silent:true)
|
104
104
|
options << %( /r:"#{sender}-failed","#{sender}-passed","#{sender}-pending","#{sender}-error")
|
105
105
|
system %(#{growl} #{message.inspect} #{options})
|
106
106
|
else
|
107
|
-
raise "#{
|
107
|
+
raise "#{RbConfig::CONFIG['host_os']} is not supported by autotest-growl (feel free to submit a patch)"
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: autotest-growl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.12
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sven Schwyn
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-10-17 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|