s3_asset_deploy 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +17 -17
- data/README.md +1 -1
- data/lib/s3_asset_deploy/rails_local_asset_collector.rb +3 -2
- data/lib/s3_asset_deploy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a06e3a2a32571de92dd796121bdecba16250a771c7b9ce24a216d8cab0d5fa5
|
4
|
+
data.tar.gz: 93005eac27656668b6a3a0e5e2df05b49f85446865d734ce61593b4fbb85aeb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88591c54fa78fd44e7a50e88c39f804218d5b26ed4035d1368a55f48f234f90f0b15e8e39e4ae0794bca12040ed3ae22b3908b84ed172145a72a5c38993a6cb1
|
7
|
+
data.tar.gz: 7c171ae62e32b06048824b35c7502b5db0d158a8d706ae43f721fa128e7944a6c0f74d0cae060c8ecd7e104f7e739d592ed66e380acda0f33844cb8bf60b5241
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v1.0.3](https://github.com/Loomly/s3_asset_deploy/compare/v1.0.1...v1.0.3) - 2024-09-23
|
4
|
+
- Add support for Shakapacker 8.x+
|
5
|
+
|
3
6
|
## [v1.0.2](https://github.com/Loomly/s3_asset_deploy/compare/v1.0.1...v1.0.2) - 2022-09-12
|
4
7
|
- Remove `acl` specification when saving removal manifest. Bucket policies should be used instead.
|
5
8
|
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
s3_asset_deploy (1.0.
|
4
|
+
s3_asset_deploy (1.0.3)
|
5
5
|
aws-sdk-s3 (~> 1.0)
|
6
6
|
mime-types (~> 3.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
aws-eventstream (1.
|
12
|
-
aws-partitions (1.
|
13
|
-
aws-sdk-core (3.
|
14
|
-
aws-eventstream (~> 1, >= 1.0
|
15
|
-
aws-partitions (~> 1, >= 1.
|
16
|
-
aws-sigv4 (~> 1.
|
11
|
+
aws-eventstream (1.3.0)
|
12
|
+
aws-partitions (1.977.0)
|
13
|
+
aws-sdk-core (3.208.0)
|
14
|
+
aws-eventstream (~> 1, >= 1.3.0)
|
15
|
+
aws-partitions (~> 1, >= 1.651.0)
|
16
|
+
aws-sigv4 (~> 1.9)
|
17
17
|
jmespath (~> 1, >= 1.6.1)
|
18
|
-
aws-sdk-kms (1.
|
19
|
-
aws-sdk-core (~> 3, >= 3.
|
20
|
-
aws-sigv4 (~> 1.
|
21
|
-
aws-sdk-s3 (1.
|
22
|
-
aws-sdk-core (~> 3, >= 3.
|
18
|
+
aws-sdk-kms (1.93.0)
|
19
|
+
aws-sdk-core (~> 3, >= 3.207.0)
|
20
|
+
aws-sigv4 (~> 1.5)
|
21
|
+
aws-sdk-s3 (1.164.0)
|
22
|
+
aws-sdk-core (~> 3, >= 3.207.0)
|
23
23
|
aws-sdk-kms (~> 1)
|
24
|
-
aws-sigv4 (~> 1.
|
25
|
-
aws-sigv4 (1.
|
24
|
+
aws-sigv4 (~> 1.5)
|
25
|
+
aws-sigv4 (1.10.0)
|
26
26
|
aws-eventstream (~> 1, >= 1.0.2)
|
27
27
|
byebug (11.1.3)
|
28
28
|
coderay (1.1.3)
|
29
29
|
diff-lcs (1.4.4)
|
30
|
-
jmespath (1.6.
|
30
|
+
jmespath (1.6.2)
|
31
31
|
method_source (1.0.0)
|
32
|
-
mime-types (3.
|
32
|
+
mime-types (3.5.2)
|
33
33
|
mime-types-data (~> 3.2015)
|
34
|
-
mime-types-data (3.
|
34
|
+
mime-types-data (3.2024.0903)
|
35
35
|
mini_portile2 (2.8.0)
|
36
36
|
nokogiri (1.13.3)
|
37
37
|
mini_portile2 (~> 2.8.0)
|
data/README.md
CHANGED
@@ -150,7 +150,7 @@ Given the example above, we can perform a deploy by running `bundle exec rake de
|
|
150
150
|
4. Clean any outdated or unused assets from S3 using `S3AssetDeploy`
|
151
151
|
|
152
152
|
## Customizing local asset collection
|
153
|
-
By default, `S3AssetDeploy::Manager` will use [`S3AssetDeploy::RailsLocalAssetCollector`](https://github.com/Loomly/s3_asset_deploy/blob/main/lib/s3_asset_deploy/rails_local_asset_collector.rb) to collect locally compiled assets. This will use the `Sprockets::Manifest` and `Webpacker` config (if
|
153
|
+
By default, `S3AssetDeploy::Manager` will use [`S3AssetDeploy::RailsLocalAssetCollector`](https://github.com/Loomly/s3_asset_deploy/blob/main/lib/s3_asset_deploy/rails_local_asset_collector.rb) to collect locally compiled assets. This will use the `Sprockets::Manifest` and `Webpacker`/`Shakapacker` config (if either are installed) to locate the compiled assets. `S3AssetDeploy::RailsLocalAssetCollector` inherits from the [`S3AssetDeploy::LocalAssetCollector`](https://github.com/Loomly/s3_asset_deploy/blob/main/lib/s3_asset_deploy/local_asset_collector.rb) base class. You can completely customize how your local assets are collected for deploys by creating your own class that inherits from `S3AssetDeploy::LocalAssetCollector` and passing it into the manager. You'll want override `S3AssetDeploy::LocalAssetCollector#assets` in your custom collector such that it returns an array of `S3AssetDeploy::LocalAsset` instances. Here's a basic example:
|
154
154
|
|
155
155
|
|
156
156
|
```ruby
|
@@ -22,10 +22,11 @@ class S3AssetDeploy::RailsLocalAssetCollector < S3AssetDeploy::LocalAssetCollect
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def pack_assets
|
25
|
-
return [] unless defined?(::Webpacker)
|
25
|
+
return [] unless defined?(::Shakapacker) || defined?(::Webpacker)
|
26
26
|
|
27
27
|
Dir.chdir(public_path) do
|
28
|
-
|
28
|
+
config = defined?(::Shakapacker) ? ::Shakapacker.config : ::Webpacker.config
|
29
|
+
packs_dir = config.public_output_path.relative_path_from(public_path)
|
29
30
|
|
30
31
|
Dir[File.join(packs_dir, "/**/**")]
|
31
32
|
.select { |path| File.file?(path) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_asset_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loomly
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
190
|
- !ruby/object:Gem::Version
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
|
-
rubygems_version: 3.
|
193
|
+
rubygems_version: 3.5.3
|
194
194
|
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: Deploy & manage static assets on S3 with rolling deploys & rollbacks in mind.
|