molinillo 0.6.0 → 0.6.1
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/CHANGELOG.md +13 -0
- data/lib/molinillo/gem_metadata.rb +1 -1
- data/lib/molinillo/resolution.rb +2 -14
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: '058fb8f202cdd62307106904580d3fc0b8f906c3'
         | 
| 4 | 
            +
              data.tar.gz: ffedb580a16d6b73f469199c93dae9634e6be9c0
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 90be827ec5b343a49c0ac22a2aec00f751d84a774e5505e4284ecae8d3f0c7a968b34ec1de97ccbcf0efa9e2d7440e6cc1ef2cc1966855bf4246b136bc04e4e5
         | 
| 7 | 
            +
              data.tar.gz: ada1a30e9ffb745c1a0e605628ba54f77bffdeabf88482129ea731f19702593d1754cc83ff048b0518a98018476530c008163a2a492059760e8a35a3190b4ecb
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -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
         | 
    
        data/lib/molinillo/resolution.rb
    CHANGED
    
    | @@ -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 | 
            -
                     | 
| 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. | 
| 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- | 
| 11 | 
            +
            date: 2017-08-01 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         |