lib/bamboo-client/remote.rb in bamboo-client-0.0.4 vs lib/bamboo-client/remote.rb in bamboo-client-0.0.5

- old
+ new

@@ -133,10 +133,13 @@ def key @doc.css("buildKey").text end def state - @doc.css("buildState").text.downcase.gsub(/ /, '_').to_sym + text = @doc.css("buildState").text + + return 'unknown' if text.strip.empty? + text.downcase.gsub(/ /, '_').to_sym end def successful? state == :successful end