fedux_org-stdlib 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -122,7 +122,7 @@ module FeduxOrg
|
|
122
122
|
#
|
123
123
|
# @return [String]
|
124
124
|
# the path to the created file
|
125
|
-
def create_file(path, content='')
|
125
|
+
def create_file(path, content='', mode='0644')
|
126
126
|
raise_if_forbidden_path_for_create_operation(path)
|
127
127
|
|
128
128
|
file = expand_path(path).first
|
@@ -133,6 +133,8 @@ module FeduxOrg
|
|
133
133
|
f.write content
|
134
134
|
end
|
135
135
|
|
136
|
+
FileUtils.chmod(mode, file)
|
137
|
+
|
136
138
|
file
|
137
139
|
end
|
138
140
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fedux_org-stdlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
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: 2013-06-
|
12
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|