bard 0.19.1 → 0.19.2
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/VERSION +1 -1
- data/lib/bard.rb +2 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.19.
|
|
1
|
+
0.19.2
|
data/lib/bard.rb
CHANGED
|
@@ -183,7 +183,8 @@ EOF
|
|
|
183
183
|
|
|
184
184
|
def get_last_build_number
|
|
185
185
|
response = `curl -s #{ci_host}/lastBuild/api/xml?token=botandrose`
|
|
186
|
-
response.match(/<number>(\d+)<\/number>/)
|
|
186
|
+
response.match(/<number>(\d+)<\/number>/)
|
|
187
|
+
$1 ? $1.to_i : nil
|
|
187
188
|
end
|
|
188
189
|
|
|
189
190
|
def get_last_time_elapsed
|