asset_sync 2.14.2 → 2.15.0

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
  SHA256:
3
- metadata.gz: 56414f299dce966e768266fd6a06f73896a95fbd7747be08bf94481dcd25f6ce
4
- data.tar.gz: 906057c77eca271b2042aa174de7644c235f58cbd36db95dbec6eae17180f3d0
3
+ metadata.gz: a42f7c7165955b9d333a17c2c734948699b76dfdc1682c37f3188af87896d72d
4
+ data.tar.gz: 7b0cec36a35ace13ceac1aa6e1681c608b3a4ef688ba8870d1d32e9c7d8160b1
5
5
  SHA512:
6
- metadata.gz: f45ce18cf34f17ab8fb9fcfffe2ab9746fe8642fe02b779d8ed53b94f8ba884e23fae6c2180ee2b5478d756c5dd3510ae12b4055a4bd8a46e2447fee0f9e6d38
7
- data.tar.gz: 37b916a3e8531351719b209c58660a7e26438689ea5bc8c0ca059af83c879b764ec7333c4a9612db629a89ee381796535ee53a71af8dea0c2cbfdaa3c83c77dc
6
+ metadata.gz: 2d6ff1f9c5b9c9fa8dd53ee0000d00d42d9746801e9c5dd10400b8c18ae177c2dfd9f5f749bae52553c79550e71c5940771a069bfbe807af437744a61fc6fe72
7
+ data.tar.gz: 565480826f1820bbb8b4438886fa92d6f49369209ddbb0981f5cdb948b03d73ee5bbb4803febef56907d279a434cc819f2877804a7e5135ad28beb412c6a91ac
data/CHANGELOG.md CHANGED
@@ -18,8 +18,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
  - Nothing
19
19
 
20
20
 
21
- =======
22
- ## [2.14.2]
21
+ ## [2.15.0] - 2021-08-05
22
+
23
+ ### Added
24
+
25
+ - Add support for option `aws_acl`
26
+ (https://github.com/AssetSync/asset_sync/pull/420)
27
+
28
+
29
+ ## [2.14.2] - 2021-05-31
23
30
 
24
31
  ### Added
25
32
 
@@ -27,8 +34,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
27
34
  (https://github.com/AssetSync/asset_sync/pull/419)
28
35
 
29
36
 
30
- =======
31
- ## [2.14.1]
37
+ ## [2.14.1] - 2021-05-14
32
38
 
33
39
  ### Added
34
40
 
@@ -1020,7 +1026,8 @@ Changes:
1020
1026
  * Merge branch 'sinatra'
1021
1027
 
1022
1028
 
1023
- [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.14.2...HEAD
1029
+ [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.15.0...HEAD
1030
+ [2.15.0]: https://github.com/AssetSync/asset_sync/compare/v2.14.2...v2.15.0
1024
1031
  [2.14.2]: https://github.com/AssetSync/asset_sync/compare/v2.14.1...v2.14.2
1025
1032
  [2.14.1]: https://github.com/AssetSync/asset_sync/compare/v2.14.0...v2.14.1
1026
1033
  [2.14.0]: https://github.com/AssetSync/asset_sync/compare/v2.13.1...v2.14.0
data/README.md CHANGED
@@ -239,6 +239,11 @@ AssetSync.configure do |config|
239
239
  # Change AWS signature version. Default is 4
240
240
  # config.aws_signature_version = 4
241
241
  #
242
+ # Change canned ACL of uploaded object. Default is unset. Will override fog_public if set.
243
+ # Choose from: private | public-read | public-read-write | aws-exec-read |
244
+ # authenticated-read | bucket-owner-read | bucket-owner-full-control
245
+ # config.aws_acl = nil
246
+ #
242
247
  # Change host option in fog (only if you need to)
243
248
  # config.fog_host = 's3.amazonaws.com'
244
249
  #
@@ -309,6 +314,11 @@ defaults: &defaults
309
314
  # Change AWS signature version. Default is 4
310
315
  # aws_signature_version: 4
311
316
  #
317
+ # Change canned ACL of uploaded object. Default is unset. Will override fog_public if set.
318
+ # Choose from: private | public-read | public-read-write | aws-exec-read |
319
+ # authenticated-read | bucket-owner-read | bucket-owner-full-control
320
+ # aws_acl: null
321
+ #
312
322
  # Change host option in fog (only if you need to)
313
323
  # fog_host: "s3.amazonaws.com"
314
324
  #
@@ -420,6 +430,7 @@ The blocks are run when local files are being scanned and uploaded
420
430
 
421
431
  * **aws\_access\_key\_id**: your Amazon S3 access key
422
432
  * **aws\_secret\_access\_key**: your Amazon S3 access secret
433
+ * **aws\_acl**: set [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) of uploaded object, will override fog_public if set
423
434
 
424
435
  #### Rackspace
425
436
 
@@ -37,7 +37,15 @@ module AssetSync
37
37
  attr_reader :fog_public # e.g. true, false, "default"
38
38
 
39
39
  # Amazon AWS
40
- attr_accessor :aws_access_key_id, :aws_secret_access_key, :aws_session_token, :aws_reduced_redundancy, :aws_iam_roles, :aws_signature_version
40
+ attr_accessor :aws_access_key_id
41
+ attr_accessor :aws_secret_access_key
42
+ attr_accessor :aws_session_token
43
+ attr_accessor :aws_reduced_redundancy
44
+ attr_accessor :aws_iam_roles
45
+ attr_accessor :aws_signature_version
46
+ attr_accessor :aws_acl
47
+
48
+ # Fog
41
49
  attr_accessor :fog_host # e.g. 's3.amazonaws.com'
42
50
  attr_accessor :fog_port # e.g. '9000'
43
51
  attr_accessor :fog_path_style # e.g. true
@@ -221,6 +229,7 @@ module AssetSync
221
229
  self.aws_reduced_redundancy = yml["aws_reduced_redundancy"]
222
230
  self.aws_iam_roles = yml["aws_iam_roles"]
223
231
  self.aws_signature_version = yml["aws_signature_version"]
232
+ self.aws_acl = yml["aws_acl"]
224
233
  self.rackspace_username = yml["rackspace_username"]
225
234
  self.rackspace_auth_url = yml["rackspace_auth_url"] if yml.has_key?("rackspace_auth_url")
226
235
  self.rackspace_api_key = yml["rackspace_api_key"]
@@ -25,6 +25,7 @@ module AssetSync
25
25
  config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] if ENV.has_key?('AWS_SECRET_ACCESS_KEY')
26
26
  config.aws_session_token = ENV['AWS_SESSION_TOKEN'] if ENV.has_key?('AWS_SESSION_TOKEN')
27
27
  config.aws_signature_version = ENV['AWS_SIGNATURE_VERSION'] if ENV.has_key?('AWS_SIGNATURE_VERSION')
28
+ config.aws_acl = ENV['AWS_ACL'] if ENV.has_key?('AWS_ACL')
28
29
  config.aws_reduced_redundancy = ENV['AWS_REDUCED_REDUNDANCY'] == true if ENV.has_key?('AWS_REDUCED_REDUNDANCY')
29
30
 
30
31
  config.rackspace_username = ENV['RACKSPACE_USERNAME'] if ENV.has_key?('RACKSPACE_USERNAME')
@@ -195,7 +195,9 @@ module AssetSync
195
195
 
196
196
  # region fog_public
197
197
 
198
- if config.fog_public.use_explicit_value?
198
+ if config.aws? && config.aws_acl
199
+ file[:acl] = config.aws_acl
200
+ elsif config.fog_public.use_explicit_value?
199
201
  file[:public] = config.fog_public.to_bool
200
202
  end
201
203
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AssetSync
4
- VERSION = "2.14.2"
4
+ VERSION = "2.15.0"
5
5
  end
@@ -11,6 +11,11 @@ if defined?(AssetSync)
11
11
  # Change AWS signature version. Default is 4
12
12
  # config.aws_signature_version = 4
13
13
  #
14
+ # Change canned ACL of uploaded object. Default is unset. Will override fog_public if set.
15
+ # Choose from: private | public-read | public-read-write | aws-exec-read |
16
+ # authenticated-read | bucket-owner-read | bucket-owner-full-control
17
+ # config.aws_acl = nil
18
+ #
14
19
  # Change host option in fog (only if you need to)
15
20
  # config.fog_host = "s3.amazonaws.com"
16
21
  #
@@ -10,6 +10,11 @@ defaults: &defaults
10
10
  # Change AWS signature version. Default is 4
11
11
  # aws_signature_version: 4
12
12
  #
13
+ # Change canned ACL of uploaded object. Default is unset. Will override fog_public if set.
14
+ # Choose from: private | public-read | public-read-write | aws-exec-read |
15
+ # authenticated-read | bucket-owner-read | bucket-owner-full-control
16
+ # aws_acl: null
17
+ #
13
18
  # Change host option in fog (only if you need to)
14
19
  # fog_host: "s3.amazonaws.com"
15
20
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.2
4
+ version: 2.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Hamilton
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-05-31 00:00:00.000000000 Z
14
+ date: 2021-08-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: fog-core
@@ -287,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
287
  - !ruby/object:Gem::Version
288
288
  version: '0'
289
289
  requirements: []
290
- rubygems_version: 3.2.18
290
+ rubygems_version: 3.2.25
291
291
  signing_key:
292
292
  specification_version: 4
293
293
  summary: Synchronises Assets in a Rails 3 application and Amazon S3/Cloudfront and