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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e0e229f79ac2862d3410a0af00c9193c63e95bc
4
- data.tar.gz: db296249a7db975a57b0931ae02bd2f5f3e7339c
3
+ metadata.gz: d6893030c35b766b001e15f46081e8b274cb24d7
4
+ data.tar.gz: e0efa641f67326d5a55187a0c39956b8f14886fd
5
5
  SHA512:
6
- metadata.gz: 12f986da3764bc8c2ef501a0f93eed04309f0a8d1063de8595a82af448e2d02fbe7ba89ebbcbd0e970a5e51af232e77366d3dc9827d8c260693dbf6a1599a2de
7
- data.tar.gz: 24f18068100970ee7eff0fcf0d63d1aa8ab50dbf130e0f608d3367ca52f7a896a7d7a45e5b5f129ee6af712783eaac4d96c792eefb96715e949a7f96422f3ff3
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
@@ -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 (0o666)
105
- # @option options [Integer] :perm (0o666) @deprecated
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] || 0o666
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 (0666)
149
+ # @option options [Integer] :perm (0644)
150
150
  #
151
151
  # @raise [SugarUtils::File::Error]
152
152
  #
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module SugarUtils
4
- VERSION = '0.4.1'.freeze
4
+ VERSION = '0.4.2'.freeze
5
5
  end
@@ -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(0o100666) }
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.1
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-05-17 00:00:00.000000000 Z
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.10
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.