fedux_org-stdlib 0.0.8 → 0.0.9
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.
|
@@ -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
|