billd 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- billd (0.0.1)
4
+ billd (0.0.2)
5
5
  nokogiri
6
6
 
7
7
  GEM
@@ -11,11 +11,11 @@ Feature: Billd
11
11
  </Projects>
12
12
  """
13
13
  When I run `billd build.xml`
14
- And the stdout should contain:
14
+ Then the stdout should contain:
15
15
  """
16
16
  successful-project: Success!
17
17
  building-from-success-project: Building!
18
18
  building-from-failure-project: Building!
19
19
  failed-project: Failure!
20
20
  """
21
- Then the exit status should be 0
21
+ And the exit status should be 0
@@ -11,14 +11,14 @@ module Billd
11
11
  end
12
12
 
13
13
  def outcome
14
- outcome = :success
15
- outcome = :failure if @status[%Q{lastBuildStatus="Failure"}]
16
- outcome = :building if @status[%Q{activity="Building"}]
14
+ outcome = :success!
15
+ outcome = :failure! if @status[%Q{lastBuildStatus="Failure"}]
16
+ outcome = :building! if @status[%Q{activity="Building"}]
17
17
  outcome
18
18
  end
19
19
 
20
20
  def to_s
21
- "#{name}: #{outcome.to_s.capitalize}!"
21
+ "#{name}: #{outcome.to_s.capitalize}"
22
22
  end
23
23
  end
24
24
  end
@@ -9,9 +9,9 @@ module Billd
9
9
  end
10
10
 
11
11
  def overall
12
- result = :success
13
- result = :failure if @builds.any? { |b| b.outcome == :failure }
14
- result = :building if @builds.any? { |b| b.outcome == :building }
12
+ result = :success!
13
+ result = :failure! if @builds.any? { |b| b.outcome == :failure! }
14
+ result = :building! if @builds.any? { |b| b.outcome == :building! }
15
15
  result
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Billd
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -10,21 +10,21 @@ describe Billd::Build do
10
10
 
11
11
  describe 'passing' do
12
12
  let(:status) { %Q{<Project name="my-project" lastBuildStatus="Success" activity="Sleeping"/>} }
13
- its(:outcome) { should == :success }
13
+ its(:outcome) { should == :success! }
14
14
  end
15
15
 
16
16
  describe 'failing' do
17
17
  let(:status) { %Q{<Project name="my-project" lastBuildStatus="Failure" activity="Sleeping"/>} }
18
- its(:outcome) { should == :failure }
18
+ its(:outcome) { should == :failure! }
19
19
  end
20
20
 
21
21
  describe 'building from success' do
22
22
  let(:status) { %Q{<Project name="my-project" lastBuildStatus="Success" activity="Building"/>} }
23
- its(:outcome) { should == :building }
23
+ its(:outcome) { should == :building! }
24
24
  end
25
25
 
26
26
  describe 'building from failure' do
27
27
  let(:status) { %Q{<Project name="my-project" lastBuildStatus="Failure" activity="Building"/>} }
28
- its(:outcome) { should == :building }
28
+ its(:outcome) { should == :building! }
29
29
  end
30
30
  end
@@ -3,9 +3,9 @@ require 'billd/status'
3
3
 
4
4
  describe Billd::Status do
5
5
  let(:uri) { '//build/status' }
6
- let(:successful) { mock 'successful build', :outcome => :success }
7
- let(:failed) { mock 'failed build', :outcome => :failure }
8
- let(:building) { mock 'build being built', :outcome => :building }
6
+ let(:successful) { mock 'successful build', :outcome => :success! }
7
+ let(:failed) { mock 'failed build', :outcome => :failure! }
8
+ let(:building) { mock 'build being built', :outcome => :building! }
9
9
  let(:parsed_builds) { [successful, failed, building] }
10
10
 
11
11
  before { Billd::Parser.should_receive(:parse).with(uri).and_return(parsed_builds) }
@@ -17,12 +17,12 @@ describe Billd::Status do
17
17
  describe 'overall' do
18
18
  describe 'failure > success' do
19
19
  let(:parsed_builds) { [successful, failed] }
20
- its(:overall) { should == :failure }
20
+ its(:overall) { should == :failure! }
21
21
  end
22
22
 
23
23
  describe 'building > failure' do
24
24
  let(:parsed_builds) { [failed, building] }
25
- its(:overall) { should == :building }
25
+ its(:overall) { should == :building! }
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70241263494480 !ruby/object:Gem::Requirement
16
+ requirement: &70312591216280 !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: *70241263494480
24
+ version_requirements: *70312591216280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70241263492920 !ruby/object:Gem::Requirement
27
+ requirement: &70312591214960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70241263492920
35
+ version_requirements: *70312591214960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: aruba
38
- requirement: &70241263491720 !ruby/object:Gem::Requirement
38
+ requirement: &70312591190600 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70241263491720
46
+ version_requirements: *70312591190600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70241263490220 !ruby/object:Gem::Requirement
49
+ requirement: &70312591189140 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70241263490220
57
+ version_requirements: *70312591189140
58
58
  description: For those times when you need to control something based on the status
59
59
  of your build
60
60
  email:
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -4471539915762378743
103
+ hash: 4500181562776859183
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  segments:
111
111
  - 0
112
- hash: -4471539915762378743
112
+ hash: 4500181562776859183
113
113
  requirements: []
114
114
  rubyforge_project: billd
115
115
  rubygems_version: 1.8.11