bard 0.25.0 → 0.25.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59f134a4a6630cf0e2f30204330e397e65a5aa98
4
- data.tar.gz: b77f661ce53aad8e9434cff7965b5ac647c2d504
3
+ metadata.gz: a7a425db1fb81e8ecc60ca4b660d29345e3b7298
4
+ data.tar.gz: 304d1b3704221e43956dd9961a2ff6e174c20f62
5
5
  SHA512:
6
- metadata.gz: 33a0c836a8bdebb3f8e37f64839aa74ab017d6d33ead1bb342fbb58590cadfd708546227079c7ae89f4210ecab02150a6f0115ae3cd31cd00c669298317cbe59
7
- data.tar.gz: 586166dd5ad5f1e0748f7d42198fa7e3d2ef4919299e7f97466e653ae1e0722421abe532ab300adc762ef3f0a9148997fd0108c31620faffa26a94edde161a5a
6
+ metadata.gz: 3ff05948b025850324b60f1a66847940e10d411b9d0320632c484dd872ecf40ea82da1d44ea60a98f65edec3e2992d796250a048b14e4e9a864cae26cc85f2b3
7
+ data.tar.gz: 16c62d15b3c947c794d62208301ae3d3f273ff5832b5932a5c098ef485f884d90734f2e8267ecf0bff8ba159a32424bb690e4f45ffd5c3e958cc20e08c66560e
@@ -101,6 +101,7 @@ class Bard::CLI < Thor
101
101
  puts "Continuous integration: success! deploying to production"
102
102
  else
103
103
  puts
104
+ puts ci.last_response
104
105
  puts ci.console
105
106
  puts red("Automated tests failed!")
106
107
  exit 1
@@ -7,13 +7,13 @@ class Bard::CLI < Thor
7
7
  sleep(2) while last_build_number == get_last_build_number
8
8
 
9
9
  start_time = Time.new.to_i
10
- while (response = `curl -s #{ci_host}/lastBuild/api/xml?token=botandrose`).include? "<building>true</building>"
10
+ while (self.last_response = `curl -s #{ci_host}/lastBuild/api/xml?token=botandrose`).include? "<building>true</building>"
11
11
  elapsed_time = Time.new.to_i - start_time
12
12
  yield elapsed_time, last_time_elapsed
13
13
  sleep(2)
14
14
  end
15
15
 
16
- response =~ /<result>SUCCESS<\/result>/
16
+ self.last_response =~ /<result>SUCCESS<\/result>/
17
17
  end
18
18
 
19
19
  def exists?
@@ -25,6 +25,8 @@ class Bard::CLI < Thor
25
25
  raw[%r{<pre.*?>(.+)</pre>}m, 1]
26
26
  end
27
27
 
28
+ attr_accessor :last_response
29
+
28
30
  private
29
31
 
30
32
  def ci_host
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.25.0"
2
+ VERSION = "0.25.1"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2015-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  requirements: []
197
197
  rubyforge_project:
198
- rubygems_version: 2.2.2
198
+ rubygems_version: 2.4.7
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: CLI to automate common development tasks.