autotest-growl 0.2.14 → 0.2.16
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/CHANGELOG.txt +10 -0
- data/growl/growlnotify +17 -5
- data/lib/autotest-growl/version.rb +1 -1
- data/lib/autotest/growl.rb +2 -1
- metadata +4 -3
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use ruby-1.9.
|
1
|
+
rvm use ruby-1.9.3-p0@autotest-growl --create
|
data/CHANGELOG.txt
CHANGED
data/growl/growlnotify
CHANGED
@@ -1,7 +1,19 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
for application in "Growl" "GrowlHelperApp"; do
|
4
|
+
version=`osascript -e "get version of application \"$application\"" 2>/dev/null`
|
5
|
+
if [ $? -eq 0 ]; then break; fi
|
6
|
+
done
|
7
|
+
|
8
|
+
case "$version" in
|
9
|
+
"")
|
10
|
+
echo "Growl not found: please install Growl and try again"
|
11
|
+
exit 1
|
12
|
+
;;
|
13
|
+
1.[012]*)
|
14
|
+
$0-1.1.5 "$@"
|
15
|
+
;;
|
16
|
+
*)
|
17
|
+
$0-1.3 "$@"
|
18
|
+
;;
|
19
|
+
esac
|
data/lib/autotest/growl.rb
CHANGED
@@ -95,8 +95,9 @@ module Autotest::Growl
|
|
95
95
|
options << " -H localhost" if @@remote_notification
|
96
96
|
system %(#{growl} #{options} &)
|
97
97
|
when /linux|bsd/i
|
98
|
+
growl = 'notify-send'
|
98
99
|
options = %("#{title}" "#{message}" -i #{image} -t 5000 #{@@custom_options})
|
99
|
-
system %(
|
100
|
+
system %(#{growl} #{options})
|
100
101
|
when /windows|mswin|mingw|cygwin/i
|
101
102
|
growl += '.com'
|
102
103
|
image = `cygpath -w #{image}` if RbConfig::CONFIG['host_os'] =~ /cygwin/i
|
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.16
|
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-11-02 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -128,10 +128,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements: []
|
129
129
|
|
130
130
|
rubyforge_project: autotest-growl
|
131
|
-
rubygems_version: 1.8.
|
131
|
+
rubygems_version: 1.8.11
|
132
132
|
signing_key:
|
133
133
|
specification_version: 3
|
134
134
|
summary: Growl notification support for autotest
|
135
135
|
test_files:
|
136
136
|
- spec/autotest-growl_spec.rb
|
137
137
|
- spec/spec_helper.rb
|
138
|
+
has_rdoc:
|