build 2.4.3 → 2.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/build/rule.rb +16 -2
- data/lib/build/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b7921d3b8f07853ccccdd021aeba784001c856078cbd272bad7948dda19199a
|
4
|
+
data.tar.gz: e3ae69fe9aa59716ce07eb2e0755f75d8a9fe2e2b82b66b73f73fbbcfdfcad0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96f81bd9b9b8d61e0d4409c66d4731083cae8836fe04b693fe68b3a2e106fc3040f4ea80f92c792dcdd894f6cdbffb252d95ecdc9e6c565ba87876b84ed2954c
|
7
|
+
data.tar.gz: dd759132956ca254cbd977699ee32bdc22fcb537478de63d1a4b264462d24fb22ac6cecdcd3e043b71a9db55347cb8bca393115775eb5813dd327ce83c1faa25
|
data/lib/build/rule.rb
CHANGED
@@ -43,6 +43,7 @@ module Build
|
|
43
43
|
attr :name
|
44
44
|
|
45
45
|
attr :options
|
46
|
+
attr :dynamic
|
46
47
|
|
47
48
|
def input?
|
48
49
|
@direction == :input
|
@@ -96,6 +97,15 @@ module Build
|
|
96
97
|
end || @options[:default]
|
97
98
|
end
|
98
99
|
|
100
|
+
def hash
|
101
|
+
[self.class, @direction, @name, @options].hash
|
102
|
+
end
|
103
|
+
|
104
|
+
# TODO fix implementation
|
105
|
+
def eql? other
|
106
|
+
other.kind_of?(self.class) and @direction.eql?(other.direction) and @name.eql?(other.name) and @options.eql?(other.options) # and @dynamic == other.dynamic
|
107
|
+
end
|
108
|
+
|
99
109
|
def inspect
|
100
110
|
"#{direction}:#{@name} (#{options.inspect})"
|
101
111
|
end
|
@@ -217,8 +227,12 @@ module Build
|
|
217
227
|
end
|
218
228
|
end
|
219
229
|
|
220
|
-
def
|
221
|
-
|
230
|
+
def hash
|
231
|
+
[self.class, @name, @parameters].hash
|
232
|
+
end
|
233
|
+
|
234
|
+
def eql?(other)
|
235
|
+
other.kind_of?(self.class) and @name.eql?(other.name) and @parameters.eql?(other.parameters)
|
222
236
|
end
|
223
237
|
|
224
238
|
def to_s
|
data/lib/build/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: build-graph
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
rubygems_version: 3.0.
|
203
|
+
rubygems_version: 3.0.4
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Build is a framework for working with task based build systems.
|