batch_manager 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDExOTIzMjEyZmFlZjkxMzBlZmMxYThjYzBjMDFkZWU5ZWU2YmZkMQ==
4
+ MTI3MjI5YjViOWRmNzA2YjZlMDU5MWZiMjNiYzE1ZWE3NzQ3MDFiZg==
5
5
  data.tar.gz: !binary |-
6
- ZjYxOTNkYzY0ZTQwOGY3NzU5ODIxZDQ2ZGNjNDc5ODRmYTdhZjllMQ==
6
+ MTE5MGUwOGYxZTAyNmI2YjhjZjNmZGVmYWE4MGY0Njg4NDgzNDBiYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGEzNDRmNTdiYTU3Y2VjZWYzNDI4OTVkYTgxZjk4MDAyZWNhMWI1MGU2MjMw
10
- ZjJlYjhjOWIwYjAwNDc0YTQ3Nzk0MGQ2MGUyZDZhNDRhZDA2NWQ3NzlhYjRl
11
- NjIyZmVlMmVhNDIyZGEwMTExZGI3NWExMjRjNTlmZmU5YTY0MDY=
9
+ NDQ1YzFkYjdjMTgzNzY5NDIzNjZkYmEyYTA4M2I5MDg3MWY4ZjA2Y2VlNTA5
10
+ YjkwYTQ3NWY4MTg0NmYwOTA4ZDY4MDAxN2FkYjc4ZDBjNTUxYjU0M2I0MDNk
11
+ NmEwMzFkNjY4MGI2NTQxNzM3M2NhOTMzN2NiNWVmOTYyN2U3NGY=
12
12
  data.tar.gz: !binary |-
13
- YmFhYjA5MGY5Nzk2YTIxZDdjNDY4MzlhZGQ4ZGQyM2U5Mzg2ZWFlMzc3OTQ4
14
- NDY1YWFmZGMxZjljNmY5MGE5NmJkYmYyNGY3MTljMDRmYmE2MWJmZjE2ZGJj
15
- OWM3YjRkNDVmMjUwYWJhYmRlOTA0YTMxM2UyMTY2N2Q5YzA2YjI=
13
+ NDJjMjI5NmE3NzE3MGYxODVhMjk5ODFiMzg2OTFkNTZlMzgwODEyYTMwZDE3
14
+ M2M4YzU3NDNlMmVkYWU1ZDExODc0ZWNlODJhYjM5YzVlOTU0ZTE4OTQ4ZmNj
15
+ MGJiODM1N2FlMTBiY2U2NzBlZDYzM2YzYjljZTg0MTk2ZmRiMjA=
@@ -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
- FileUtils.mkdir_p(File.dirname(file_path)) unless File.exist?(file_path)
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
 
@@ -1,3 +1,3 @@
1
1
  module BatchManager
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -8,7 +8,7 @@ module Rails
8
8
  desc "Generates batch file"
9
9
 
10
10
  def self.orm
11
- Rails::Generators.options[:rails][:orm]
11
+ Rails::Generators.options[:rails][:orm] || :active_record
12
12
  end
13
13
 
14
14
  def self.source_root
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
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-19 00:00:00.000000000 Z
11
+ date: 2013-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails