sugar_utils 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sugar_utils/file.rb +4 -4
- data/lib/sugar_utils/version.rb +1 -1
- data/spec/sugar_utils/file_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6893030c35b766b001e15f46081e8b274cb24d7
|
4
|
+
data.tar.gz: e0efa641f67326d5a55187a0c39956b8f14886fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c25a5a72766c3afdddf497b339586464391411c8513c2522e49f5dc965ef2fe17cf7c5f5e56390c28d95999d8a284b755c1022c215403d69ad049746097548ad
|
7
|
+
data.tar.gz: 93e7052909f52e6780a04b8ddc01456ee927e55effaf0340fcf2432fa8a7828223cb62bf131e509f5ae78408877d62d2b413c6e0633610d10399aef8717eb437
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [0.4.2] - 2017-08-01
|
6
|
+
### Changed
|
7
|
+
- default file creation permissions from 666 to 644.
|
8
|
+
|
5
9
|
## [0.4.1] - 2017-05-17
|
6
10
|
### Added
|
7
11
|
- options :owner, :group, :mode to SugarUtils::File.write and .touch
|
data/lib/sugar_utils/file.rb
CHANGED
@@ -101,8 +101,8 @@ module SugarUtils
|
|
101
101
|
# @option options [Boolean] :flush (false)
|
102
102
|
# @option options [String, Integer] :owner
|
103
103
|
# @option options [String, Integer] :group
|
104
|
-
# @option options [Integer] :mode (
|
105
|
-
# @option options [Integer] :perm (
|
104
|
+
# @option options [Integer] :mode (0o644)
|
105
|
+
# @option options [Integer] :perm (0o644) @deprecated
|
106
106
|
#
|
107
107
|
# @raise [SugarUtils::File::Error]
|
108
108
|
#
|
@@ -111,7 +111,7 @@ module SugarUtils
|
|
111
111
|
flush = options[:flush] || false
|
112
112
|
owner = options[:owner]
|
113
113
|
group = options[:group]
|
114
|
-
mode = options[:mode] || options[:perm] ||
|
114
|
+
mode = options[:mode] || options[:perm] || 0o644
|
115
115
|
|
116
116
|
deprecate_option(:touch, :perm, :mode, 2017, 8) if options.has_key?(:perm)
|
117
117
|
|
@@ -146,7 +146,7 @@ module SugarUtils
|
|
146
146
|
# @param [Hash] options
|
147
147
|
# @option options [Integer] :timeout (10)
|
148
148
|
# @option options [Boolean] :flush (false)
|
149
|
-
# @option options [Integer] :perm (
|
149
|
+
# @option options [Integer] :perm (0644)
|
150
150
|
#
|
151
151
|
# @raise [SugarUtils::File::Error]
|
152
152
|
#
|
data/lib/sugar_utils/version.rb
CHANGED
@@ -157,7 +157,7 @@ describe SugarUtils::File do
|
|
157
157
|
let(:options) { {} }
|
158
158
|
before { subject }
|
159
159
|
specify { expect(filename).to have_content(data) }
|
160
|
-
specify { expect(filename).to have_file_permission(
|
160
|
+
specify { expect(filename).to have_file_permission(0o100644) }
|
161
161
|
end
|
162
162
|
|
163
163
|
context 'with deprecated options' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugar_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Sullivan Cant
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
225
|
rubyforge_project:
|
226
|
-
rubygems_version: 2.6.
|
226
|
+
rubygems_version: 2.6.12
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: Utility methods extracted from SugarCRM Ruby projects.
|