shakapacker 7.2.0 → 7.2.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/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 +12 -3
- data/lib/shakapacker/configuration.rb +7 -3
- data/lib/shakapacker/version.rb +1 -1
- data/package.json +1 -1
- 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: 1e486b8d36133595f767f26dd8461b1b57fbea6daeba86eaa79b2f3ffcf7dbd2
|
4
|
+
data.tar.gz: 94b19f6397652a9abbfc3e80ef51ead55d0aec78191ab7bd36383e3ae37f5fce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 328d290b9d5bf040aea4239675196975569fb0606e1d93c49bdaf73b0b87d5d2267b3f1069ff26297991016e1c6aad5a8d9fad782bfa17a4898cac95cf421d6d
|
7
|
+
data.tar.gz: d3067ddec4711898c5a0dcc63b854372917600ecb2019b57c4153bd2a16bf24ce56ec015de3023f46980f7a660ee25e610623339a5b49b1f0e342cbb7dfbead4
|
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
@@ -9,19 +9,26 @@ Changes since the last non-beta release.
|
|
9
9
|
|
10
10
|
_Please add entries here for your pull requests that are not yet released._
|
11
11
|
|
12
|
+
## [v7.2.1] - December 30, 2023
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
- 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).
|
16
|
+
|
17
|
+
## [v7.2.0] - December 28, 2023
|
18
|
+
|
12
19
|
### Added
|
13
20
|
- 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).
|
14
21
|
- Support `hmr: only` configuration [PR 378](https://github.com/shakacode/shakapacker/pull/378) by [SimenB](https://github.com/SimenB).
|
15
22
|
- 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
23
|
|
17
24
|
### 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)
|
25
|
+
- 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
26
|
- Recompile assets on asset host change [PR 364](https://github.com/shakacode/shakapacker/pull/364) by [ahangarha](https://github.com/ahangarha).
|
20
27
|
- 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
28
|
- 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
29
|
|
23
30
|
### 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).
|
31
|
+
- 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
32
|
|
26
33
|
## [v7.1.0] - September 30, 2023
|
27
34
|
|
@@ -290,7 +297,9 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
|
|
290
297
|
## v5.4.3 and prior changes from rails/webpacker
|
291
298
|
See [CHANGELOG.md in rails/webpacker (up to v5.4.3)](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
|
292
299
|
|
293
|
-
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v7.1
|
300
|
+
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v7.2.1...master
|
301
|
+
[v7.2.1]: https://github.com/shakacode/shakapacker/compare/v7.2.0...v7.2.1
|
302
|
+
[v7.2.0]: https://github.com/shakacode/shakapacker/compare/v7.1.0...v7.2.0
|
294
303
|
[v7.1.0]: https://github.com/shakacode/shakapacker/compare/v7.0.3...v7.1.0
|
295
304
|
[v7.0.3]: https://github.com/shakacode/shakapacker/compare/v7.0.2...v7.0.3
|
296
305
|
[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
@@ -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.1
|
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-01 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.1
|
570
570
|
post_install_message:
|
571
571
|
rdoc_options: []
|
572
572
|
require_paths:
|