molinillo 0.6.3 → 0.6.4

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
  SHA256:
3
- metadata.gz: 36a8427ef2b62c6ea8b07c9c004c8947d886caec5787e6d88a3c7b7cc6fd9bcf
4
- data.tar.gz: 54571def066fb01940111eee348e5e8321d10fec16267859bd1f34c6dc2eb270
3
+ metadata.gz: '09d18c88997aae5457b1aa36368b2a3134bf539e3d2972f268c536e06b4ca17e'
4
+ data.tar.gz: 60a6c4950f21c00f7bc4e88499cacbb94374c7eea9e07c2cf52c012a4ba4e164
5
5
  SHA512:
6
- metadata.gz: 92302dd942b745c191e7da508960f6f2c825dcb5562d811c100ccfdeb46d50d2c6b45cf5661c307674ad769d20c0c3e623907a8e3bcdeed80398c4525e84f69d
7
- data.tar.gz: 747ae65e07e9d925acead649ca211db05eda8ba53b2acf14d0e952deef7e29bd94cac604aedbe948450102df3af74d6d026464e9afbd34a9fe5ebf9b8677ed45
6
+ metadata.gz: 2ab70f2f47d6d2d89b4fdac53f61148135b3ff610997aa139e84110a5967d7838ac6b08ed4a9c3fe584aab6374a6451a857335239a509353c05de95525254fc5
7
+ data.tar.gz: b3212b2b8dd7859fa2ef0a52751b4c5bd18a7c911dcaf0aa3695988bca193a8c7a11b4f80cf8c8ef2b427e3f4b70d88a83703f575ba1e5ef8df6b89313531085
@@ -1,5 +1,19 @@
1
1
  # Molinillo Changelog
2
2
 
3
+ ## 0.6.4 (2017-10-29)
4
+
5
+ ##### Enhancements
6
+
7
+ * Reduce memory usage during resolution by making the `Vertex#requirements`
8
+ array unique.
9
+ [Grey Baker](https://github.com/greysteil)
10
+ [Jan Krutisch](https://github.com/halfbyte)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * None.
15
+
16
+
3
17
  ## 0.6.3 (2017-09-06)
4
18
 
5
19
  ##### Enhancements
@@ -33,7 +33,7 @@ module Molinillo
33
33
  # @return [Array<Object>] all of the requirements that required
34
34
  # this vertex
35
35
  def requirements
36
- incoming_edges.map(&:requirement) + explicit_requirements
36
+ (incoming_edges.map(&:requirement) + explicit_requirements).uniq
37
37
  end
38
38
 
39
39
  # @return [Array<Edge>] the edges of {#graph} that have `self` as their
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Molinillo
4
4
  # The version of Molinillo.
5
- VERSION = '0.6.3'.freeze
5
+ VERSION = '0.6.4'.freeze
6
6
  end
@@ -218,7 +218,7 @@ module Molinillo
218
218
  next unless vertex.payload
219
219
 
220
220
  latest_version = vertex.payload.possibilities.reverse_each.find do |possibility|
221
- vertex.requirements.uniq.all? { |req| requirement_satisfied_by?(req, activated, possibility) }
221
+ vertex.requirements.all? { |req| requirement_satisfied_by?(req, activated, possibility) }
222
222
  end
223
223
 
224
224
  activated.set_payload(vertex.name, latest_version)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: molinillo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel E. Giddins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler