tobacco 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,10 @@ module Tobacco
17
17
  end
18
18
 
19
19
  def create_directory
20
- FileUtils.mkdir_p File.dirname(filepath)
20
+ dir = File.dirname(filepath)
21
+
22
+ FileUtils.mkdir_p dir
23
+ File.chmod(0775, dir)
21
24
  end
22
25
 
23
26
  def write_content_to_file
@@ -37,6 +40,8 @@ module Tobacco
37
40
  File.open(filepath, 'wb') do |f|
38
41
  f.write file_content
39
42
  end
43
+
44
+ File.chmod(0644, filepath)
40
45
  end
41
46
 
42
47
  def safety_net
@@ -1,3 +1,3 @@
1
1
  module Tobacco
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tobacco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-10 00:00:00.000000000 Z
12
+ date: 2012-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec