bamboo-client 0.0.4 → 0.0.5
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/lib/bamboo-client/remote.rb +4 -1
- data/lib/bamboo-client/version.rb +1 -1
- metadata +1 -1
data/lib/bamboo-client/remote.rb
CHANGED
@@ -135,7 +135,10 @@ module Bamboo
|
|
135
135
|
end
|
136
136
|
|
137
137
|
def state
|
138
|
-
@doc.css("buildState").text
|
138
|
+
text = @doc.css("buildState").text
|
139
|
+
|
140
|
+
return 'unknown' if text.strip.empty?
|
141
|
+
text.downcase.gsub(/ /, '_').to_sym
|
139
142
|
end
|
140
143
|
|
141
144
|
def successful?
|