autotest-growl 0.2.14 → 0.2.16

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/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use ruby-1.9.2-p180@autotest-growl --create
1
+ rvm use ruby-1.9.3-p0@autotest-growl --create
@@ -1,3 +1,13 @@
1
+ == 0.2.16 2011-11-02
2
+
3
+ * 1 minor improvement
4
+ * Fix growlnotify chooser code
5
+
6
+ == 0.2.15 2011-11-02
7
+
8
+ * 1 minor improvement
9
+ * Choose growlnotify based on installed Growl version
10
+
1
11
  == 0.2.14 2011-10-21
2
12
 
3
13
  * 1 minor improvement
@@ -1,7 +1,19 @@
1
1
  #!/bin/bash
2
2
 
3
- if [[ `uname -r` == 11* ]]; then
4
- $0-1.3 "$@"
5
- else
6
- $0-1.1.5 "$@"
7
- fi
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
@@ -1,5 +1,5 @@
1
1
  class Autotest
2
2
  module Growl
3
- VERSION = "0.2.14"
3
+ VERSION = "0.2.16"
4
4
  end
5
5
  end
@@ -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 %(notify-send #{options})
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.14
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-10-21 00:00:00 Z
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.4
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: