teapot 1.0.0.pre.rc5 → 1.0.0.pre.rc6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb0a1d45164325d2d77c3d68dc5f459c4c633e4d
4
- data.tar.gz: aabed3ec2828480b020c852c92e1fbc3821935f8
3
+ metadata.gz: ef91d2c537e308cf449f142702c24e4ac5a20e4a
4
+ data.tar.gz: f45f0837983ac6075d89c01f378e6bdfdadd675b
5
5
  SHA512:
6
- metadata.gz: 7f43013b1d0935b6bf97c8caa9e1c72ca0102f5fab5df8e0acfd86e1d1070d209f7b4de3f4dd6184526a6e2448341519e1ab75f794ba2e4a1d90cb8d2e7dd9b4
7
- data.tar.gz: e33f4fc7502997addd232293da08717c0144ef6ab00738f1add4a18f6a3085f94841d69cd5cb67eca72114a40b907c4959176bdd9d7706ef6e9468bba62b7774
6
+ metadata.gz: b3895f15934a5b63272262a6c74541ed94a24242191914179b44201b03cf8e54efe7a60c696f7ec3ac3bec6a95bf9acee09a4033dca50702a3c7b06d304cb0c0
7
+ data.tar.gz: 9d03e7ee50e14df5903ccc2415063c74e1b948de5498f4eb587bb1374132ab2f5582d562a759ee2cd78ad443c909b04ad04b950861c7921c38e9c63a7443a016
@@ -189,11 +189,13 @@ module Teapot
189
189
  def update!
190
190
  group = Process::Group.new
191
191
 
192
- super do |walker, node|
192
+ walker = super do |walker, node|
193
193
  @task_class.new(self, walker, node, group)
194
194
  end
195
195
 
196
196
  group.wait
197
+
198
+ return walker
197
199
  end
198
200
  end
199
201
  end
@@ -23,6 +23,9 @@ require 'teapot/build'
23
23
 
24
24
  module Teapot
25
25
  class Controller
26
+ class BuildFailedError < StandardError
27
+ end
28
+
26
29
  def build(dependency_names)
27
30
  chain = context.dependency_chain(dependency_names, context.configuration)
28
31
 
@@ -44,10 +47,14 @@ module Teapot
44
47
 
45
48
  controller.run do
46
49
  # The graph has been dirtied because files have changed, traverse and update it:
47
- controller.update_with_log
50
+ walker = controller.update_with_log
48
51
 
49
52
  # Only run once is asked:
50
53
  unless @options[:continuous]
54
+ if walker.failed?
55
+ raise BuildFailedError.new("Failed to build all nodes successfully!")
56
+ end
57
+
51
58
  break
52
59
  end
53
60
 
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Teapot
22
- VERSION = "1.0.0-rc5"
22
+ VERSION = "1.0.0-rc6"
23
23
  end
@@ -33,8 +33,8 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  spec.add_dependency "graphviz", "~> 0.0.2"
35
35
 
36
- spec.add_dependency "build-files", "~> 0.2.6"
37
- spec.add_dependency "build-graph", "~> 0.3.3"
36
+ spec.add_dependency "build-files", "~> 0.2.7"
37
+ spec.add_dependency "build-graph", "~> 0.3.5"
38
38
  spec.add_dependency "build-makefile", "~> 0.2.0"
39
39
 
40
40
  spec.add_dependency "process-daemon", "~> 0.5.5"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teapot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.rc5
4
+ version: 1.0.0.pre.rc6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.6
75
+ version: 0.2.7
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.2.6
82
+ version: 0.2.7
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: build-graph
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.3.3
89
+ version: 0.3.5
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.3.3
96
+ version: 0.3.5
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: build-makefile
99
99
  requirement: !ruby/object:Gem::Requirement