shakapacker 7.2.0 → 7.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/dummy.yml +5 -1
- data/.github/workflows/generator.yml +10 -1
- data/.github/workflows/jest.yml +5 -1
- data/.github/workflows/js-lint.yml +5 -1
- data/.github/workflows/rubocop.yml +5 -1
- data/.github/workflows/ruby-backward-compatibility.yml +5 -1
- data/.github/workflows/ruby.yml +5 -1
- data/CHANGELOG.md +15 -4
- data/lib/shakapacker/configuration.rb +7 -3
- data/lib/shakapacker/version.rb +1 -1
- data/package.json +2 -2
- data/spec/shakapacker/configuration_spec.rb +14 -7
- 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: 6613d4b52d4526e1ead4d4711e9daab007e98076f3af92e2cd9a61a65386cf74
|
4
|
+
data.tar.gz: 7d31d8f1cfbfe305a6a6e2cc0159150ab6d7c7a3c36ef0608c13389b85a7424b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d60bca460bbbba6f9944368cab33d63e1958b607d12aac91aba71eb9a00066cbce92893fcc01034c33e347e4f938321bbba2c27650436577ed3078cad13c753
|
7
|
+
data.tar.gz: 80d705dd8d7b5fae172909a5f334cd774dcd57c5864d3c051cc7a33d6b2ef82412f5d104e4a0284d65c3c8a630992798812925e9f5f4e4389b0ec05f8b357889
|
data/.github/workflows/dummy.yml
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
name: Generator specs
|
2
2
|
|
3
|
-
on:
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- 'master'
|
7
|
+
pull_request:
|
4
8
|
|
5
9
|
jobs:
|
6
10
|
test:
|
@@ -35,6 +39,11 @@ jobs:
|
|
35
39
|
- uses: ruby/setup-ruby@v1
|
36
40
|
with:
|
37
41
|
ruby-version: ${{ matrix.ruby }}
|
42
|
+
# Bundler 2.5.0 dropped support for Ruby 2.6 and 2.7
|
43
|
+
- name: Use Bundler 2.4.22
|
44
|
+
run: |
|
45
|
+
gem install bundler -v '2.4.22'
|
46
|
+
bundle config --local path vendor/bundle
|
38
47
|
- name: Install dependencies
|
39
48
|
run: bundle install
|
40
49
|
- run: bundle exec rake run_spec:generator
|
data/.github/workflows/jest.yml
CHANGED
data/.github/workflows/ruby.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -7,7 +7,16 @@
|
|
7
7
|
## [Unreleased]
|
8
8
|
Changes since the last non-beta release.
|
9
9
|
|
10
|
-
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Allow `compression-webpack-plugin` v11. [PR 406](https://github.com/shakacode/shakapacker/pull/406) by [tagliala](https://github.com/tagliala).
|
13
|
+
|
14
|
+
## [v7.2.1] - December 30, 2023
|
15
|
+
|
16
|
+
### Fixed
|
17
|
+
- Show deprecation message for `relative_url_root` only if it is set. [PR 400](https://github.com/shakacode/shakapacker/pull/400) by [ahangarha](https://github.com/ahangarha).
|
18
|
+
|
19
|
+
## [v7.2.0] - December 28, 2023
|
11
20
|
|
12
21
|
### Added
|
13
22
|
- Experimental support for other JS package managers using `package_json` gem [PR 349](https://github.com/shakacode/shakapacker/pull/349) by [G-Rath](https://github.com/g-rath).
|
@@ -15,13 +24,13 @@ _Please add entries here for your pull requests that are not yet released._
|
|
15
24
|
- Use `config/shakapacker.yml` as the secondary source for `asset_host` and `relative_url_root` configurations [PR 376](https://github.com/shakacode/shakapacker/pull/376) by [ahangarha](https://github.com/ahangarha).
|
16
25
|
|
17
26
|
### Fixed
|
18
|
-
- Recommend `server` option instead of deprecated `https` option when `--https` is provided [PR 380](https://github.com/shakacode/shakapacker/pull/380) by [G-Rath](https://github.com/g-rath)
|
27
|
+
- Recommend `server` option instead of the deprecated `https` option when `--https` is provided [PR 380](https://github.com/shakacode/shakapacker/pull/380) by [G-Rath](https://github.com/g-rath)
|
19
28
|
- Recompile assets on asset host change [PR 364](https://github.com/shakacode/shakapacker/pull/364) by [ahangarha](https://github.com/ahangarha).
|
20
29
|
- Add deprecation warning for `https` option in `shakapacker.yml` (use `server: 'https'` instead) [PR 382](https://github.com/shakacode/shakapacker/pull/382) by [G-Rath](https://github.com/g-rath).
|
21
30
|
- Disable Hot Module Replacement in `webpack-dev-server` when `hmr: false` [PR 392](https://github.com/shakacode/shakapacker/pull/392) by [thedanbob](https://github.com/thedanbob).
|
22
31
|
|
23
32
|
### Deprecated
|
24
|
-
- The usage of relative_url_root is deprecated in Shakapacker and will be removed in v8. [PR 376](https://github.com/shakacode/shakapacker/pull/376) by [ahangarha](https://github.com/ahangarha).
|
33
|
+
- The usage of `relative_url_root` is deprecated in Shakapacker and will be removed in v8. [PR 376](https://github.com/shakacode/shakapacker/pull/376) by [ahangarha](https://github.com/ahangarha).
|
25
34
|
|
26
35
|
## [v7.1.0] - September 30, 2023
|
27
36
|
|
@@ -290,7 +299,9 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
|
|
290
299
|
## v5.4.3 and prior changes from rails/webpacker
|
291
300
|
See [CHANGELOG.md in rails/webpacker (up to v5.4.3)](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
|
292
301
|
|
293
|
-
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v7.1
|
302
|
+
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v7.2.1...master
|
303
|
+
[v7.2.1]: https://github.com/shakacode/shakapacker/compare/v7.2.0...v7.2.1
|
304
|
+
[v7.2.0]: https://github.com/shakacode/shakapacker/compare/v7.1.0...v7.2.0
|
294
305
|
[v7.1.0]: https://github.com/shakacode/shakapacker/compare/v7.0.3...v7.1.0
|
295
306
|
[v7.0.3]: https://github.com/shakacode/shakapacker/compare/v7.0.2...v7.0.3
|
296
307
|
[v7.0.2]: https://github.com/shakacode/shakapacker/compare/v7.0.1...v7.0.2
|
@@ -124,12 +124,16 @@ class Shakapacker::Configuration
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def relative_url_root
|
127
|
-
|
128
|
-
|
129
|
-
ENV.fetch(
|
127
|
+
result = ENV.fetch(
|
130
128
|
"SHAKAPACKER_RELATIVE_URL_ROOT",
|
131
129
|
fetch(:relative_url_root) || ActionController::Base.relative_url_root
|
132
130
|
)
|
131
|
+
|
132
|
+
if result
|
133
|
+
Shakapacker.puts_deprecation_message("The usage of relative_url_root is deprecated in Shakapacker and will be removed in v8.")
|
134
|
+
end
|
135
|
+
|
136
|
+
result
|
133
137
|
end
|
134
138
|
|
135
139
|
private
|
data/lib/shakapacker/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shakapacker",
|
3
|
-
"version": "7.2.
|
3
|
+
"version": "7.2.2",
|
4
4
|
"description": "Use webpack to manage app-like JavaScript modules in Rails",
|
5
5
|
"homepage": "https://github.com/shakacode/shakapacker",
|
6
6
|
"bugs": {
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"@types/babel__core": "^7.0.0",
|
64
64
|
"@types/webpack": "^5.0.0",
|
65
65
|
"babel-loader": "^8.2.4 || ^9.0.0",
|
66
|
-
"compression-webpack-plugin": "^9.0.0 || ^10.0.0",
|
66
|
+
"compression-webpack-plugin": "^9.0.0 || ^10.0.0|| ^11.0.0",
|
67
67
|
"terser-webpack-plugin": "^5.3.1",
|
68
68
|
"webpack": "^5.72.0",
|
69
69
|
"webpack-assets-manifest": "^5.0.6",
|
@@ -383,14 +383,17 @@ describe "Shakapacker::Configuration" do
|
|
383
383
|
)
|
384
384
|
end
|
385
385
|
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
386
|
+
context "with SHAKAPACKER_RELATIVE_URL_ROOT set" do
|
387
|
+
before do
|
388
|
+
expect(ENV).to receive(:fetch).with("SHAKAPACKER_RELATIVE_URL_ROOT", nil).and_return("custom_value")
|
389
|
+
end
|
390
|
+
it "shows deprecation message" do
|
391
|
+
expect { config.relative_url_root }.to output(/deprecated/).to_stdout
|
392
|
+
end
|
392
393
|
|
393
|
-
|
394
|
+
it "returns the value of SHAKAPACKER_RELATIVE_URL_ROOT" do
|
395
|
+
expect(config.relative_url_root).to eq "custom_value"
|
396
|
+
end
|
394
397
|
end
|
395
398
|
|
396
399
|
context "without SHAKAPACKER_RELATIVE_URL_ROOT set" do
|
@@ -415,6 +418,10 @@ describe "Shakapacker::Configuration" do
|
|
415
418
|
|
416
419
|
expect(config.relative_url_root).to be nil
|
417
420
|
end
|
421
|
+
|
422
|
+
it "doesn't shows deprecation message" do
|
423
|
+
expect { config.relative_url_root }.to_not output(/deprecated/).to_stdout
|
424
|
+
end
|
418
425
|
end
|
419
426
|
end
|
420
427
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shakapacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.2.
|
4
|
+
version: 7.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-01-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -566,7 +566,7 @@ homepage: https://github.com/shakacode/shakapacker
|
|
566
566
|
licenses:
|
567
567
|
- MIT
|
568
568
|
metadata:
|
569
|
-
source_code_uri: https://github.com/shakacode/shakapacker/tree/v7.2.
|
569
|
+
source_code_uri: https://github.com/shakacode/shakapacker/tree/v7.2.2
|
570
570
|
post_install_message:
|
571
571
|
rdoc_options: []
|
572
572
|
require_paths:
|