batch_manager 0.3.4 → 0.3.5
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
- data/lib/batch_manager/logger.rb +5 -1
- data/lib/batch_manager/version.rb +1 -1
- data/lib/generators/batch/batch_generator.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            !binary "U0hBMQ==":
         | 
| 3 3 | 
             
              metadata.gz: !binary |-
         | 
| 4 | 
            -
                 | 
| 4 | 
            +
                MTI3MjI5YjViOWRmNzA2YjZlMDU5MWZiMjNiYzE1ZWE3NzQ3MDFiZg==
         | 
| 5 5 | 
             
              data.tar.gz: !binary |-
         | 
| 6 | 
            -
                 | 
| 6 | 
            +
                MTE5MGUwOGYxZTAyNmI2YjhjZjNmZGVmYWE4MGY0Njg4NDgzNDBiYw==
         | 
| 7 7 | 
             
            !binary "U0hBNTEy":
         | 
| 8 8 | 
             
              metadata.gz: !binary |-
         | 
| 9 | 
            -
                 | 
| 10 | 
            -
                 | 
| 11 | 
            -
                 | 
| 9 | 
            +
                NDQ1YzFkYjdjMTgzNzY5NDIzNjZkYmEyYTA4M2I5MDg3MWY4ZjA2Y2VlNTA5
         | 
| 10 | 
            +
                YjkwYTQ3NWY4MTg0NmYwOTA4ZDY4MDAxN2FkYjc4ZDBjNTUxYjU0M2I0MDNk
         | 
| 11 | 
            +
                NmEwMzFkNjY4MGI2NTQxNzM3M2NhOTMzN2NiNWVmOTYyN2U3NGY=
         | 
| 12 12 | 
             
              data.tar.gz: !binary |-
         | 
| 13 | 
            -
                 | 
| 14 | 
            -
                 | 
| 15 | 
            -
                 | 
| 13 | 
            +
                NDJjMjI5NmE3NzE3MGYxODVhMjk5ODFiMzg2OTFkNTZlMzgwODEyYTMwZDE3
         | 
| 14 | 
            +
                M2M4YzU3NDNlMmVkYWU1ZDExODc0ZWNlODJhYjM5YzVlOTU0ZTE4OTQ4ZmNj
         | 
| 15 | 
            +
                MGJiODM1N2FlMTBiY2U2NzBlZDYzM2YzYjljZTg0MTk2ZmRiMjA=
         | 
    
        data/lib/batch_manager/logger.rb
    CHANGED
    
    | @@ -25,7 +25,11 @@ module BatchManager | |
| 25 25 |  | 
| 26 26 | 
             
                def prepare_log_file(batch_name, is_wet)
         | 
| 27 27 | 
             
                  file_path = self.class.log_file_path(batch_name, is_wet)
         | 
| 28 | 
            -
                   | 
| 28 | 
            +
                  unless File.exist?(file_path)
         | 
| 29 | 
            +
                    FileUtils.mkdir_p(File.dirname(file_path), :mode => 0775)
         | 
| 30 | 
            +
                    FileUtils.touch(file_path)
         | 
| 31 | 
            +
                    FileUtils.chmod(0664, file_path)
         | 
| 32 | 
            +
                  end
         | 
| 29 33 | 
             
                  file_path
         | 
| 30 34 | 
             
                end
         | 
| 31 35 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: batch_manager
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.3. | 
| 4 | 
            +
              version: 0.3.5
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Weihu Chen
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2013-06- | 
| 11 | 
            +
            date: 2013-06-20 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rails
         |