autotest-growl 0.2.11 → 0.2.12

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.
@@ -1,3 +1,8 @@
1
+ == 0.2.12 2011-10-11
2
+
3
+ * 1 minor improvement
4
+ * Use RbConfig instead of deprecated Config
5
+
1
6
  == 0.2.11 2011-09-14
2
7
 
3
8
  * 1 minor improvement
@@ -1,5 +1,5 @@
1
1
  class Autotest
2
2
  module Growl
3
- VERSION = "0.2.11"
3
+ VERSION = "0.2.12"
4
4
  end
5
5
  end
@@ -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 Config::CONFIG['host_os']
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 Config::CONFIG['host_os'] =~ /cygwin/i
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 "#{Config::CONFIG['host_os']} is not supported by autotest-growl (feel free to submit a patch)"
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.11
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-09-14 00:00:00 Z
13
+ date: 2011-10-17 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake