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 +4 -4
- data/CHANGELOG.md +10 -1
- data/README.md +1 -0
- data/lib/asset_sync/config.rb +3 -1
- data/lib/asset_sync/engine.rb +1 -0
- data/lib/asset_sync/version.rb +1 -1
- data/lib/generators/asset_sync/install_generator.rb +4 -0
- data/lib/generators/asset_sync/templates/asset_sync.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c788619973e3b9413653db07eb712d4ce2ed2cbea2560a5305770f77fc5a32ae
|
4
|
+
data.tar.gz: ecc0ea7cb6a0b89375a937d7528069410fc1e1ed01b0be3463cd0a81e741e99c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7df91a8c7aec03b61936a4fbeea5734a419ae900f74fa59b800a061221cdaab1a3299992f2fec222f2778d510ae2988925552b0a699aef92a9b7acd2a9e2dbad
|
7
|
+
data.tar.gz: 922efce815fa4b93366baaa889d3816d3f658693c0993255b29ee1d9744b64d0a43d36f45a6e992da40edf9c651398fd5c30cf5bd93f0218b5355f7492119309
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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'
|
data/lib/asset_sync/config.rb
CHANGED
@@ -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
|
data/lib/asset_sync/engine.rb
CHANGED
@@ -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
|
|
data/lib/asset_sync/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|