asset_sync 2.15.2 → 2.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yaml +9 -8
- data/Appraisals +4 -4
- data/CHANGELOG.md +10 -1
- data/README.md +4 -0
- data/gemfiles/{rails_5_2.gemfile → rails_7_0.gemfile} +1 -1
- data/lib/asset_sync/config.rb +1 -0
- data/lib/asset_sync/engine.rb +1 -9
- data/lib/asset_sync/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd0deada18130ef42d80d6f05d5ff0611a7587dd33d177bbc38641e6b6cad3a9
|
4
|
+
data.tar.gz: cd514b4901f6a3859a00b80282139d9d712db8414ed03ab115de2c7a3dfd3c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb9cabad00c3dfd61c1ca47c3ba9d6a768375d3dcd6a6798e97a55cc91ee1dd5a030ebd85eeab1f2018dbcc6e6ea18f43591f09bc02f2cd0558a361a13efafb9
|
7
|
+
data.tar.gz: 0c13d03567e9773383179cdfda43699e70352a0ec20c7a7c980017f32b6164eb89e4a4957e6480f1ee1a6a5cc41e270f75bcc0d5fa0dd92363129e0f227c76c7
|
@@ -26,30 +26,31 @@ jobs:
|
|
26
26
|
os:
|
27
27
|
- ubuntu
|
28
28
|
ruby:
|
29
|
-
- 2.5
|
30
|
-
- 2.6
|
31
29
|
- 2.7
|
32
30
|
- 3.0
|
31
|
+
- 3.1
|
33
32
|
- jruby
|
34
33
|
gemfile:
|
35
|
-
- gemfiles/rails_5_2.gemfile
|
36
34
|
- gemfiles/rails_6_0.gemfile
|
37
35
|
- gemfiles/rails_6_1.gemfile
|
36
|
+
- gemfiles/rails_7_0.gemfile
|
38
37
|
allow_failures:
|
39
38
|
- false
|
40
39
|
include:
|
41
40
|
- os: ubuntu
|
42
41
|
ruby: ruby-head
|
43
|
-
gemfile: gemfiles/
|
42
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
44
43
|
allow_failures: true
|
45
44
|
- os: ubuntu
|
46
45
|
ruby: jruby-head
|
47
|
-
gemfile: gemfiles/
|
46
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
48
47
|
allow_failures: true
|
49
48
|
exclude:
|
50
49
|
- os: ubuntu
|
51
|
-
ruby:
|
52
|
-
|
50
|
+
ruby: jruby
|
51
|
+
# Rails 7 requires Ruby 2.7
|
52
|
+
# `jruby-9.3.7.0` only supports 2.6.x
|
53
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
53
54
|
allow_failures: false
|
54
55
|
env:
|
55
56
|
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
@@ -58,7 +59,7 @@ jobs:
|
|
58
59
|
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
59
60
|
steps:
|
60
61
|
- name: Checkout
|
61
|
-
uses: actions/checkout@
|
62
|
+
uses: actions/checkout@v3
|
62
63
|
- name: Setup Ruby
|
63
64
|
uses: ruby/setup-ruby@v1
|
64
65
|
with:
|
data/Appraisals
CHANGED
@@ -1,8 +1,4 @@
|
|
1
1
|
|
2
|
-
appraise "rails_5_2" do
|
3
|
-
gem "rails", "~> 5.2.0"
|
4
|
-
end
|
5
|
-
|
6
2
|
appraise "rails_6_0" do
|
7
3
|
gem "rails", "~> 6.0.0"
|
8
4
|
end
|
@@ -10,3 +6,7 @@ end
|
|
10
6
|
appraise "rails_6_1" do
|
11
7
|
gem "rails", "~> 6.1.0"
|
12
8
|
end
|
9
|
+
|
10
|
+
appraise "rails_7_0" do
|
11
|
+
gem "rails", "~> 7.0.0"
|
12
|
+
end
|
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.15.3] - 2022-08-25
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
|
25
|
+
- Fix config `prefix` about env var & YAML support
|
26
|
+
(https://github.com/AssetSync/asset_sync/pull/427)
|
27
|
+
|
28
|
+
|
21
29
|
## [2.15.2] - 2022-06-02
|
22
30
|
|
23
31
|
### Fixed
|
@@ -1046,7 +1054,8 @@ Changes:
|
|
1046
1054
|
* Merge branch 'sinatra'
|
1047
1055
|
|
1048
1056
|
|
1049
|
-
[Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.15.
|
1057
|
+
[Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.15.3...HEAD
|
1058
|
+
[2.15.3]: https://github.com/AssetSync/asset_sync/compare/v2.15.2...v2.15.3
|
1050
1059
|
[2.15.2]: https://github.com/AssetSync/asset_sync/compare/v2.15.1...v2.15.2
|
1051
1060
|
[2.15.1]: https://github.com/AssetSync/asset_sync/compare/v2.15.0...v2.15.1
|
1052
1061
|
[2.15.0]: https://github.com/AssetSync/asset_sync/compare/v2.14.2...v2.15.0
|
data/README.md
CHANGED
@@ -343,6 +343,10 @@ defaults: &defaults
|
|
343
343
|
# always_upload: ['application.js', 'application.css', !ruby/regexp '/application-/\d{32}\.css/']
|
344
344
|
# Ignored files. Useful if there are some files that are created dynamically on the server and you don't want to upload on deploy.
|
345
345
|
# ignored_files: ['ignore_me.js', !ruby/regexp '/ignore_some/\d{32}\.css/']
|
346
|
+
# Public path. To change the public directory.
|
347
|
+
# public_path: 'public'
|
348
|
+
# Prefix. To change the directory to sync relative to public_path.
|
349
|
+
# prefix: 'assets'
|
346
350
|
# Allow custom assets to be cacheable. Note: The base filename will be matched
|
347
351
|
# If you have an asset with name "app.0b1a4cd3.js", only "app.0b1a4cd3" will need to be matched
|
348
352
|
# cache_asset_regexps: ['cache_me.js', !ruby/regexp '/cache_some\.\d{8}\.css/']
|
@@ -5,6 +5,6 @@ source "https://rubygems.org"
|
|
5
5
|
gem "rcov", platforms: :mri_18, group: [:development, :test]
|
6
6
|
gem "simplecov", platforms: [:jruby, :mri_19, :ruby_19, :mri_20, :rbx], group: [:development, :test], require: false
|
7
7
|
gem "jruby-openssl", platform: :jruby
|
8
|
-
gem "rails", "~>
|
8
|
+
gem "rails", "~> 7.0.0"
|
9
9
|
|
10
10
|
gemspec path: "../"
|
data/lib/asset_sync/config.rb
CHANGED
@@ -244,6 +244,7 @@ module AssetSync
|
|
244
244
|
self.log_silently = yml["log_silently"] if yml.has_key?("log_silently")
|
245
245
|
self.always_upload = yml["always_upload"] if yml.has_key?("always_upload")
|
246
246
|
self.ignored_files = yml["ignored_files"] if yml.has_key?("ignored_files")
|
247
|
+
self.prefix = yml["prefix"] if yml.has_key?("prefix")
|
247
248
|
self.custom_headers = yml["custom_headers"] if yml.has_key?("custom_headers")
|
248
249
|
self.run_on_precompile = yml["run_on_precompile"] if yml.has_key?("run_on_precompile")
|
249
250
|
self.invalidate = yml["invalidate"] if yml.has_key?("invalidate")
|
data/lib/asset_sync/engine.rb
CHANGED
@@ -44,21 +44,13 @@ module AssetSync
|
|
44
44
|
config.enabled = (ENV['ASSET_SYNC_ENABLED'] == 'true') if ENV.has_key?('ASSET_SYNC_ENABLED')
|
45
45
|
|
46
46
|
config.existing_remote_files = ENV['ASSET_SYNC_EXISTING_REMOTE_FILES'] || "keep"
|
47
|
-
|
48
47
|
config.gzip_compression = (ENV['ASSET_SYNC_GZIP_COMPRESSION'] == 'true') if ENV.has_key?('ASSET_SYNC_GZIP_COMPRESSION')
|
49
48
|
config.manifest = (ENV['ASSET_SYNC_MANIFEST'] == 'true') if ENV.has_key?('ASSET_SYNC_MANIFEST')
|
49
|
+
config.prefix = ENV['ASSET_SYNC_PREFIX'] if ENV.has_key?('ASSET_SYNC_PREFIX')
|
50
50
|
config.include_manifest = (ENV['ASSET_SYNC_INCLUDE_MANIFEST'] == 'true') if ENV.has_key?('ASSET_SYNC_INCLUDE_MANIFEST')
|
51
51
|
config.concurrent_uploads = (ENV['ASSET_SYNC_CONCURRENT_UPLOADS'] == 'true') if ENV.has_key?('ASSET_SYNC_CONCURRENT_UPLOADS')
|
52
52
|
config.remote_file_list_cache_file_path = ENV['ASSET_SYNC_REMOTE_FILE_LIST_CACHE_FILE_PATH'] if ENV.has_key?('ASSET_SYNC_REMOTE_FILE_LIST_CACHE_FILE_PATH')
|
53
53
|
end
|
54
|
-
|
55
|
-
config.prefix = ENV['ASSET_SYNC_PREFIX'] if ENV.has_key?('ASSET_SYNC_PREFIX')
|
56
|
-
|
57
|
-
config.existing_remote_files = ENV['ASSET_SYNC_EXISTING_REMOTE_FILES'] || "keep"
|
58
|
-
|
59
|
-
config.gzip_compression = (ENV['ASSET_SYNC_GZIP_COMPRESSION'] == 'true') if ENV.has_key?('ASSET_SYNC_GZIP_COMPRESSION')
|
60
|
-
config.manifest = (ENV['ASSET_SYNC_MANIFEST'] == 'true') if ENV.has_key?('ASSET_SYNC_MANIFEST')
|
61
|
-
|
62
54
|
end
|
63
55
|
|
64
56
|
if File.exist?( app_yaml )
|
data/lib/asset_sync/version.rb
CHANGED
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.15.
|
4
|
+
version: 2.15.3
|
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: 2022-
|
14
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: fog-core
|
@@ -232,9 +232,9 @@ files:
|
|
232
232
|
- UPGRADING.md
|
233
233
|
- asset_sync.gemspec
|
234
234
|
- docs/heroku.md
|
235
|
-
- gemfiles/rails_5_2.gemfile
|
236
235
|
- gemfiles/rails_6_0.gemfile
|
237
236
|
- gemfiles/rails_6_1.gemfile
|
237
|
+
- gemfiles/rails_7_0.gemfile
|
238
238
|
- lib/asset_sync.rb
|
239
239
|
- lib/asset_sync/asset_sync.rb
|
240
240
|
- lib/asset_sync/config.rb
|
@@ -272,7 +272,7 @@ homepage: https://github.com/rumblelabs/asset_sync
|
|
272
272
|
licenses:
|
273
273
|
- MIT
|
274
274
|
metadata: {}
|
275
|
-
post_install_message:
|
275
|
+
post_install_message:
|
276
276
|
rdoc_options: []
|
277
277
|
require_paths:
|
278
278
|
- lib
|
@@ -287,8 +287,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
287
|
- !ruby/object:Gem::Version
|
288
288
|
version: '0'
|
289
289
|
requirements: []
|
290
|
-
rubygems_version: 3.3.
|
291
|
-
signing_key:
|
290
|
+
rubygems_version: 3.3.17
|
291
|
+
signing_key:
|
292
292
|
specification_version: 4
|
293
293
|
summary: Synchronises Assets in a Rails 3 application and Amazon S3/Cloudfront and
|
294
294
|
Rackspace Cloudfiles
|