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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 482b049a3ae897a8b60fdca1931da6de0fe4558ad5c6e958a0d474bdb6e2439c
4
- data.tar.gz: 41232f6389b851e70dd95970052bfb3d8a7eb90561cfc613a72cdc2973e21d07
3
+ metadata.gz: 7a06e3a2a32571de92dd796121bdecba16250a771c7b9ce24a216d8cab0d5fa5
4
+ data.tar.gz: 93005eac27656668b6a3a0e5e2df05b49f85446865d734ce61593b4fbb85aeb0
5
5
  SHA512:
6
- metadata.gz: e8bc7982759a34dbcac1c7b97ff34d3e2ed2a5657465394e4a5c3fdbb9c92deac254b0e27750729fc6d7c99486d4963475785e9f0fa8b6fbaad344993416a440
7
- data.tar.gz: cc8788fc2dea4b4742c69c7fbc3f042b93eea65f06a79af361e8c5fd6ed83eea5b696448ba2265888fca085d8a89bc9ff5ea83b8c57963493619277fc17927de
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.2)
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.2.0)
12
- aws-partitions (1.628.0)
13
- aws-sdk-core (3.145.0)
14
- aws-eventstream (~> 1, >= 1.0.2)
15
- aws-partitions (~> 1, >= 1.525.0)
16
- aws-sigv4 (~> 1.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.58.0)
19
- aws-sdk-core (~> 3, >= 3.127.0)
20
- aws-sigv4 (~> 1.1)
21
- aws-sdk-s3 (1.114.0)
22
- aws-sdk-core (~> 3, >= 3.127.0)
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.4)
25
- aws-sigv4 (1.5.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.1)
30
+ jmespath (1.6.2)
31
31
  method_source (1.0.0)
32
- mime-types (3.4.1)
32
+ mime-types (3.5.2)
33
33
  mime-types-data (~> 3.2015)
34
- mime-types-data (3.2022.0105)
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 `Webpacker` is 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:
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
- packs_dir = ::Webpacker.config.public_output_path.relative_path_from(public_path)
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) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module S3AssetDeploy
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
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.2
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: 2022-09-12 00:00:00.000000000 Z
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.2.32
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.