build 2.4.3 → 2.4.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de02209fea129a8295890304f597655333368b615027255848e87dd0051f13de
4
- data.tar.gz: 967b59ec6c8db022e172517b6d6a225eec22f3a4971875e82ec1028ec0f4109c
3
+ metadata.gz: 8b7921d3b8f07853ccccdd021aeba784001c856078cbd272bad7948dda19199a
4
+ data.tar.gz: e3ae69fe9aa59716ce07eb2e0755f75d8a9fe2e2b82b66b73f73fbbcfdfcad0e
5
5
  SHA512:
6
- metadata.gz: af6e78ab91755ab2bf86a1f866c3b55b8fe29ca500387eb5e915894a4de54b9209275c7772a368fa5aed36f78ac9888211e6d2dd0d369301f014b0fb72799674
7
- data.tar.gz: '09e74758c4762c6de1ed59e89c70701f7c9f66fe9eb16a686b0f5e3af2fd69db2d7d50d41a1f7f2643fb56631f61b6ac51ee2c98dceac6dae95cbecfa14d600a'
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 ==(other)
221
- other.kind_of?(self.class) and @name == other.name and @parameters == other.parameters
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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Build
22
- VERSION = "2.4.3"
22
+ VERSION = "2.4.4"
23
23
  end
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.3
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-03-29 00:00:00.000000000 Z
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.3
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.