react_on_rails 14.0.3 → 14.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 990382215a33db46c9f5b8bdf0e5db38fba4e6233da6ff1a5f3840428ac9e092
|
4
|
+
data.tar.gz: 21e052cfea0a8121d8c6ebd4fd3f4688ced23ef7b0b40df653889f6388f95834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c37af672c59bf60b452af1684a25fdc75caf8a48a115a84179816a16a9933120628b4e516dd593f60550d6ecd3df8a4ee8e5ba4a670c2bd5cc9d43dfeea870b
|
7
|
+
data.tar.gz: ddda7ad407c195b32d15fcbad434e34b9fa0e5003666ddded2953c369a0081f1f14a9fd3b03bf8ba5678b97ac09402a1fdfe123815a0c4a895caabeb518c548b
|
data/CHANGELOG.md
CHANGED
@@ -18,6 +18,14 @@ Please follow the recommendations outlined at [keepachangelog.com](http://keepac
|
|
18
18
|
### [Unreleased]
|
19
19
|
Changes since the last non-beta release.
|
20
20
|
|
21
|
+
|
22
|
+
#### Improved
|
23
|
+
- Improved dependency management by integrating package_json. [PR 1639](https://github.com/shakacode/react_on_rails/pull/1639) by [vaukalak](https://github.com/vaukalak).
|
24
|
+
|
25
|
+
#### Changed
|
26
|
+
- Update outdated GitHub Actions to use Node.js 20.0 versions instead [PR 1623](https://github.com/shakacode/react_on_rails/pull/1623) by [adriangohjw](https://github.com/adriangohjw).
|
27
|
+
|
28
|
+
|
21
29
|
### [14.0.3] - 2024-06-28
|
22
30
|
|
23
31
|
#### Fixed
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
react_on_rails (14.0.
|
4
|
+
react_on_rails (14.0.3)
|
5
5
|
addressable
|
6
6
|
connection_pool
|
7
7
|
execjs (~> 2.5)
|
@@ -93,7 +93,7 @@ GEM
|
|
93
93
|
bigdecimal (3.1.8)
|
94
94
|
bootsnap (1.18.3)
|
95
95
|
msgpack (~> 1.2)
|
96
|
-
builder (3.
|
96
|
+
builder (3.3.0)
|
97
97
|
byebug (11.1.3)
|
98
98
|
capybara (3.40.0)
|
99
99
|
addressable
|
@@ -109,7 +109,7 @@ GEM
|
|
109
109
|
launchy
|
110
110
|
childprocess (5.0.0)
|
111
111
|
coderay (1.1.3)
|
112
|
-
concurrent-ruby (1.
|
112
|
+
concurrent-ruby (1.3.3)
|
113
113
|
connection_pool (2.4.1)
|
114
114
|
coveralls (0.8.23)
|
115
115
|
json (>= 1.8, < 3)
|
@@ -127,7 +127,7 @@ GEM
|
|
127
127
|
drb (2.2.1)
|
128
128
|
equivalent-xml (0.6.0)
|
129
129
|
nokogiri (>= 1.4.3)
|
130
|
-
erubi (1.
|
130
|
+
erubi (1.13.0)
|
131
131
|
execjs (2.9.1)
|
132
132
|
ffi (1.16.3)
|
133
133
|
gem-release (2.2.2)
|
@@ -140,7 +140,7 @@ GEM
|
|
140
140
|
concurrent-ruby (~> 1.0)
|
141
141
|
interception (0.5)
|
142
142
|
io-console (0.7.2)
|
143
|
-
irb (1.13.
|
143
|
+
irb (1.13.2)
|
144
144
|
rdoc (>= 4.0.0)
|
145
145
|
reline (>= 0.4.2)
|
146
146
|
jbuilder (2.12.0)
|
@@ -170,8 +170,8 @@ GEM
|
|
170
170
|
matrix (0.4.2)
|
171
171
|
method_source (1.1.0)
|
172
172
|
mini_mime (1.1.5)
|
173
|
-
mini_portile2 (2.8.
|
174
|
-
minitest (5.
|
173
|
+
mini_portile2 (2.8.7)
|
174
|
+
minitest (5.24.1)
|
175
175
|
msgpack (1.7.2)
|
176
176
|
mutex_m (0.2.0)
|
177
177
|
net-imap (0.4.11)
|
@@ -184,7 +184,7 @@ GEM
|
|
184
184
|
net-smtp (0.5.0)
|
185
185
|
net-protocol
|
186
186
|
nio4r (2.7.3)
|
187
|
-
nokogiri (1.16.
|
187
|
+
nokogiri (1.16.6)
|
188
188
|
mini_portile2 (~> 2.8.2)
|
189
189
|
racc (~> 1.4)
|
190
190
|
package_json (0.1.0)
|
@@ -211,8 +211,8 @@ GEM
|
|
211
211
|
public_suffix (5.0.5)
|
212
212
|
puma (6.4.2)
|
213
213
|
nio4r (~> 2.0)
|
214
|
-
racc (1.
|
215
|
-
rack (3.
|
214
|
+
racc (1.8.0)
|
215
|
+
rack (3.1.4)
|
216
216
|
rack-proxy (0.7.7)
|
217
217
|
rack
|
218
218
|
rack-session (2.0.0)
|
@@ -256,22 +256,22 @@ GEM
|
|
256
256
|
rb-fsevent (0.11.2)
|
257
257
|
rb-inotify (0.10.1)
|
258
258
|
ffi (~> 1.0)
|
259
|
-
rdoc (6.
|
259
|
+
rdoc (6.7.0)
|
260
260
|
psych (>= 4.0.0)
|
261
261
|
regexp_parser (2.9.2)
|
262
|
-
reline (0.5.
|
262
|
+
reline (0.5.9)
|
263
263
|
io-console (~> 0.5)
|
264
264
|
rexml (3.2.7)
|
265
265
|
strscan (>= 3.0.9)
|
266
266
|
rspec-core (3.13.0)
|
267
267
|
rspec-support (~> 3.13.0)
|
268
|
-
rspec-expectations (3.13.
|
268
|
+
rspec-expectations (3.13.1)
|
269
269
|
diff-lcs (>= 1.2.0, < 2.0)
|
270
270
|
rspec-support (~> 3.13.0)
|
271
271
|
rspec-mocks (3.13.1)
|
272
272
|
diff-lcs (>= 1.2.0, < 2.0)
|
273
273
|
rspec-support (~> 3.13.0)
|
274
|
-
rspec-rails (6.1.
|
274
|
+
rspec-rails (6.1.3)
|
275
275
|
actionpack (>= 6.1)
|
276
276
|
activesupport (>= 6.1)
|
277
277
|
railties (>= 6.1)
|
@@ -358,7 +358,7 @@ GEM
|
|
358
358
|
sprockets (>= 3.0.0)
|
359
359
|
sqlite3 (1.7.3)
|
360
360
|
mini_portile2 (~> 2.8.0)
|
361
|
-
stringio (3.1.
|
361
|
+
stringio (3.1.1)
|
362
362
|
strscan (3.1.0)
|
363
363
|
sync (0.5.0)
|
364
364
|
term-ansicolor (1.8.0)
|
@@ -389,7 +389,7 @@ GEM
|
|
389
389
|
xpath (3.2.0)
|
390
390
|
nokogiri (~> 1.8)
|
391
391
|
yard (0.9.36)
|
392
|
-
zeitwerk (2.6.
|
392
|
+
zeitwerk (2.6.16)
|
393
393
|
|
394
394
|
PLATFORMS
|
395
395
|
ruby
|
@@ -408,6 +408,7 @@ DEPENDENCIES
|
|
408
408
|
jquery-rails
|
409
409
|
launchy
|
410
410
|
listen
|
411
|
+
package_json
|
411
412
|
pry
|
412
413
|
pry-byebug
|
413
414
|
pry-doc
|
@@ -76,26 +76,40 @@ module ReactOnRails
|
|
76
76
|
run "bundle"
|
77
77
|
end
|
78
78
|
|
79
|
-
def
|
79
|
+
def add_js_dependencies
|
80
80
|
major_minor_patch_only = /\A\d+\.\d+\.\d+\z/
|
81
81
|
if ReactOnRails::VERSION.match?(major_minor_patch_only)
|
82
|
-
|
82
|
+
package_json.manager.add(["react-on-rails@#{ReactOnRails::VERSION}"])
|
83
83
|
else
|
84
84
|
# otherwise add latest
|
85
85
|
puts "Adding the latest react-on-rails NPM module. Double check this is correct in package.json"
|
86
|
-
|
86
|
+
package_json.manager.add(["react-on-rails"])
|
87
87
|
end
|
88
88
|
|
89
89
|
puts "Adding React dependencies"
|
90
|
-
|
91
|
-
|
90
|
+
package_json.manager.add([
|
91
|
+
"react",
|
92
|
+
"react-dom",
|
93
|
+
"@babel/preset-react",
|
94
|
+
"prop-types",
|
95
|
+
"babel-plugin-transform-react-remove-prop-types",
|
96
|
+
"babel-plugin-macros"
|
97
|
+
])
|
92
98
|
|
93
99
|
puts "Adding CSS handlers"
|
94
100
|
|
95
|
-
|
101
|
+
package_json.manager.add(%w[
|
102
|
+
css-loader
|
103
|
+
css-minimizer-webpack-plugin
|
104
|
+
mini-css-extract-plugin
|
105
|
+
style-loader
|
106
|
+
])
|
96
107
|
|
97
108
|
puts "Adding dev dependencies"
|
98
|
-
|
109
|
+
package_json.manager.add([
|
110
|
+
"@pmmmwh/react-refresh-webpack-plugin",
|
111
|
+
"react-refresh"
|
112
|
+
], type: :dev)
|
99
113
|
end
|
100
114
|
|
101
115
|
def append_to_spec_rails_helper
|
@@ -1,8 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "package_json"
|
3
4
|
require "rainbow"
|
4
5
|
|
5
6
|
module GeneratorHelper
|
7
|
+
def package_json
|
8
|
+
@package_json ||= PackageJson.read
|
9
|
+
end
|
10
|
+
|
6
11
|
# Takes a relative path from the destination root, such as `.gitignore` or `app/assets/javascripts/application.js`
|
7
12
|
def dest_file_exists?(file)
|
8
13
|
dest_file = File.join(destination_root, file)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.0.
|
4
|
+
version: 14.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Gordon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|