tobacco 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tobacco/exhaler.rb +6 -1
- data/lib/tobacco/version.rb +1 -1
- metadata +2 -2
data/lib/tobacco/exhaler.rb
CHANGED
@@ -17,7 +17,10 @@ module Tobacco
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def create_directory
|
20
|
-
|
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
|
data/lib/tobacco/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2012-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|