rspec-expectations 3.1.0 → 3.1.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
 - checksums.yaml.gz.sig +0 -0
 - data.tar.gz.sig +0 -0
 - data/Changelog.md +9 -0
 - data/lib/rspec/expectations/version.rb +1 -1
 - data/lib/rspec/matchers/built_in/all.rb +5 -5
 - metadata +3 -3
 - metadata.gz.sig +0 -0
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8dd7955a9011398c45ea3e013003f609e10a45d3
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: ef807b08b3196f44fbdb0713c932e9a4fa55b5e4
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 748b7325cf0703054bb349274b192f958f1a4e86d42089ea1583eb93180ae4a22be0c90ed19e578d5dee32ec241c12a932e262df09b74c426a4295495433d21c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d108d4262782769604c8d343dfa0b5aefe0f119237ca820422b836b45ccbe846e872c71f34324e733fd09ca398b1268945d2a680fa0e6aae7e976491aa9ec8dc
         
     | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        data.tar.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/Changelog.md
    CHANGED
    
    | 
         @@ -1,3 +1,12 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ### 3.1.1 / 2014-09-15
         
     | 
| 
      
 2 
     | 
    
         
            +
            [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.0...v3.1.1)
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            Bug Fixes:
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            * Fix regression in `all` matcher in 3.1.0 that prevented it from
         
     | 
| 
      
 7 
     | 
    
         
            +
              working on objects that are not `Enumerable` but do implement
         
     | 
| 
      
 8 
     | 
    
         
            +
              `each_with_index` (such as an ActiveRecord proxy). (Jori Hardman, #647)
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       1 
10 
     | 
    
         
             
            ### 3.1.0 / 2014-09-04
         
     | 
| 
       2 
11 
     | 
    
         
             
            [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.4...v3.1.0)
         
     | 
| 
       3 
12 
     | 
    
         | 
| 
         @@ -21,8 +21,8 @@ module RSpec 
     | 
|
| 
       21 
21 
     | 
    
         
             
                    # @api private
         
     | 
| 
       22 
22 
     | 
    
         
             
                    # @return [String]
         
     | 
| 
       23 
23 
     | 
    
         
             
                    def failure_message
         
     | 
| 
       24 
     | 
    
         
            -
                      unless  
     | 
| 
       25 
     | 
    
         
            -
                        return "#{improve_hash_formatting(super)}, but was not  
     | 
| 
      
 24 
     | 
    
         
            +
                      unless iterable?
         
     | 
| 
      
 25 
     | 
    
         
            +
                        return "#{improve_hash_formatting(super)}, but was not iterable"
         
     | 
| 
       26 
26 
     | 
    
         
             
                      end
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
                      all_messages = [improve_hash_formatting(super)]
         
     | 
| 
         @@ -41,7 +41,7 @@ module RSpec 
     | 
|
| 
       41 
41 
     | 
    
         
             
                  private
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
       43 
43 
     | 
    
         
             
                    def match(_expected, _actual)
         
     | 
| 
       44 
     | 
    
         
            -
                      return false unless  
     | 
| 
      
 44 
     | 
    
         
            +
                      return false unless iterable?
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
                      index_failed_objects
         
     | 
| 
       47 
47 
     | 
    
         
             
                      failed_objects.empty?
         
     | 
| 
         @@ -76,8 +76,8 @@ module RSpec 
     | 
|
| 
       76 
76 
     | 
    
         
             
                      super
         
     | 
| 
       77 
77 
     | 
    
         
             
                    end
         
     | 
| 
       78 
78 
     | 
    
         | 
| 
       79 
     | 
    
         
            -
                    def  
     | 
| 
       80 
     | 
    
         
            -
                       
     | 
| 
      
 79 
     | 
    
         
            +
                    def iterable?
         
     | 
| 
      
 80 
     | 
    
         
            +
                      @actual.respond_to?(:each_with_index)
         
     | 
| 
       81 
81 
     | 
    
         
             
                    end
         
     | 
| 
       82 
82 
     | 
    
         
             
                  end
         
     | 
| 
       83 
83 
     | 
    
         
             
                end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rspec-expectations
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Steven Baker
         
     | 
| 
         @@ -33,7 +33,7 @@ cert_chain: 
     | 
|
| 
       33 
33 
     | 
    
         
             
              1yHC1AcSYpvi2dAbOiHT5iQF+krm4wse8KctXgTNnjMsHEoGKulJS2/sZl90jcCz
         
     | 
| 
       34 
34 
     | 
    
         
             
              muA=
         
     | 
| 
       35 
35 
     | 
    
         
             
              -----END CERTIFICATE-----
         
     | 
| 
       36 
     | 
    
         
            -
            date: 2014-09- 
     | 
| 
      
 36 
     | 
    
         
            +
            date: 2014-09-15 00:00:00.000000000 Z
         
     | 
| 
       37 
37 
     | 
    
         
             
            dependencies:
         
     | 
| 
       38 
38 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       39 
39 
     | 
    
         
             
              name: rspec-support
         
     | 
| 
         @@ -205,6 +205,6 @@ rubyforge_project: rspec 
     | 
|
| 
       205 
205 
     | 
    
         
             
            rubygems_version: 2.2.2
         
     | 
| 
       206 
206 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       207 
207 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       208 
     | 
    
         
            -
            summary: rspec-expectations-3.1. 
     | 
| 
      
 208 
     | 
    
         
            +
            summary: rspec-expectations-3.1.1
         
     | 
| 
       209 
209 
     | 
    
         
             
            test_files: []
         
     | 
| 
       210 
210 
     | 
    
         
             
            has_rdoc: 
         
     | 
    
        metadata.gz.sig
    CHANGED
    
    | 
         Binary file 
     |