bellows 2.0.2 → 2.0.3

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/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ * Mon Aug 19 2013 Dan Prince <dprince@redhat.com> - 2.0.3
2
+ - Fix issue encoding the '%' character in smokestack POST requests.
3
+ - Comment a 'Failed' result for build and test failures.
4
+
1
5
  * Mon Aug 19 2013 Dan Prince <dprince@redhat.com> - 2.0.2
2
6
  - Add support for new SS status types ('BuildFail', 'TestFail', etc.)
3
7
  - Add support for automatic test failure approval.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
data/lib/bellows/http.rb CHANGED
@@ -36,7 +36,7 @@ module URI
36
36
  else
37
37
  str = k.dup
38
38
  str << '='
39
- str << v.to_s
39
+ str << v.to_s.gsub("%", "%25")
40
40
  end
41
41
  end.join('&')
42
42
  end
data/lib/bellows/tasks.rb CHANGED
@@ -167,7 +167,15 @@ module Bellows
167
167
  job_datas.each do |arr|
168
168
  comment_config = arr[0]
169
169
  job_data = arr[1]
170
- message += "\t#{comment_config['description']} #{job_data['status']}:#{job_data['msg']} #{configs['smokestack_url']}/?go=/jobs/#{job_data['id']}\n"
170
+ status = 'UNKNOWN'
171
+ if job_data['status'] == 'Success' then
172
+ status = 'SUCCESS'
173
+ elsif ['Failed', 'BuildFail', 'TestFail'].include?(job_data['status']) then
174
+ status = 'FAILED'
175
+ end
176
+
177
+ message += "- #{comment_config['description']} #{configs['smokestack_url']}/?go=/jobs/#{job_data['id']} : #{status} #{job_data['msg']}\n"
178
+
171
179
  verify_vote = -1 if job_data['status'] == 'Failed'
172
180
  end
173
181
  puts message if not options[:quiet]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bellows
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -3928135736151112540
176
+ hash: -2379210457275294056
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  none: false
179
179
  requirements: