neoid 0.1 → 0.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.
- data/CHANGELOG.md +1 -1
- data/lib/neoid/batch.rb +2 -2
- data/lib/neoid/version.rb +1 -1
- metadata +1 -1
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/lib/neoid/batch.rb
    CHANGED
    
    | @@ -119,7 +119,7 @@ module Neoid | |
| 119 119 | 
             
              # so a `.then` can be chained after the batch do ... end
         | 
| 120 120 | 
             
              # it proxies all methods to the result
         | 
| 121 121 | 
             
              class BatchPromiseProxy
         | 
| 122 | 
            -
                def initialize( | 
| 122 | 
            +
                def initialize(results)
         | 
| 123 123 | 
             
                  @results = results
         | 
| 124 124 | 
             
                end
         | 
| 125 125 |  | 
| @@ -128,7 +128,7 @@ module Neoid | |
| 128 128 | 
             
                end
         | 
| 129 129 |  | 
| 130 130 | 
             
                def then
         | 
| 131 | 
            -
                  yield( | 
| 131 | 
            +
                  yield(@results)
         | 
| 132 132 | 
             
                end
         | 
| 133 133 | 
             
              end
         | 
| 134 134 |  | 
    
        data/lib/neoid/version.rb
    CHANGED