react_on_rails 17.1.0.rc.0 → 17.1.0.rc.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.
- checksums.yaml +4 -4
- data/Gemfile.development_dependencies +1 -1
- data/Gemfile.lock +15 -15
- data/docs/agent/install-and-upgrade.md +4 -2
- data/lib/generators/react_on_rails/install_generator.rb +9 -2
- data/lib/react_on_rails/system_checker.rb +2 -1
- data/lib/react_on_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7026d13c6ff6a7d80dcb8c566a11e8446036d052ec2418e47f2bcdaec6a2eed3
|
|
4
|
+
data.tar.gz: 0a1354cabb04d73d50281387151ab91c440b06955d038dd0c564cc08cc20e51e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a40e5cc18caeef6e4879a46314aa86ea6c5b48128fbf60b2e4793b1d32748b334767b4f432c8ef6e1779fa21a07d53edf00253235ced9d641b5e3b43f74db4b8
|
|
7
|
+
data.tar.gz: e3af833f783b8096f457d1ecbd4e268a7e07b61f8b39f00f48de30c0c976ad5f75f3285bf534afc71d179c73af75b55c6d640a0bf82b0ff656cadfd08ab24775
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
react_on_rails (17.1.0.rc.
|
|
4
|
+
react_on_rails (17.1.0.rc.1)
|
|
5
5
|
addressable
|
|
6
6
|
connection_pool
|
|
7
7
|
execjs (~> 2.5)
|
|
@@ -117,7 +117,7 @@ GEM
|
|
|
117
117
|
cgi (0.5.2)
|
|
118
118
|
childprocess (5.0.0)
|
|
119
119
|
coderay (1.1.3)
|
|
120
|
-
concurrent-ruby (1.3.
|
|
120
|
+
concurrent-ruby (1.3.8)
|
|
121
121
|
connection_pool (3.0.2)
|
|
122
122
|
crass (1.0.7)
|
|
123
123
|
csv (3.3.5)
|
|
@@ -132,7 +132,7 @@ GEM
|
|
|
132
132
|
drb (2.2.3)
|
|
133
133
|
equivalent-xml (0.6.0)
|
|
134
134
|
nokogiri (>= 1.4.3)
|
|
135
|
-
erb (6.0.
|
|
135
|
+
erb (6.0.7)
|
|
136
136
|
erubi (1.13.1)
|
|
137
137
|
execjs (2.9.1)
|
|
138
138
|
ffi (1.16.3)
|
|
@@ -146,7 +146,7 @@ GEM
|
|
|
146
146
|
i18n (1.15.2)
|
|
147
147
|
concurrent-ruby (~> 1.0)
|
|
148
148
|
interception (0.5)
|
|
149
|
-
io-console (0.
|
|
149
|
+
io-console (0.9.2)
|
|
150
150
|
irb (1.18.0)
|
|
151
151
|
pp (>= 0.6.0)
|
|
152
152
|
prism (>= 1.3.0)
|
|
@@ -169,7 +169,7 @@ GEM
|
|
|
169
169
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
170
170
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
171
171
|
logger (1.7.0)
|
|
172
|
-
loofah (2.25.
|
|
172
|
+
loofah (2.25.2)
|
|
173
173
|
crass (~> 1.0.2)
|
|
174
174
|
nokogiri (>= 1.12.0)
|
|
175
175
|
mail (2.9.0)
|
|
@@ -228,16 +228,16 @@ GEM
|
|
|
228
228
|
pry-rescue (1.6.0)
|
|
229
229
|
interception (>= 0.5)
|
|
230
230
|
pry (>= 0.12.0)
|
|
231
|
-
psych (5.
|
|
231
|
+
psych (5.5.0)
|
|
232
232
|
date
|
|
233
233
|
stringio
|
|
234
234
|
public_suffix (6.0.2)
|
|
235
235
|
puma (6.6.1)
|
|
236
236
|
nio4r (~> 2.0)
|
|
237
237
|
racc (1.8.1)
|
|
238
|
-
rack (3.2.
|
|
239
|
-
rack-proxy (0.
|
|
240
|
-
rack
|
|
238
|
+
rack (3.2.7)
|
|
239
|
+
rack-proxy (1.0.1)
|
|
240
|
+
rack (>= 2.0, < 4)
|
|
241
241
|
rack-session (2.1.2)
|
|
242
242
|
base64 (>= 0.1.0)
|
|
243
243
|
rack (>= 3.0.0)
|
|
@@ -263,8 +263,8 @@ GEM
|
|
|
263
263
|
activesupport (>= 5.0.0)
|
|
264
264
|
minitest
|
|
265
265
|
nokogiri (>= 1.6)
|
|
266
|
-
rails-html-sanitizer (1.7.
|
|
267
|
-
loofah (~> 2.25)
|
|
266
|
+
rails-html-sanitizer (1.7.1)
|
|
267
|
+
loofah (~> 2.25, >= 2.25.2)
|
|
268
268
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
269
269
|
railties (7.1.6)
|
|
270
270
|
actionpack (= 7.1.6)
|
|
@@ -288,7 +288,7 @@ GEM
|
|
|
288
288
|
psych (>= 4.0.0)
|
|
289
289
|
tsort
|
|
290
290
|
regexp_parser (2.11.3)
|
|
291
|
-
reline (0.
|
|
291
|
+
reline (0.7.0)
|
|
292
292
|
io-console (~> 0.5)
|
|
293
293
|
rexml (3.4.4)
|
|
294
294
|
rspec-core (3.13.0)
|
|
@@ -331,7 +331,7 @@ GEM
|
|
|
331
331
|
rubyzip (>= 1.2.2, < 3.0)
|
|
332
332
|
websocket (~> 1.0)
|
|
333
333
|
semantic_range (3.1.1)
|
|
334
|
-
shakapacker (10.3.
|
|
334
|
+
shakapacker (10.3.2)
|
|
335
335
|
activesupport (>= 5.2)
|
|
336
336
|
package_json
|
|
337
337
|
rack-proxy (>= 0.6.1)
|
|
@@ -402,7 +402,7 @@ GEM
|
|
|
402
402
|
xpath (3.2.0)
|
|
403
403
|
nokogiri (~> 1.8)
|
|
404
404
|
yard (0.9.36)
|
|
405
|
-
zeitwerk (2.8.
|
|
405
|
+
zeitwerk (2.8.3)
|
|
406
406
|
|
|
407
407
|
PLATFORMS
|
|
408
408
|
arm64-darwin
|
|
@@ -443,7 +443,7 @@ DEPENDENCIES
|
|
|
443
443
|
sass-rails (~> 6.0)
|
|
444
444
|
sdoc
|
|
445
445
|
selenium-webdriver (= 4.9.0)
|
|
446
|
-
shakapacker (= 10.3.
|
|
446
|
+
shakapacker (= 10.3.2)
|
|
447
447
|
simplecov (~> 0.16.1)
|
|
448
448
|
spring (~> 4.0)
|
|
449
449
|
sprockets (~> 4.0)
|
|
@@ -11,7 +11,8 @@ Use this guide for an existing Rails app. Keep app-specific choices and custom c
|
|
|
11
11
|
|
|
12
12
|
## Install
|
|
13
13
|
|
|
14
|
-
Add
|
|
14
|
+
Add React on Rails first so Bundler resolves a compatible Shakapacker version, then pin that resolved version when
|
|
15
|
+
promoting Shakapacker to a direct dependency.
|
|
15
16
|
Choose exactly one stack flag before running the install generator.
|
|
16
17
|
Use `--standard-only` for OSS, `--pro` for Pro, or `--rsc` for Pro with RSC.
|
|
17
18
|
Do not rely on an interactive TTY prompt; replace `<STACK_FLAG>` explicitly in every command.
|
|
@@ -19,8 +20,9 @@ Choose the language explicitly too: replace `<LANGUAGE_CHOICE>` with `--typescri
|
|
|
19
20
|
or remove that placeholder for JavaScript. TypeScript is optional; omitting its flag preserves JavaScript.
|
|
20
21
|
|
|
21
22
|
```bash
|
|
22
|
-
bundle add shakapacker --strict
|
|
23
23
|
bundle add react_on_rails --strict
|
|
24
|
+
SHAKAPACKER_VERSION="$(bundle exec ruby -rreact_on_rails -e 'print ReactOnRails::PackerUtils.shakapacker_version')"
|
|
25
|
+
bundle add shakapacker --version="${SHAKAPACKER_VERSION}" --strict
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
For `--pro` or `--rsc`, React on Rails Pro is free for evaluation and non-production use;
|
|
@@ -1033,7 +1033,13 @@ module ReactOnRails
|
|
|
1033
1033
|
say "📝 Adding Shakapacker to Gemfile...", :yellow
|
|
1034
1034
|
# Use with_unbundled_env to prevent inheriting BUNDLE_GEMFILE from parent process
|
|
1035
1035
|
# See: https://github.com/shakacode/react_on_rails/issues/2287
|
|
1036
|
-
|
|
1036
|
+
# Pin the version already resolved through react_on_rails. Without an explicit
|
|
1037
|
+
# version, `bundle add --strict` can prefer an older globally installed gem and
|
|
1038
|
+
# downgrade the target app's lockfile.
|
|
1039
|
+
shakapacker_version = ReactOnRails::PackerUtils.shakapacker_version
|
|
1040
|
+
success = Bundler.with_unbundled_env do
|
|
1041
|
+
system("bundle", "add", "shakapacker", "--version", shakapacker_version, "--strict")
|
|
1042
|
+
end
|
|
1037
1043
|
return true if success
|
|
1038
1044
|
|
|
1039
1045
|
handle_shakapacker_gemfile_error
|
|
@@ -1163,6 +1169,7 @@ module ReactOnRails
|
|
|
1163
1169
|
end
|
|
1164
1170
|
|
|
1165
1171
|
def handle_shakapacker_gemfile_error
|
|
1172
|
+
shakapacker_version = ReactOnRails::PackerUtils.shakapacker_version
|
|
1166
1173
|
error = <<~MSG.strip
|
|
1167
1174
|
🚫 Failed to add Shakapacker to your Gemfile.
|
|
1168
1175
|
|
|
@@ -1172,7 +1179,7 @@ module ReactOnRails
|
|
|
1172
1179
|
• Gemfile permissions
|
|
1173
1180
|
|
|
1174
1181
|
Please try manually:
|
|
1175
|
-
bundle add shakapacker --strict
|
|
1182
|
+
bundle add shakapacker --version #{shakapacker_version} --strict
|
|
1176
1183
|
|
|
1177
1184
|
#{recovery_working_tree_note}
|
|
1178
1185
|
Then re-run: #{recovery_install_command}
|
|
@@ -163,13 +163,14 @@ module ReactOnRails
|
|
|
163
163
|
if shakapacker_in_gemfile?
|
|
164
164
|
add_success("✅ Shakapacker is declared in Gemfile")
|
|
165
165
|
else
|
|
166
|
+
shakapacker_version = ReactOnRails::PackerUtils.shakapacker_version
|
|
166
167
|
add_warning(<<~MSG.strip)
|
|
167
168
|
⚠️ Shakapacker not found in Gemfile.
|
|
168
169
|
|
|
169
170
|
While Shakapacker might be available as a dependency,
|
|
170
171
|
it's recommended to add it explicitly to your Gemfile:
|
|
171
172
|
|
|
172
|
-
bundle add shakapacker --strict
|
|
173
|
+
bundle add shakapacker --version #{shakapacker_version} --strict
|
|
173
174
|
MSG
|
|
174
175
|
end
|
|
175
176
|
end
|