jenkins-status-tool 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,15 +11,15 @@ module JenkinsStatusTool
11
11
 
12
12
  def status
13
13
  case color
14
- when :red then :fail
15
- when :blue then :pass
16
- when :gray then :inactive
14
+ when /red/ then :fail
15
+ when /blue/ then :pass
16
+ when /gray/ then :inactive
17
17
  else :unknown
18
18
  end
19
19
  end
20
20
 
21
21
  def color
22
- data["color"].to_sym
22
+ data["color"]
23
23
  end
24
24
 
25
25
  def rcov_image
@@ -33,4 +33,4 @@ module JenkinsStatusTool
33
33
  end
34
34
 
35
35
  end
36
- end
36
+ end
@@ -1,5 +1,5 @@
1
1
  module JenkinsStatusTool
2
2
  class Version
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins-status-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
- requirement: &70325820167340 !ruby/object:Gem::Requirement
16
+ requirement: &70096697981980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70325820167340
24
+ version_requirements: *70096697981980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70325820166820 !ruby/object:Gem::Requirement
27
+ requirement: &70096697981440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70325820166820
35
+ version_requirements: *70096697981440
36
36
  description: JenkinsStatusTool - get jenkins status
37
37
  email: eran@kontera.com
38
38
  executables: