asset_sync 2.11.0 → 2.12.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: e7e222d9419b7c2039f3db9a20676ec264eaaa233c9d954fd62a28a56bdf2968
4
- data.tar.gz: 3fc2471434cd60071d283a59cef97f0ff845c4066161ce8c99b93d08435abe66
3
+ metadata.gz: c788619973e3b9413653db07eb712d4ce2ed2cbea2560a5305770f77fc5a32ae
4
+ data.tar.gz: ecc0ea7cb6a0b89375a937d7528069410fc1e1ed01b0be3463cd0a81e741e99c
5
5
  SHA512:
6
- metadata.gz: fd001d4c15476c0b72b10bf8630a08a52910189b583b000adb0b3ceea925cd66f6e0bf94e72a2774213e5133be03c4dfc6e8d9d58ba8d4b8f0b5df393a52b853
7
- data.tar.gz: 8115434ee5a0d37f09350fa3e4c1e4402b47635c7b04eff6f638df65c08edca9a5ba76f05c7993ea09cc57ecd2447b16b002d85b5cb6fc0cc6d24199caddbef6
6
+ metadata.gz: 7df91a8c7aec03b61936a4fbeea5734a419ae900f74fa59b800a061221cdaab1a3299992f2fec222f2778d510ae2988925552b0a699aef92a9b7acd2a9e2dbad
7
+ data.tar.gz: 922efce815fa4b93366baaa889d3816d3f658693c0993255b29ee1d9744b64d0a43d36f45a6e992da40edf9c651398fd5c30cf5bd93f0218b5355f7492119309
@@ -18,6 +18,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
  - Nothing
19
19
 
20
20
 
21
+ ## [2.12.0] - 2020-06-11
22
+
23
+ ### Added
24
+
25
+ - Add option `aws_session_token` to support AWS Temporary Security Credentials
26
+ (https://github.com/AssetSync/asset_sync/pull/403)
27
+
28
+
21
29
  ## [2.11.0] - 2020-03-13
22
30
 
23
31
  ### Added
@@ -962,7 +970,8 @@ Changes:
962
970
  * Merge branch 'sinatra'
963
971
 
964
972
 
965
- [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.11.0...HEAD
973
+ [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.12.0...HEAD
974
+ [2.12.0]: https://github.com/AssetSync/asset_sync/compare/v2.11.0...v2.12.0
966
975
  [2.11.0]: https://github.com/AssetSync/asset_sync/compare/v2.10.0...v2.11.0
967
976
  [2.10.0]: https://github.com/AssetSync/asset_sync/compare/v2.9.1...v2.10.0
968
977
  [2.9.1]: https://github.com/AssetSync/asset_sync/compare/v2.9.0...v2.9.1
data/README.md CHANGED
@@ -208,6 +208,7 @@ AssetSync.configure do |config|
208
208
  config.fog_directory = ENV['FOG_DIRECTORY']
209
209
  config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
210
210
  config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
211
+ config.aws_session_token = ENV['AWS_SESSION_TOKEN'] if ENV.key?['AWS_SESSION_TOKEN']
211
212
 
212
213
  # Don't delete files from the store
213
214
  # config.existing_remote_files = 'keep'
@@ -37,7 +37,7 @@ 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_reduced_redundancy, :aws_iam_roles, :aws_signature_version
40
+ attr_accessor :aws_access_key_id, :aws_secret_access_key, :aws_session_token, :aws_reduced_redundancy, :aws_iam_roles, :aws_signature_version
41
41
  attr_accessor :fog_host # e.g. 's3.amazonaws.com'
42
42
  attr_accessor :fog_port # e.g. '9000'
43
43
  attr_accessor :fog_path_style # e.g. true
@@ -203,6 +203,7 @@ module AssetSync
203
203
  self.fog_scheme = yml["fog_scheme"]
204
204
  self.aws_access_key_id = yml["aws_access_key_id"]
205
205
  self.aws_secret_access_key = yml["aws_secret_access_key"]
206
+ self.aws_session_token = yml["aws_session_token"] if yml.has_key?("aws_session_token")
206
207
  self.aws_reduced_redundancy = yml["aws_reduced_redundancy"]
207
208
  self.aws_iam_roles = yml["aws_iam_roles"]
208
209
  self.aws_signature_version = yml["aws_signature_version"]
@@ -260,6 +261,7 @@ module AssetSync
260
261
  :aws_access_key_id => aws_access_key_id,
261
262
  :aws_secret_access_key => aws_secret_access_key
262
263
  })
264
+ options.merge!({:aws_session_token => aws_session_token}) if aws_session_token
263
265
  end
264
266
  options.merge!({:host => fog_host}) if fog_host
265
267
  options.merge!({:port => fog_port}) if fog_port
@@ -23,6 +23,7 @@ module AssetSync
23
23
 
24
24
  config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID'] if ENV.has_key?('AWS_ACCESS_KEY_ID')
25
25
  config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] if ENV.has_key?('AWS_SECRET_ACCESS_KEY')
26
+ config.aws_session_token = ENV['AWS_SESSION_TOKEN'] if ENV.has_key?('AWS_SESSION_TOKEN')
26
27
  config.aws_signature_version = ENV['AWS_SIGNATURE_VERSION'] if ENV.has_key?('AWS_SIGNATURE_VERSION')
27
28
  config.aws_reduced_redundancy = ENV['AWS_REDUCED_REDUNDANCY'] == true if ENV.has_key?('AWS_REDUCED_REDUNDANCY')
28
29
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AssetSync
4
- VERSION = "2.11.0"
4
+ VERSION = "2.12.0"
5
5
  end
@@ -35,6 +35,10 @@ module AssetSync
35
35
  "<%= ENV['AWS_SECRET_ACCESS_KEY'] %>"
36
36
  end
37
37
 
38
+ def aws_session_token
39
+ "<%= ENV['AWS_SESSION_TOKEN'] %>"
40
+ end
41
+
38
42
  def google_storage_access_key_id
39
43
  "<%= ENV['GOOGLE_STORAGE_ACCESS_KEY_ID'] %>"
40
44
  end
@@ -4,6 +4,7 @@ if defined?(AssetSync)
4
4
  config.fog_provider = 'AWS'
5
5
  config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
6
6
  config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
7
+ config.aws_session_token = ENV['AWS_SESSION_TOKEN'] if ENV.key?['AWS_SESSION_TOKEN']
7
8
  # To use AWS reduced redundancy storage.
8
9
  # config.aws_reduced_redundancy = true
9
10
  #
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Hamilton
8
8
  - David Rice
9
9
  - Phil McClure
10
10
  - Toby Osbourn
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-03-13 00:00:00.000000000 Z
14
+ date: 2020-06-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: fog-core
@@ -241,7 +241,7 @@ homepage: https://github.com/rumblelabs/asset_sync
241
241
  licenses:
242
242
  - MIT
243
243
  metadata: {}
244
- post_install_message:
244
+ post_install_message:
245
245
  rdoc_options: []
246
246
  require_paths:
247
247
  - lib
@@ -256,8 +256,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
256
  - !ruby/object:Gem::Version
257
257
  version: '0'
258
258
  requirements: []
259
- rubygems_version: 3.1.2
260
- signing_key:
259
+ rubygems_version: 3.1.4
260
+ signing_key:
261
261
  specification_version: 4
262
262
  summary: Synchronises Assets in a Rails 3 application and Amazon S3/Cloudfront and
263
263
  Rackspace Cloudfiles