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 +4 -4
- data/lib/bard.rb +1 -0
- data/lib/bard/ci.rb +4 -2
- data/lib/bard/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7a425db1fb81e8ecc60ca4b660d29345e3b7298
|
4
|
+
data.tar.gz: 304d1b3704221e43956dd9961a2ff6e174c20f62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ff05948b025850324b60f1a66847940e10d411b9d0320632c484dd872ecf40ea82da1d44ea60a98f65edec3e2992d796250a048b14e4e9a864cae26cc85f2b3
|
7
|
+
data.tar.gz: 16c62d15b3c947c794d62208301ae3d3f273ff5832b5932a5c098ef485f884d90734f2e8267ecf0bff8ba159a32424bb690e4f45ffd5c3e958cc20e08c66560e
|
data/lib/bard.rb
CHANGED
data/lib/bard/ci.rb
CHANGED
@@ -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 (
|
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
|
-
|
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
|
data/lib/bard/version.rb
CHANGED
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.
|
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-
|
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.
|
198
|
+
rubygems_version: 2.4.7
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: CLI to automate common development tasks.
|