asset_sync 2.13.0 → 2.13.1
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 +64 -0
- data/.travis.yml +2 -10
- data/Appraisals +4 -8
- data/CHANGELOG.md +10 -1
- data/gemfiles/{rails_5_0.gemfile → rails_6_1.gemfile} +1 -1
- data/lib/asset_sync/storage.rb +1 -1
- data/lib/asset_sync/version.rb +1 -1
- data/spec/unit/storage_spec.rb +12 -6
- metadata +5 -5
- data/gemfiles/rails_5_1.gemfile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c593c361046c4faf574342749aced526c101c823c60b7ab8be5e39c7d029efe7
|
4
|
+
data.tar.gz: 63d1361cfa79cfea245eb5cc63bf889cefa239fdf7ba863164414d48e861d444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be760845b518f72bdad531311817b2d449bcaaada2b3ea3feb316af17e6c77fe29c1d7c2b72a46c866ba3b3d94fe0c751fa6a8206936c6d19e935bb0cae93a3
|
7
|
+
data.tar.gz: 1a3bb12b3db320cd566d130eb0abce3a4209c7466324c12dc963822bb0edefb9f04926ece5379a6c74b392cfccc751a5097400ccf922f0ec2dcb9e1b620d43d8
|
@@ -0,0 +1,64 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
paths-ignore:
|
8
|
+
- 'README.md'
|
9
|
+
push:
|
10
|
+
branches:
|
11
|
+
- master
|
12
|
+
paths-ignore:
|
13
|
+
- 'README.md'
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
unit_tests:
|
17
|
+
name: Unit Tests
|
18
|
+
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
|
19
|
+
strategy:
|
20
|
+
fail-fast: false
|
21
|
+
matrix:
|
22
|
+
os:
|
23
|
+
- ubuntu
|
24
|
+
ruby:
|
25
|
+
- 2.5
|
26
|
+
- 2.6
|
27
|
+
- 2.7
|
28
|
+
- 3.0
|
29
|
+
- jruby
|
30
|
+
gemfile:
|
31
|
+
- gemfiles/rails_5_2.gemfile
|
32
|
+
- gemfiles/rails_6_0.gemfile
|
33
|
+
- gemfiles/rails_6_1.gemfile
|
34
|
+
allow_failures:
|
35
|
+
- false
|
36
|
+
include:
|
37
|
+
- os: ubuntu
|
38
|
+
ruby: ruby-head
|
39
|
+
gemfile: gemfiles/rails_6_1.gemfile
|
40
|
+
allow_failures: true
|
41
|
+
- os: ubuntu
|
42
|
+
ruby: jruby-head
|
43
|
+
gemfile: gemfiles/rails_6_1.gemfile
|
44
|
+
allow_failures: true
|
45
|
+
exclude:
|
46
|
+
- os: ubuntu
|
47
|
+
ruby: 3.0
|
48
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
49
|
+
allow_failures: false
|
50
|
+
env:
|
51
|
+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
52
|
+
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
|
53
|
+
runs-on: ${{ matrix.os }}-latest
|
54
|
+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
55
|
+
steps:
|
56
|
+
- name: Checkout
|
57
|
+
uses: actions/checkout@v2
|
58
|
+
- name: Setup Ruby
|
59
|
+
uses: ruby/setup-ruby@v1
|
60
|
+
with:
|
61
|
+
ruby-version: ${{ matrix.ruby }}
|
62
|
+
bundler-cache: true
|
63
|
+
- name: Test
|
64
|
+
run: bundle exec rake spec:unit || $ALLOW_FAILURES
|
data/.travis.yml
CHANGED
@@ -2,14 +2,12 @@
|
|
2
2
|
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
3
3
|
sudo: false
|
4
4
|
language: ruby
|
5
|
-
arch:
|
5
|
+
arch:
|
6
6
|
- amd64
|
7
7
|
- ppc64le
|
8
8
|
cache:
|
9
9
|
bundler: true
|
10
10
|
rvm:
|
11
|
-
- 2.3
|
12
|
-
- 2.4
|
13
11
|
- 2.5
|
14
12
|
- 2.6
|
15
13
|
- 2.7
|
@@ -17,10 +15,9 @@ rvm:
|
|
17
15
|
- jruby
|
18
16
|
- jruby-head
|
19
17
|
gemfile:
|
20
|
-
- gemfiles/rails_5_0.gemfile
|
21
|
-
- gemfiles/rails_5_1.gemfile
|
22
18
|
- gemfiles/rails_5_2.gemfile
|
23
19
|
- gemfiles/rails_6_0.gemfile
|
20
|
+
- gemfiles/rails_6_1.gemfile
|
24
21
|
before_install:
|
25
22
|
# Cannot use bundler 2.x due to dependency (mainly rails 4.2)
|
26
23
|
# Solution from https://github.com/rails/rails/blob/4-2-stable/.travis.yml
|
@@ -37,11 +34,6 @@ matrix:
|
|
37
34
|
allow_failures:
|
38
35
|
- rvm: ruby-head
|
39
36
|
- rvm: jruby-head
|
40
|
-
exclude:
|
41
|
-
- rvm: 2.3
|
42
|
-
gemfile: gemfiles/rails_6_0.gemfile
|
43
|
-
- rvm: 2.4
|
44
|
-
gemfile: gemfiles/rails_6_0.gemfile
|
45
37
|
notifications:
|
46
38
|
webhooks:
|
47
39
|
urls:
|
data/Appraisals
CHANGED
@@ -1,12 +1,4 @@
|
|
1
1
|
|
2
|
-
appraise "rails_5_0" do
|
3
|
-
gem "rails", "~> 5.0.0"
|
4
|
-
end
|
5
|
-
|
6
|
-
appraise "rails_5_1" do
|
7
|
-
gem "rails", "~> 5.1.0"
|
8
|
-
end
|
9
|
-
|
10
2
|
appraise "rails_5_2" do
|
11
3
|
gem "rails", "~> 5.2.0"
|
12
4
|
end
|
@@ -14,3 +6,7 @@ end
|
|
14
6
|
appraise "rails_6_0" do
|
15
7
|
gem "rails", "~> 6.0.0"
|
16
8
|
end
|
9
|
+
|
10
|
+
appraise "rails_6_1" do
|
11
|
+
gem "rails", "~> 6.1.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.13.1] - 2021-03-01
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
|
25
|
+
- Fix "files to be uploaded list" generation for file names with dashes
|
26
|
+
(https://github.com/AssetSync/asset_sync/pull/414)
|
27
|
+
|
28
|
+
|
21
29
|
## [2.13.0] - 2020-12-14
|
22
30
|
|
23
31
|
### Added
|
@@ -986,7 +994,8 @@ Changes:
|
|
986
994
|
* Merge branch 'sinatra'
|
987
995
|
|
988
996
|
|
989
|
-
[Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.13.
|
997
|
+
[Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.13.1...HEAD
|
998
|
+
[2.13.1]: https://github.com/AssetSync/asset_sync/compare/v2.13.0...v2.13.1
|
990
999
|
[2.13.0]: https://github.com/AssetSync/asset_sync/compare/v2.12.1...v2.13.0
|
991
1000
|
[2.12.1]: https://github.com/AssetSync/asset_sync/compare/v2.12.0...v2.12.1
|
992
1001
|
[2.12.0]: https://github.com/AssetSync/asset_sync/compare/v2.11.0...v2.12.0
|
@@ -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", "~> 6.1.0"
|
9
9
|
|
10
10
|
gemspec path: "../"
|
data/lib/asset_sync/storage.rb
CHANGED
@@ -4,7 +4,7 @@ require "asset_sync/multi_mime"
|
|
4
4
|
|
5
5
|
module AssetSync
|
6
6
|
class Storage
|
7
|
-
REGEXP_FINGERPRINTED_FILES =
|
7
|
+
REGEXP_FINGERPRINTED_FILES = /\A(.*)\/(.+)-[^\.]+\.([^\.]+)\z/m
|
8
8
|
REGEXP_ASSETS_TO_CACHE_CONTROL = /-[0-9a-fA-F]{32,}$/
|
9
9
|
|
10
10
|
class BucketNotFound < StandardError;
|
data/lib/asset_sync/version.rb
CHANGED
data/spec/unit/storage_spec.rb
CHANGED
@@ -137,17 +137,22 @@ describe AssetSync::Storage do
|
|
137
137
|
|
138
138
|
it 'should upload updated non-fingerprinted files' do
|
139
139
|
@local_files = [
|
140
|
-
'public/image.png',
|
141
|
-
'public/image-82389298328.png',
|
142
|
-
'public/image-a8389f9h324.png',
|
140
|
+
'public/great-image.png',
|
141
|
+
'public/great-image-82389298328.png',
|
142
|
+
'public/great-image-a8389f9h324.png',
|
143
|
+
"public/new\nline.js",
|
144
|
+
"public/new\nline-aaaaaaaaaaa.js",
|
145
|
+
"public/new\nline-bbbbbbbbbbb.js",
|
143
146
|
'public/application.js',
|
144
147
|
'public/application-b3389d983k1.js',
|
145
148
|
'public/application-ac387d53f31.js',
|
146
149
|
'public',
|
147
150
|
]
|
148
151
|
@remote_files = [
|
149
|
-
'public/image.png',
|
150
|
-
'public/image-a8389f9h324.png',
|
152
|
+
'public/great-image.png',
|
153
|
+
'public/great-image-a8389f9h324.png',
|
154
|
+
"public/new\nline.js",
|
155
|
+
"public/new\nline-aaaaaaaaaaa.js",
|
151
156
|
'public/application.js',
|
152
157
|
'public/application-b3389d983k1.js',
|
153
158
|
]
|
@@ -158,7 +163,8 @@ describe AssetSync::Storage do
|
|
158
163
|
allow(File).to receive(:file?).and_return(true) # Pretend they all exist
|
159
164
|
|
160
165
|
updated_nonfingerprinted_files = [
|
161
|
-
'public/image.png',
|
166
|
+
'public/great-image.png',
|
167
|
+
"public/new\nline.js",
|
162
168
|
'public/application.js',
|
163
169
|
]
|
164
170
|
(@local_files - @remote_files + updated_nonfingerprinted_files).each do |file|
|
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.13.
|
4
|
+
version: 2.13.1
|
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:
|
14
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: fog-core
|
@@ -207,6 +207,7 @@ extensions: []
|
|
207
207
|
extra_rdoc_files: []
|
208
208
|
files:
|
209
209
|
- ".editorconfig"
|
210
|
+
- ".github/workflows/tests.yaml"
|
210
211
|
- ".gitignore"
|
211
212
|
- ".travis.yml"
|
212
213
|
- Appraisals
|
@@ -217,10 +218,9 @@ files:
|
|
217
218
|
- UPGRADING.md
|
218
219
|
- asset_sync.gemspec
|
219
220
|
- docs/heroku.md
|
220
|
-
- gemfiles/rails_5_0.gemfile
|
221
|
-
- gemfiles/rails_5_1.gemfile
|
222
221
|
- gemfiles/rails_5_2.gemfile
|
223
222
|
- gemfiles/rails_6_0.gemfile
|
223
|
+
- gemfiles/rails_6_1.gemfile
|
224
224
|
- lib/asset_sync.rb
|
225
225
|
- lib/asset_sync/asset_sync.rb
|
226
226
|
- lib/asset_sync/config.rb
|
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
273
|
- !ruby/object:Gem::Version
|
274
274
|
version: '0'
|
275
275
|
requirements: []
|
276
|
-
rubygems_version: 3.2.
|
276
|
+
rubygems_version: 3.2.11
|
277
277
|
signing_key:
|
278
278
|
specification_version: 4
|
279
279
|
summary: Synchronises Assets in a Rails 3 application and Amazon S3/Cloudfront and
|
data/gemfiles/rails_5_1.gemfile
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rcov", platforms: :mri_18, group: [:development, :test]
|
6
|
-
gem "simplecov", platforms: [:jruby, :mri_19, :ruby_19, :mri_20, :rbx], group: [:development, :test], require: false
|
7
|
-
gem "jruby-openssl", platform: :jruby
|
8
|
-
gem "rails", "~> 5.1.0"
|
9
|
-
|
10
|
-
gemspec path: "../"
|