build-graph 2.0.2 → 2.0.3
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.
- checksums.yaml +4 -4
- data/lib/build/graph/task.rb +19 -7
- data/lib/build/graph/version.rb +1 -1
- data/lib/build/graph/walker.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb877a85917d7de8c1d5a9bdc9d992188e8ab4268e567a0d5748186af65bc3bb
|
4
|
+
data.tar.gz: 8300948415d628e720da289156756b4b6cc18f383720e90cb397673df68a2abe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a51e3c3c19fb076cbaa2fdf2f5e7dea616d7c3d1d2434716723a4b2efb56315110098269d3c5e1c84d7b64dfa5244102bd150116d10a796e418073e11811963
|
7
|
+
data.tar.gz: fa7d7d72a74a1e631c3d72491aa6f67d1c0c884615f65a125822e3a6e32ba27ee6bd6069f5a16d540b75cfa85c125ccd982666f7e995b5f7708e6ec890d306fd
|
data/lib/build/graph/task.rb
CHANGED
@@ -95,11 +95,9 @@ module Build
|
|
95
95
|
fail!(InputsFailed)
|
96
96
|
end
|
97
97
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
fail!(ChildrenFailed)
|
102
|
-
end
|
98
|
+
wait_for_children!
|
99
|
+
|
100
|
+
update_outputs!
|
103
101
|
|
104
102
|
@state ||= :complete
|
105
103
|
|
@@ -156,7 +154,21 @@ module Build
|
|
156
154
|
"#<#{self.class} #{node_string} #{state_string}>"
|
157
155
|
end
|
158
156
|
|
159
|
-
|
157
|
+
def inspect
|
158
|
+
"\#<#{self.class}:0x#{self.object_id.to_s(16)} #{node_string} #{state_string}>"
|
159
|
+
end
|
160
|
+
|
161
|
+
protected
|
162
|
+
|
163
|
+
def wait_for_children!
|
164
|
+
unless wait_for_children?
|
165
|
+
fail!(ChildrenFailed)
|
166
|
+
|
167
|
+
return false
|
168
|
+
end
|
169
|
+
|
170
|
+
return true
|
171
|
+
end
|
160
172
|
|
161
173
|
def state_string
|
162
174
|
if @state
|
@@ -187,7 +199,7 @@ module Build
|
|
187
199
|
end
|
188
200
|
|
189
201
|
# If the node's outputs were a glob, this checks the filesystem to figure out what files were actually generated. If it inherits the outputs of the child tasks, merge them into our own outputs.
|
190
|
-
def update_outputs
|
202
|
+
def update_outputs!
|
191
203
|
if @node.inherit_outputs?
|
192
204
|
@outputs = Files::State.new(self.children_outputs)
|
193
205
|
else
|
data/lib/build/graph/version.rb
CHANGED
data/lib/build/graph/walker.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
|
-
rubygems_version: 3.0.
|
180
|
+
rubygems_version: 3.0.3
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Build::Graph is a framework for build systems, with specific functionality
|