autotest-growl 0.2.9 → 0.2.11

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 ruby-1.9.2-p0@autotest-growl
1
+ rvm use ruby-1.9.2-p180@autotest-growl --create
@@ -1,3 +1,13 @@
1
+ == 0.2.11 2011-09-14
2
+
3
+ * 1 minor improvement
4
+ * Improved growl images (Leif Eriksen)
5
+
6
+ == 0.2.10 2011-02-25
7
+
8
+ * 1 minor improvement
9
+ * Improve notifications for Windows (Gordon Thiesfeld)
10
+
1
11
  == 0.2.9 2010-12-09
2
12
 
3
13
  * 1 minor improvement
@@ -1,22 +1,22 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autotest-growl (0.2.9)
4
+ autotest-growl (0.2.10)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- ZenTest (4.4.1)
9
+ ZenTest (4.5.0)
10
10
  diff-lcs (1.1.2)
11
11
  rake (0.8.7)
12
- rspec (2.2.0)
13
- rspec-core (~> 2.2)
14
- rspec-expectations (~> 2.2)
15
- rspec-mocks (~> 2.2)
16
- rspec-core (2.2.1)
17
- rspec-expectations (2.2.0)
12
+ rspec (2.5.0)
13
+ rspec-core (~> 2.5.0)
14
+ rspec-expectations (~> 2.5.0)
15
+ rspec-mocks (~> 2.5.0)
16
+ rspec-core (2.5.1)
17
+ rspec-expectations (2.5.0)
18
18
  diff-lcs (~> 1.1.2)
19
- rspec-mocks (2.2.0)
19
+ rspec-mocks (2.5.0)
20
20
 
21
21
  PLATFORMS
22
22
  ruby
@@ -192,6 +192,14 @@ If you are still on Leopard and notifications don't work for you, get your
192
192
  hands dirty and remove the "-n Autotest" argument from growl.rb. Make sure
193
193
  you submit a bug or comment on a related and existing bug, too.
194
194
 
195
+ === Strange Characters in Terminal
196
+
197
+ If strange characters show up in the terminal and maybe even lock it up,
198
+ make sure it is set to "xterm-color" or disable the terminal clear
199
+ sequence by adding the follogin to your ~/.autotest:
200
+
201
+ Autotest::Growl::clear_terminal = false
202
+
195
203
  == DEVELOPMENT:
196
204
 
197
205
  You can install the bleeding edge version as follows:
@@ -224,12 +232,14 @@ Thanks to the following folks who have contributed to this project:
224
232
  * Charles Roper
225
233
  * Ben Ritcey
226
234
  * Patrick Aikens
235
+ * Gordon Thiesfeld
236
+ * Leif Eriksen
227
237
 
228
238
  == LICENSE:
229
239
 
230
240
  (The MIT License)
231
241
 
232
- Copyright (c) 2010 Sven Schwyn
242
+ Copyright (c) 2011 Sven Schwyn
233
243
 
234
244
  Permission is hereby granted, free of charge, to any person obtaining
235
245
  a copy of this software and associated documentation files (the
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  class Autotest
2
2
  module Growl
3
- VERSION = "0.2.9"
3
+ VERSION = "0.2.11"
4
4
  end
5
5
  end
@@ -87,18 +87,22 @@ module Autotest::Growl
87
87
  # Display a message through Growl.
88
88
  def self.growl(title, message, icon, priority=0, sticky=false)
89
89
  growl = File.join(GEM_PATH, 'growl', 'growlnotify')
90
+ sender = 'Autotest'
90
91
  image = File.join(@@image_dir, "#{icon}.png")
91
92
  case Config::CONFIG['host_os']
92
93
  when /mac os|darwin/i
93
- options = "-n Autotest --image '#{image}' -p #{priority} -m '#{message}' '#{title}' #{'-s' if sticky} #{@@custom_options}"
94
+ options = %(-n "#{sender}" --image "#{image}" -p #{priority} -m "#{message}" "#{title}" #{'-s' if sticky} #{@@custom_options})
94
95
  options << " -H localhost" if @@remote_notification
95
96
  system %(#{growl} #{options} &)
96
97
  when /linux|bsd/i
97
- system %(notify-send "#{title}" "#{message}" -i #{image} -t 5000 #{@@custom_options})
98
+ options = %("#{title}" "#{message}" -i #{image} -t 5000 #{@@custom_options})
99
+ system %(notify-send #{options})
98
100
  when /windows|mswin|mingw|cygwin/i
99
101
  growl += '.com'
100
102
  image = `cygpath -w #{image}` if Config::CONFIG['host_os'] =~ /cygwin/i
101
- system %(#{growl} #{message.inspect} /a:"Autotest" /r:"Autotest" /n:"Autotest" /i:"#{image}" /p:#{priority} /t:"#{title}" /s:#{sticky} #{@@custom_options})
103
+ options = %(/a:"#{sender}" /n:"#{sender}-#{icon}" /i:"#{image}" /p:#{priority} /t:"#{title}" /s:#{sticky} /silent:true)
104
+ options << %( /r:"#{sender}-failed","#{sender}-passed","#{sender}-pending","#{sender}-error")
105
+ system %(#{growl} #{message.inspect} #{options})
102
106
  else
103
107
  raise "#{Config::CONFIG['host_os']} is not supported by autotest-growl (feel free to submit a patch)"
104
108
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autotest-growl
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 9
9
- version: 0.2.9
4
+ prerelease:
5
+ version: 0.2.11
10
6
  platform: ruby
11
7
  authors:
12
8
  - Sven Schwyn
@@ -14,8 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-12-09 00:00:00 +01:00
18
- default_executable:
13
+ date: 2011-09-14 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: rake
@@ -25,8 +20,6 @@ dependencies:
25
20
  requirements:
26
21
  - - ">="
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
23
  version: "0"
31
24
  type: :development
32
25
  version_requirements: *id001
@@ -38,8 +31,6 @@ dependencies:
38
31
  requirements:
39
32
  - - ">="
40
33
  - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
34
  version: "0"
44
35
  type: :development
45
36
  version_requirements: *id002
@@ -51,8 +42,6 @@ dependencies:
51
42
  requirements:
52
43
  - - ">="
53
44
  - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
45
  version: "0"
57
46
  type: :development
58
47
  version_requirements: *id003
@@ -75,7 +64,6 @@ files:
75
64
  - PostInstall.txt
76
65
  - README.rdoc
77
66
  - Rakefile
78
- - VERSION
79
67
  - autotest-growl.gemspec
80
68
  - growl/growlnotify
81
69
  - growl/growlnotify.com
@@ -95,7 +83,6 @@ files:
95
83
  - lib/autotest/result.rb
96
84
  - spec/autotest-growl_spec.rb
97
85
  - spec/spec_helper.rb
98
- has_rdoc: true
99
86
  homepage: http://www.bitcetera.com/products/autotest-growl
100
87
  licenses: []
101
88
 
@@ -127,21 +114,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
114
  requirements:
128
115
  - - ">="
129
116
  - !ruby/object:Gem::Version
130
- segments:
131
- - 0
132
117
  version: "0"
133
118
  required_rubygems_version: !ruby/object:Gem::Requirement
134
119
  none: false
135
120
  requirements:
136
121
  - - ">="
137
122
  - !ruby/object:Gem::Version
138
- segments:
139
- - 0
140
123
  version: "0"
141
124
  requirements: []
142
125
 
143
126
  rubyforge_project: autotest-growl
144
- rubygems_version: 1.3.7
127
+ rubygems_version: 1.8.4
145
128
  signing_key:
146
129
  specification_version: 3
147
130
  summary: Growl notification support for autotest
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.7