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.
@@ -135,7 +135,10 @@ module Bamboo
135
135
  end
136
136
 
137
137
  def state
138
- @doc.css("buildState").text.downcase.gsub(/ /, '_').to_sym
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?
@@ -1,5 +1,5 @@
1
1
  module Bamboo
2
2
  module Client
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bamboo-client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jari Bakken