power_enum 2.0.0 → 2.0.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 +8 -8
 - checksums.yaml.gz.sig +0 -0
 - data/lib/power_enum/enumerated.rb +8 -1
 - data.tar.gz.sig +0 -0
 - metadata +1 -1
 - metadata.gz.sig +0 -0
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,15 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            !binary "U0hBMQ==":
         
     | 
| 
       3 
3 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       4 
     | 
    
         
            -
                 
     | 
| 
      
 4 
     | 
    
         
            +
                ZmRmODNmZTcwMzc5MTQxMTc0OTQ1MDUzMmUxMzYwOWFjYzZkMWU4Zg==
         
     | 
| 
       5 
5 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       6 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
                ODBjYjg2NTNlMmRkMDI4ODg3NTk5YTE3MjkzZjFhYTQ5ZDQzMDA5ZA==
         
     | 
| 
       7 
7 
     | 
    
         
             
            !binary "U0hBNTEy":
         
     | 
| 
       8 
8 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       9 
     | 
    
         
            -
                 
     | 
| 
       10 
     | 
    
         
            -
                 
     | 
| 
       11 
     | 
    
         
            -
                 
     | 
| 
      
 9 
     | 
    
         
            +
                YzQ1ZWY3ZjRmZWI0OWQ3NTAxNThhOWQ2Mjg0NjQ5NjRhZmMzOTg5YmY5ZTBh
         
     | 
| 
      
 10 
     | 
    
         
            +
                MTFkYzI3NDMyZDhhMDU2M2Y0MmZhZTQzZmFlMDhhZDEyYzFkYzAwZGFmY2Qw
         
     | 
| 
      
 11 
     | 
    
         
            +
                ZmRlN2NmYmMwZWQ1NTUwNDIyY2U1Njg3NzM0YzI5MDYxNjJjNDM=
         
     | 
| 
       12 
12 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       13 
     | 
    
         
            -
                 
     | 
| 
       14 
     | 
    
         
            -
                 
     | 
| 
       15 
     | 
    
         
            -
                 
     | 
| 
      
 13 
     | 
    
         
            +
                NWVjYWM5ZDg5YzNkOGIzNGRlNzI5NzMwNGNhMjIyNDk3ZWI2ZWIwNmJiM2Zj
         
     | 
| 
      
 14 
     | 
    
         
            +
                MzVlOThlZDIwYTExNWJjMDNhZWI4YjIwYTY0MGUxYmMyMzg0ODE3ODZlYWM3
         
     | 
| 
      
 15 
     | 
    
         
            +
                OTMxMjM4ZjQyMzU2YjVlNTgwNTJhOTQ5ZWM1MTg2NDM2ZDQyYmY=
         
     | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
| 
         @@ -92,7 +92,14 @@ module PowerEnum::Enumerated 
     | 
|
| 
       92 
92 
     | 
    
         
             
                # the need to re-alias the query methods.
         
     | 
| 
       93 
93 
     | 
    
         
             
                def preserve_query_aliases
         
     | 
| 
       94 
94 
     | 
    
         
             
                  class << self
         
     | 
| 
       95 
     | 
    
         
            -
                     
     | 
| 
      
 95 
     | 
    
         
            +
                    # I have to do the interesting hack below instead of using alias_method
         
     | 
| 
      
 96 
     | 
    
         
            +
                    # because there's some sort of weirdness going on with how __all binds
         
     | 
| 
      
 97 
     | 
    
         
            +
                    # to all in Ruby 2.0.
         
     | 
| 
      
 98 
     | 
    
         
            +
                    __all = self.instance_method(:all)
         
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
      
 100 
     | 
    
         
            +
                    define_method(:__all) do
         
     | 
| 
      
 101 
     | 
    
         
            +
                      __all.bind(self).call
         
     | 
| 
      
 102 
     | 
    
         
            +
                    end
         
     | 
| 
       96 
103 
     | 
    
         | 
| 
       97 
104 
     | 
    
         
             
                    # From ActiveRecord::Querying
         
     | 
| 
       98 
105 
     | 
    
         
             
                    delegate :find, :take, :take!, :first, :first!, :last, :last!, :exists?, :any?, :many?, :to => :__all
         
     | 
    
        data.tar.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        metadata
    CHANGED
    
    
    
        metadata.gz.sig
    CHANGED
    
    | 
         Binary file 
     |