shakapacker 6.5.0 → 6.5.1

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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +18 -6
  4. data/Gemfile +1 -10
  5. data/Gemfile.development_dependencies +13 -0
  6. data/README.md +9 -35
  7. data/docs/react.md +10 -1
  8. data/docs/v6_upgrade.md +7 -19
  9. data/lib/webpacker/configuration.rb +6 -2
  10. data/lib/webpacker/env.rb +2 -4
  11. data/lib/webpacker/helper.rb +6 -0
  12. data/lib/webpacker/version.rb +1 -1
  13. data/lib/webpacker/version_checker.rb +72 -9
  14. data/lib/webpacker.rb +2 -0
  15. data/package.json +1 -1
  16. data/test/configuration_test.rb +75 -13
  17. data/test/env_test.rb +1 -1
  18. data/test/fixtures/beta_package-lock.v1.json +119 -0
  19. data/test/fixtures/beta_package-lock.v2.json +6777 -0
  20. data/test/fixtures/beta_package.json +1 -1
  21. data/test/fixtures/beta_yarn.v1.lock +106 -0
  22. data/test/fixtures/beta_yarn.v2.lock +164 -0
  23. data/test/fixtures/git_url_package-lock.v1.json +118 -0
  24. data/test/fixtures/git_url_package-lock.v2.json +10263 -0
  25. data/test/fixtures/git_url_package.json +1 -1
  26. data/test/fixtures/git_url_yarn.v1.lock +106 -0
  27. data/test/fixtures/git_url_yarn.v2.lock +165 -0
  28. data/test/fixtures/github_url_package-lock.v1.json +118 -0
  29. data/test/fixtures/github_url_package-lock.v2.json +10263 -0
  30. data/test/fixtures/github_url_package.json +1 -1
  31. data/test/fixtures/github_url_yarn.v1.lock +105 -0
  32. data/test/fixtures/github_url_yarn.v2.lock +165 -0
  33. data/test/fixtures/relative_path_package-lock.v1.json +3468 -0
  34. data/test/fixtures/relative_path_package-lock.v2.json +105 -0
  35. data/test/fixtures/relative_path_package.json +1 -1
  36. data/test/fixtures/relative_path_yarn.v1.lock +104 -0
  37. data/test/fixtures/relative_path_yarn.v2.lock +165 -0
  38. data/test/fixtures/semver_caret_package-lock.v1.json +119 -0
  39. data/test/fixtures/semver_caret_package-lock.v2.json +10264 -0
  40. data/test/fixtures/semver_caret_yarn.v1.lock +106 -0
  41. data/test/fixtures/semver_caret_yarn.v2.lock +165 -0
  42. data/test/fixtures/semver_exact_package-lock.v1.json +119 -0
  43. data/test/fixtures/semver_exact_package-lock.v2.json +6819 -0
  44. data/test/fixtures/{normal_package.json → semver_exact_package.json} +0 -0
  45. data/test/fixtures/semver_exact_yarn.v1.lock +106 -0
  46. data/test/fixtures/semver_exact_yarn.v2.lock +165 -0
  47. data/test/fixtures/semver_tilde_package-lock.v1.json +119 -0
  48. data/test/fixtures/semver_tilde_package-lock.v2.json +6777 -0
  49. data/test/fixtures/semver_tilde_yarn.v1.lock +106 -0
  50. data/test/fixtures/semver_tilde_yarn.v2.lock +164 -0
  51. data/test/fixtures/without_package-lock.v1.json +19 -0
  52. data/test/fixtures/without_package-lock.v2.json +47 -0
  53. data/test/fixtures/without_yarn.v1.lock +13 -0
  54. data/test/fixtures/without_yarn.v2.lock +29 -0
  55. data/test/test_app/config/webpacker_defaults_fallback.yml +11 -0
  56. data/test/version_checker_test.rb +575 -20
  57. metadata +72 -6
  58. data/Gemfile.lock +0 -193
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: 6.5.0
4
+ version: 6.5.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: 2022-07-04 00:00:00.000000000 Z
13
+ date: 2022-08-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -133,7 +133,7 @@ files:
133
133
  - CHANGELOG.md
134
134
  - CONTRIBUTING.md
135
135
  - Gemfile
136
- - Gemfile.lock
136
+ - Gemfile.development_dependencies
137
137
  - MIT-LICENSE
138
138
  - README.md
139
139
  - Rakefile
@@ -250,14 +250,46 @@ files:
250
250
  - test/digest_strategy_test.rb
251
251
  - test/engine_rake_tasks_test.rb
252
252
  - test/env_test.rb
253
+ - test/fixtures/beta_package-lock.v1.json
254
+ - test/fixtures/beta_package-lock.v2.json
253
255
  - test/fixtures/beta_package.json
256
+ - test/fixtures/beta_yarn.v1.lock
257
+ - test/fixtures/beta_yarn.v2.lock
258
+ - test/fixtures/git_url_package-lock.v1.json
259
+ - test/fixtures/git_url_package-lock.v2.json
254
260
  - test/fixtures/git_url_package.json
261
+ - test/fixtures/git_url_yarn.v1.lock
262
+ - test/fixtures/git_url_yarn.v2.lock
263
+ - test/fixtures/github_url_package-lock.v1.json
264
+ - test/fixtures/github_url_package-lock.v2.json
255
265
  - test/fixtures/github_url_package.json
256
- - test/fixtures/normal_package.json
266
+ - test/fixtures/github_url_yarn.v1.lock
267
+ - test/fixtures/github_url_yarn.v2.lock
268
+ - test/fixtures/relative_path_package-lock.v1.json
269
+ - test/fixtures/relative_path_package-lock.v2.json
257
270
  - test/fixtures/relative_path_package.json
271
+ - test/fixtures/relative_path_yarn.v1.lock
272
+ - test/fixtures/relative_path_yarn.v2.lock
273
+ - test/fixtures/semver_caret_package-lock.v1.json
274
+ - test/fixtures/semver_caret_package-lock.v2.json
258
275
  - test/fixtures/semver_caret_package.json
276
+ - test/fixtures/semver_caret_yarn.v1.lock
277
+ - test/fixtures/semver_caret_yarn.v2.lock
278
+ - test/fixtures/semver_exact_package-lock.v1.json
279
+ - test/fixtures/semver_exact_package-lock.v2.json
280
+ - test/fixtures/semver_exact_package.json
281
+ - test/fixtures/semver_exact_yarn.v1.lock
282
+ - test/fixtures/semver_exact_yarn.v2.lock
283
+ - test/fixtures/semver_tilde_package-lock.v1.json
284
+ - test/fixtures/semver_tilde_package-lock.v2.json
259
285
  - test/fixtures/semver_tilde_package.json
286
+ - test/fixtures/semver_tilde_yarn.v1.lock
287
+ - test/fixtures/semver_tilde_yarn.v2.lock
288
+ - test/fixtures/without_package-lock.v1.json
289
+ - test/fixtures/without_package-lock.v2.json
260
290
  - test/fixtures/without_package.json
291
+ - test/fixtures/without_yarn.v1.lock
292
+ - test/fixtures/without_yarn.v2.lock
261
293
  - test/helper_test.rb
262
294
  - test/manifest_test.rb
263
295
  - test/mounted_app/Rakefile
@@ -284,6 +316,7 @@ files:
284
316
  - test/test_app/config/initializers/inspect_autoload_paths.rb
285
317
  - test/test_app/config/webpack/webpack.config.js
286
318
  - test/test_app/config/webpacker.yml
319
+ - test/test_app/config/webpacker_defaults_fallback.yml
287
320
  - test/test_app/config/webpacker_manifest_path.yml
288
321
  - test/test_app/config/webpacker_nested_entries.yml
289
322
  - test/test_app/config/webpacker_no_precompile.yml
@@ -303,7 +336,7 @@ homepage: https://github.com/shakacode/shakapacker
303
336
  licenses:
304
337
  - MIT
305
338
  metadata:
306
- source_code_uri: https://github.com/shakacode/shakapacker/tree/v6.5.0
339
+ source_code_uri: https://github.com/shakacode/shakapacker/tree/v6.5.1
307
340
  post_install_message:
308
341
  rdoc_options: []
309
342
  require_paths:
@@ -333,14 +366,46 @@ test_files:
333
366
  - test/digest_strategy_test.rb
334
367
  - test/engine_rake_tasks_test.rb
335
368
  - test/env_test.rb
369
+ - test/fixtures/beta_package-lock.v1.json
370
+ - test/fixtures/beta_package-lock.v2.json
336
371
  - test/fixtures/beta_package.json
372
+ - test/fixtures/beta_yarn.v1.lock
373
+ - test/fixtures/beta_yarn.v2.lock
374
+ - test/fixtures/git_url_package-lock.v1.json
375
+ - test/fixtures/git_url_package-lock.v2.json
337
376
  - test/fixtures/git_url_package.json
377
+ - test/fixtures/git_url_yarn.v1.lock
378
+ - test/fixtures/git_url_yarn.v2.lock
379
+ - test/fixtures/github_url_package-lock.v1.json
380
+ - test/fixtures/github_url_package-lock.v2.json
338
381
  - test/fixtures/github_url_package.json
339
- - test/fixtures/normal_package.json
382
+ - test/fixtures/github_url_yarn.v1.lock
383
+ - test/fixtures/github_url_yarn.v2.lock
384
+ - test/fixtures/relative_path_package-lock.v1.json
385
+ - test/fixtures/relative_path_package-lock.v2.json
340
386
  - test/fixtures/relative_path_package.json
387
+ - test/fixtures/relative_path_yarn.v1.lock
388
+ - test/fixtures/relative_path_yarn.v2.lock
389
+ - test/fixtures/semver_caret_package-lock.v1.json
390
+ - test/fixtures/semver_caret_package-lock.v2.json
341
391
  - test/fixtures/semver_caret_package.json
392
+ - test/fixtures/semver_caret_yarn.v1.lock
393
+ - test/fixtures/semver_caret_yarn.v2.lock
394
+ - test/fixtures/semver_exact_package-lock.v1.json
395
+ - test/fixtures/semver_exact_package-lock.v2.json
396
+ - test/fixtures/semver_exact_package.json
397
+ - test/fixtures/semver_exact_yarn.v1.lock
398
+ - test/fixtures/semver_exact_yarn.v2.lock
399
+ - test/fixtures/semver_tilde_package-lock.v1.json
400
+ - test/fixtures/semver_tilde_package-lock.v2.json
342
401
  - test/fixtures/semver_tilde_package.json
402
+ - test/fixtures/semver_tilde_yarn.v1.lock
403
+ - test/fixtures/semver_tilde_yarn.v2.lock
404
+ - test/fixtures/without_package-lock.v1.json
405
+ - test/fixtures/without_package-lock.v2.json
343
406
  - test/fixtures/without_package.json
407
+ - test/fixtures/without_yarn.v1.lock
408
+ - test/fixtures/without_yarn.v2.lock
344
409
  - test/helper_test.rb
345
410
  - test/manifest_test.rb
346
411
  - test/mounted_app/Rakefile
@@ -367,6 +432,7 @@ test_files:
367
432
  - test/test_app/config/initializers/inspect_autoload_paths.rb
368
433
  - test/test_app/config/webpack/webpack.config.js
369
434
  - test/test_app/config/webpacker.yml
435
+ - test/test_app/config/webpacker_defaults_fallback.yml
370
436
  - test/test_app/config/webpacker_manifest_path.yml
371
437
  - test/test_app/config/webpacker_nested_entries.yml
372
438
  - test/test_app/config/webpacker_no_precompile.yml
data/Gemfile.lock DELETED
@@ -1,193 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- shakapacker (6.5.0)
5
- activesupport (>= 5.2)
6
- rack-proxy (>= 0.6.1)
7
- railties (>= 5.2)
8
- semantic_range (>= 2.3.0)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- actioncable (6.1.6)
14
- actionpack (= 6.1.6)
15
- activesupport (= 6.1.6)
16
- nio4r (~> 2.0)
17
- websocket-driver (>= 0.6.1)
18
- actionmailbox (6.1.6)
19
- actionpack (= 6.1.6)
20
- activejob (= 6.1.6)
21
- activerecord (= 6.1.6)
22
- activestorage (= 6.1.6)
23
- activesupport (= 6.1.6)
24
- mail (>= 2.7.1)
25
- actionmailer (6.1.6)
26
- actionpack (= 6.1.6)
27
- actionview (= 6.1.6)
28
- activejob (= 6.1.6)
29
- activesupport (= 6.1.6)
30
- mail (~> 2.5, >= 2.5.4)
31
- rails-dom-testing (~> 2.0)
32
- actionpack (6.1.6)
33
- actionview (= 6.1.6)
34
- activesupport (= 6.1.6)
35
- rack (~> 2.0, >= 2.0.9)
36
- rack-test (>= 0.6.3)
37
- rails-dom-testing (~> 2.0)
38
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
39
- actiontext (6.1.6)
40
- actionpack (= 6.1.6)
41
- activerecord (= 6.1.6)
42
- activestorage (= 6.1.6)
43
- activesupport (= 6.1.6)
44
- nokogiri (>= 1.8.5)
45
- actionview (6.1.6)
46
- activesupport (= 6.1.6)
47
- builder (~> 3.1)
48
- erubi (~> 1.4)
49
- rails-dom-testing (~> 2.0)
50
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
- activejob (6.1.6)
52
- activesupport (= 6.1.6)
53
- globalid (>= 0.3.6)
54
- activemodel (6.1.6)
55
- activesupport (= 6.1.6)
56
- activerecord (6.1.6)
57
- activemodel (= 6.1.6)
58
- activesupport (= 6.1.6)
59
- activestorage (6.1.6)
60
- actionpack (= 6.1.6)
61
- activejob (= 6.1.6)
62
- activerecord (= 6.1.6)
63
- activesupport (= 6.1.6)
64
- marcel (~> 1.0)
65
- mini_mime (>= 1.1.0)
66
- activesupport (6.1.6)
67
- concurrent-ruby (~> 1.0, >= 1.0.2)
68
- i18n (>= 1.6, < 2)
69
- minitest (>= 5.1)
70
- tzinfo (~> 2.0)
71
- zeitwerk (~> 2.3)
72
- ast (2.4.2)
73
- builder (3.2.4)
74
- byebug (11.1.3)
75
- concurrent-ruby (1.1.10)
76
- crass (1.0.6)
77
- erubi (1.10.0)
78
- globalid (1.0.0)
79
- activesupport (>= 5.0)
80
- i18n (1.10.0)
81
- concurrent-ruby (~> 1.0)
82
- loofah (2.18.0)
83
- crass (~> 1.0.2)
84
- nokogiri (>= 1.5.9)
85
- mail (2.7.1)
86
- mini_mime (>= 0.1.1)
87
- marcel (1.0.2)
88
- method_source (1.0.0)
89
- mini_mime (1.1.2)
90
- mini_portile2 (2.8.0)
91
- minitest (5.15.0)
92
- nio4r (2.5.8)
93
- nokogiri (1.13.6)
94
- mini_portile2 (~> 2.8.0)
95
- racc (~> 1.4)
96
- nokogiri (1.13.6-arm64-darwin)
97
- racc (~> 1.4)
98
- nokogiri (1.13.6-x86_64-darwin)
99
- racc (~> 1.4)
100
- nokogiri (1.13.6-x86_64-linux)
101
- racc (~> 1.4)
102
- parallel (1.22.1)
103
- parser (3.1.2.0)
104
- ast (~> 2.4.1)
105
- racc (1.6.0)
106
- rack (2.2.3.1)
107
- rack-proxy (0.7.0)
108
- rack
109
- rack-test (1.1.0)
110
- rack (>= 1.0, < 3)
111
- rails (6.1.6)
112
- actioncable (= 6.1.6)
113
- actionmailbox (= 6.1.6)
114
- actionmailer (= 6.1.6)
115
- actionpack (= 6.1.6)
116
- actiontext (= 6.1.6)
117
- actionview (= 6.1.6)
118
- activejob (= 6.1.6)
119
- activemodel (= 6.1.6)
120
- activerecord (= 6.1.6)
121
- activestorage (= 6.1.6)
122
- activesupport (= 6.1.6)
123
- bundler (>= 1.15.0)
124
- railties (= 6.1.6)
125
- sprockets-rails (>= 2.0.0)
126
- rails-dom-testing (2.0.3)
127
- activesupport (>= 4.2.0)
128
- nokogiri (>= 1.6)
129
- rails-html-sanitizer (1.4.2)
130
- loofah (~> 2.3)
131
- railties (6.1.6)
132
- actionpack (= 6.1.6)
133
- activesupport (= 6.1.6)
134
- method_source
135
- rake (>= 12.2)
136
- thor (~> 1.0)
137
- rainbow (3.1.1)
138
- rake (13.0.6)
139
- regexp_parser (2.5.0)
140
- rexml (3.2.5)
141
- rubocop (1.30.0)
142
- parallel (~> 1.10)
143
- parser (>= 3.1.0.0)
144
- rainbow (>= 2.2.2, < 4.0)
145
- regexp_parser (>= 1.8, < 3.0)
146
- rexml (>= 3.2.5, < 4.0)
147
- rubocop-ast (>= 1.18.0, < 2.0)
148
- ruby-progressbar (~> 1.7)
149
- unicode-display_width (>= 1.4.0, < 3.0)
150
- rubocop-ast (1.18.0)
151
- parser (>= 3.1.1.0)
152
- rubocop-performance (1.11.5)
153
- rubocop (>= 1.7.0, < 2.0)
154
- rubocop-ast (>= 0.4.0)
155
- ruby-progressbar (1.11.0)
156
- semantic_range (3.0.0)
157
- sprockets (4.0.3)
158
- concurrent-ruby (~> 1.0)
159
- rack (> 1, < 3)
160
- sprockets-rails (3.4.2)
161
- actionpack (>= 5.2)
162
- activesupport (>= 5.2)
163
- sprockets (>= 3.0.0)
164
- thor (1.2.1)
165
- tzinfo (2.0.4)
166
- concurrent-ruby (~> 1.0)
167
- unicode-display_width (2.1.0)
168
- websocket-driver (0.7.5)
169
- websocket-extensions (>= 0.1.0)
170
- websocket-extensions (0.1.5)
171
- zeitwerk (2.5.4)
172
-
173
- PLATFORMS
174
- arm64-darwin-20
175
- ruby
176
- x86_64-darwin-20
177
- x86_64-linux
178
-
179
- DEPENDENCIES
180
- bundler (>= 1.3.0)
181
- byebug
182
- minitest (~> 5.0)
183
- nokogiri (~> 1.13, >= 1.13.6)
184
- rack-proxy
185
- rails (>= 6.1.6)
186
- rake (>= 11.1)
187
- rubocop
188
- rubocop-performance
189
- semantic_range
190
- shakapacker!
191
-
192
- BUNDLED WITH
193
- 2.2.32