recollect-array 0.1.1 → 0.1.2
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/lib/recollect/array/filterable.rb +3 -3
 - data/lib/recollect/array/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: b0e4b341fd0128d11eebe856242f5a58e4fe2fde5d52a1b32e5ab7677cb87eb0
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 9dd9dfb0d30ea7d4a5005f9abda3e2123a6716f52bc7e8b65b4ab4e1b7f2909d
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: f456880a49863da46af5ddf3776a6f3997141207b42b4f327235f9498ce78ad65d056eb20794f8bb690ee6f86a3e4084c947cf186319fc2e3b7d2a5f5eb87127
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 790347aba973043fd253fb00eff346421c7eb263c0672d3e991b33eaf03ec5a04ea0ea1d0d24a87fb54caf11683bdc698fb395e96718a2130c2ef149fd581607
         
     | 
| 
         @@ -44,9 +44,9 @@ module Recollect 
     | 
|
| 
       44 
44 
     | 
    
         
             
                        end
         
     | 
| 
       45 
45 
     | 
    
         
             
                      else
         
     | 
| 
       46 
46 
     | 
    
         
             
                        parts = key.to_s.split('_')
         
     | 
| 
       47 
     | 
    
         
            -
                        predicate = parts.pop
         
     | 
| 
      
 47 
     | 
    
         
            +
                        predicate = parts.size == 1 ? :eq : parts.pop
         
     | 
| 
       48 
48 
     | 
    
         
             
                        iteratee = parts.join('_')
         
     | 
| 
       49 
     | 
    
         
            -
                        klass = Predicate.call(predicate 
     | 
| 
      
 49 
     | 
    
         
            +
                        klass = Predicate.call(predicate)
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         
             
                        next unless !!klass
         
     | 
| 
       52 
52 
     | 
    
         | 
| 
         @@ -68,7 +68,7 @@ module Recollect 
     | 
|
| 
       68 
68 
     | 
    
         
             
                    start: Startify, notstart: NotStartify, not_start: NotStartify,
         
     | 
| 
       69 
69 
     | 
    
         
             
                    end: Endify, notend: NotEndify, not_end: NotEndify,
         
     | 
| 
       70 
70 
     | 
    
         
             
                    in: Included, notin: NotIncluded, not_in: NotIncluded
         
     | 
| 
       71 
     | 
    
         
            -
                  }[named.to_sym]
         
     | 
| 
      
 71 
     | 
    
         
            +
                  }[named.to_sym || :eq]
         
     | 
| 
       72 
72 
     | 
    
         
             
                end
         
     | 
| 
       73 
73 
     | 
    
         
             
                private_constant :Predicate
         
     | 
| 
       74 
74 
     | 
    
         
             
              end
         
     |