molinillo 0.6.0 → 0.6.1

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: 9546ad44db45ffeeb600e30f638fb9210cf6c961
4
- data.tar.gz: de98b81edb5384a6f0c25608f2809e7671a90559
3
+ metadata.gz: '058fb8f202cdd62307106904580d3fc0b8f906c3'
4
+ data.tar.gz: ffedb580a16d6b73f469199c93dae9634e6be9c0
5
5
  SHA512:
6
- metadata.gz: 6bf39875c6f19a858fbebe6ffd35b7e01bf5e7c45e081289bbda2020b4be8ba6229fd6b9b1629f04017165e5a9cbc1f8affb5fde1ba521670631b3fb1e091e38
7
- data.tar.gz: 87eed61627ccbd8f4dbabdd362971e64e028354811fa7548c035749a5baf14999cc15937ba227046f5d96b90a46b8e9a7ecdd97dd8fa630bb6c420fe07ade143
6
+ metadata.gz: 90be827ec5b343a49c0ac22a2aec00f751d84a774e5505e4284ecae8d3f0c7a968b34ec1de97ccbcf0efa9e2d7440e6cc1ef2cc1966855bf4246b136bc04e4e5
7
+ data.tar.gz: ada1a30e9ffb745c1a0e605628ba54f77bffdeabf88482129ea731f19702593d1754cc83ff048b0518a98018476530c008163a2a492059760e8a35a3190b4ecb
@@ -1,5 +1,18 @@
1
1
  # Molinillo Changelog
2
2
 
3
+ ## 0.6.1 (2017-08-01)
4
+
5
+ ##### Enhancements
6
+
7
+ * None.
8
+
9
+ ##### Bug Fixes
10
+
11
+ * Allow the set of dependencies for a given possibility to change over time,
12
+ fixing a regression in 0.6.0.
13
+ [Samuel Giddins](https://github.com/segiddins)
14
+
15
+
3
16
  ## 0.6.0 (2017-07-27)
4
17
 
5
18
  ##### Breaking
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Molinillo
4
4
  # The version of Molinillo.
5
- VERSION = '0.6.0'.freeze
5
+ VERSION = '0.6.1'.freeze
6
6
  end
@@ -688,8 +688,7 @@ module Molinillo
688
688
  # @return [void]
689
689
  def attempt_to_filter_existing_spec(vertex)
690
690
  filtered_set = filtered_possibility_set(vertex)
691
- if !filtered_set.possibilities.empty? &&
692
- (vertex.payload.dependencies == dependencies_for(possibility.latest_version))
691
+ if !filtered_set.possibilities.empty?
693
692
  activated.set_payload(name, filtered_set)
694
693
  new_requirements = requirements.dup
695
694
  push_state_for_requirements(new_requirements, false)
@@ -705,18 +704,7 @@ module Molinillo
705
704
  # @param [Object] existing vertex
706
705
  # @return [PossibilitySet] filtered possibility set
707
706
  def filtered_possibility_set(vertex)
708
- # Note: we can't just look at the intersection of `vertex.payload.possibilities`
709
- # and `possibility.possibilities`, because if one of our requirements contains
710
- # a prerelease version the associated prerelease versions will only appear in
711
- # one set (but may match all requirements)
712
- filtered_old_values = vertex.payload.possibilities.select do |poss|
713
- requirement_satisfied_by?(requirement, activated, poss)
714
- end
715
- filtered_new_values = possibility.possibilities.select do |poss|
716
- vertex.requirements.uniq.all? { |req| requirement_satisfied_by?(req, activated, poss) }
717
- end
718
-
719
- PossibilitySet.new(vertex.payload.dependencies, filtered_old_values | filtered_new_values)
707
+ PossibilitySet.new(vertex.payload.dependencies, vertex.payload.possibilities & possibility.possibilities)
720
708
  end
721
709
 
722
710
  # @param [String] requirement_name the spec name to search for
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.0
4
+ version: 0.6.1
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-07-27 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler