react_on_rails 12.0.4 → 12.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +12 -2
  3. data/.eslintrc +2 -0
  4. data/.github/workflows/lint-js-and-ruby.yml +3 -3
  5. data/.github/workflows/main.yml +6 -6
  6. data/.github/workflows/package-js-tests.yml +2 -2
  7. data/.github/workflows/rspec-package-specs.yml +2 -2
  8. data/.prettierrc +0 -3
  9. data/.rubocop.yml +40 -8
  10. data/CHANGELOG.md +38 -14
  11. data/CONTRIBUTING.md +3 -2
  12. data/Gemfile.development_dependencies +6 -9
  13. data/NEWS.md +0 -1
  14. data/README.md +59 -58
  15. data/Rakefile +1 -1
  16. data/docs/{basics → additional-details}/generator-details.md +1 -6
  17. data/docs/{outdated → additional-details}/manual-installation-overview.md +6 -6
  18. data/docs/{basics → additional-details}/migrating-from-react-rails.md +0 -0
  19. data/docs/{additional-reading → additional-details}/recommended-project-structure.md +0 -0
  20. data/docs/{additional-reading → additional-details}/updating-dependencies.md +0 -0
  21. data/docs/additional-details/upgrade-webpacker-v3-to-v4.md +10 -0
  22. data/docs/api/javascript-api.md +2 -2
  23. data/docs/api/redux-store-api.md +3 -3
  24. data/docs/api/view-helpers-api.md +7 -8
  25. data/docs/basics/client-vs-server-rendering.md +3 -3
  26. data/docs/basics/configuration.md +45 -25
  27. data/docs/basics/deployment.md +2 -2
  28. data/docs/{outdated → basics}/how-react-on-rails-works.md +8 -9
  29. data/docs/basics/installation-into-an-existing-rails-app.md +13 -6
  30. data/docs/basics/react-server-rendering.md +3 -3
  31. data/docs/basics/rspec-configuration.md +10 -10
  32. data/docs/{tutorial.md → basics/tutorial.md} +22 -30
  33. data/docs/basics/upgrading-react-on-rails.md +7 -7
  34. data/docs/basics/webpack-configuration.md +4 -6
  35. data/docs/contributor-info/linters.md +5 -6
  36. data/docs/contributor-info/pull-requests.md +2 -4
  37. data/docs/contributor-info/releasing.md +1 -1
  38. data/docs/{additional-reading → deployment}/elastic-beanstalk.md +0 -0
  39. data/docs/{basics → deployment}/heroku-deployment.md +0 -0
  40. data/docs/home.md +382 -0
  41. data/docs/{additional-reading → javascript}/angular-js-integration-migration.md +0 -0
  42. data/docs/{additional-reading → javascript}/asset-pipeline.md +0 -0
  43. data/docs/{additional-reading → javascript}/capistrano-deployment.md +0 -0
  44. data/docs/{outdated → javascript}/code-splitting.md +3 -3
  45. data/docs/{additional-reading → javascript}/converting-from-custom-webpack-config-to-rails-webpacker-config.md +3 -3
  46. data/docs/{additional-reading → javascript}/credits.md +0 -0
  47. data/docs/{additional-reading → javascript}/foreman-issues.md +0 -0
  48. data/docs/{additional-reading → javascript}/images.md +5 -6
  49. data/docs/{additional-reading → javascript}/node-dependencies-and-npm.md +0 -0
  50. data/docs/{additional-reading → javascript}/react-and-redux.md +0 -0
  51. data/docs/{additional-reading → javascript}/react-helmet.md +0 -0
  52. data/docs/{additional-reading → javascript}/react-router.md +0 -0
  53. data/docs/{additional-reading → javascript}/server-rendering-tips.md +0 -0
  54. data/docs/{additional-reading → javascript}/troubleshooting-when-using-webpacker.md +0 -0
  55. data/docs/{additional-reading → javascript}/webpack-v1-notes.md +0 -0
  56. data/docs/{additional-reading → javascript}/webpack.md +0 -0
  57. data/docs/{articles.md → misc/articles.md} +1 -1
  58. data/docs/misc/doctrine.md +5 -5
  59. data/docs/{coding-style → misc}/style.md +0 -0
  60. data/docs/{additional-reading → misc}/tips.md +0 -0
  61. data/docs/outdated/deferred-rendering.md +39 -0
  62. data/docs/outdated/rails-assets-relative-paths.md +3 -3
  63. data/docs/outdated/rails-assets.md +8 -8
  64. data/docs/outdated/rails3.md +2 -2
  65. data/docs/rails-webpacker-react-integration-options.md +182 -0
  66. data/docs/{additional-reading → rails}/convert-rails-5-api-only-app.md +1 -1
  67. data/docs/{additional-reading → rails}/rails-engine-integration.md +0 -0
  68. data/docs/{additional-reading → rails}/rails_view_rendering_from_inline_javascript.md +0 -0
  69. data/docs/{additional-reading → rails}/turbolinks.md +13 -1
  70. data/docs/testimonials/testimonials.md +6 -6
  71. data/lib/generators/react_on_rails/base_generator.rb +1 -1
  72. data/lib/generators/react_on_rails/dev_tests_generator.rb +1 -1
  73. data/lib/generators/react_on_rails/templates/dev_tests/spec/rails_helper.rb +4 -1
  74. data/lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb +1 -1
  75. data/lib/generators/react_on_rails/templates/dev_tests/spec/{features → system}/hello_world_spec.rb +2 -2
  76. data/lib/react_on_rails/helper.rb +23 -5
  77. data/lib/react_on_rails/locales/base.rb +13 -10
  78. data/lib/react_on_rails/prerender_error.rb +1 -1
  79. data/lib/react_on_rails/react_component/render_options.rb +16 -7
  80. data/lib/react_on_rails/server_rendering_pool/ruby_embedded_java_script.rb +2 -0
  81. data/lib/react_on_rails/utils.rb +16 -2
  82. data/lib/react_on_rails/version.rb +1 -1
  83. data/lib/react_on_rails/webpacker_utils.rb +5 -1
  84. data/lib/tasks/assets.rake +14 -5
  85. data/package.json +24 -29
  86. data/rakelib/release.rake +22 -6
  87. data/rakelib/run_rspec.rake +1 -1
  88. data/rakelib/task_helpers.rb +15 -2
  89. data/yarn.lock +2549 -5169
  90. metadata +39 -37
  91. data/.release-it.json +0 -3
  92. data/docs/additional-reading/upgrade-webpacker-v3-to-v4.md +0 -10
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: 12.0.4
4
+ version: 12.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-14 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -144,7 +144,6 @@ files:
144
144
  - ".npmignore"
145
145
  - ".prettierignore"
146
146
  - ".prettierrc"
147
- - ".release-it.json"
148
147
  - ".rspec"
149
148
  - ".rubocop.yml"
150
149
  - ".scss-lint.yml"
@@ -165,67 +164,70 @@ files:
165
164
  - app/helpers/react_on_rails_helper.rb
166
165
  - book.json
167
166
  - docker-compose.yml
168
- - docs/additional-reading/angular-js-integration-migration.md
169
- - docs/additional-reading/asset-pipeline.md
170
- - docs/additional-reading/capistrano-deployment.md
171
- - docs/additional-reading/convert-rails-5-api-only-app.md
172
- - docs/additional-reading/converting-from-custom-webpack-config-to-rails-webpacker-config.md
173
- - docs/additional-reading/credits.md
174
- - docs/additional-reading/elastic-beanstalk.md
175
- - docs/additional-reading/foreman-issues.md
176
- - docs/additional-reading/images.md
177
- - docs/additional-reading/node-dependencies-and-npm.md
178
- - docs/additional-reading/rails-engine-integration.md
179
- - docs/additional-reading/rails_view_rendering_from_inline_javascript.md
180
- - docs/additional-reading/react-and-redux.md
181
- - docs/additional-reading/react-helmet.md
182
- - docs/additional-reading/react-router.md
183
- - docs/additional-reading/recommended-project-structure.md
184
- - docs/additional-reading/server-rendering-tips.md
185
- - docs/additional-reading/tips.md
186
- - docs/additional-reading/troubleshooting-when-using-webpacker.md
187
- - docs/additional-reading/turbolinks.md
188
- - docs/additional-reading/updating-dependencies.md
189
- - docs/additional-reading/upgrade-webpacker-v3-to-v4.md
190
- - docs/additional-reading/webpack-v1-notes.md
191
- - docs/additional-reading/webpack.md
167
+ - docs/additional-details/generator-details.md
168
+ - docs/additional-details/manual-installation-overview.md
169
+ - docs/additional-details/migrating-from-react-rails.md
170
+ - docs/additional-details/recommended-project-structure.md
171
+ - docs/additional-details/updating-dependencies.md
172
+ - docs/additional-details/upgrade-webpacker-v3-to-v4.md
192
173
  - docs/api/javascript-api.md
193
174
  - docs/api/redux-store-api.md
194
175
  - docs/api/view-helpers-api.md
195
- - docs/articles.md
196
176
  - docs/basics/client-vs-server-rendering.md
197
177
  - docs/basics/configuration.md
198
178
  - docs/basics/deployment.md
199
- - docs/basics/generator-details.md
200
- - docs/basics/heroku-deployment.md
201
179
  - docs/basics/hmr-and-hot-reloading-with-the-webpack-dev-server.md
180
+ - docs/basics/how-react-on-rails-works.md
202
181
  - docs/basics/i18n.md
203
182
  - docs/basics/installation-into-an-existing-rails-app.md
204
- - docs/basics/migrating-from-react-rails.md
205
183
  - docs/basics/minitest-configuration.md
206
184
  - docs/basics/react-server-rendering.md
207
185
  - docs/basics/render-functions-and-railscontext.md
208
186
  - docs/basics/rspec-configuration.md
187
+ - docs/basics/tutorial.md
209
188
  - docs/basics/upgrading-react-on-rails.md
210
189
  - docs/basics/webpack-configuration.md
211
- - docs/coding-style/style.md
212
190
  - docs/contributor-info/errors-with-hooks.md
213
191
  - docs/contributor-info/generator-testing.md
214
192
  - docs/contributor-info/linters.md
215
193
  - docs/contributor-info/pull-requests.md
216
194
  - docs/contributor-info/releasing.md
195
+ - docs/deployment/elastic-beanstalk.md
196
+ - docs/deployment/heroku-deployment.md
197
+ - docs/home.md
198
+ - docs/javascript/angular-js-integration-migration.md
199
+ - docs/javascript/asset-pipeline.md
200
+ - docs/javascript/capistrano-deployment.md
201
+ - docs/javascript/code-splitting.md
202
+ - docs/javascript/converting-from-custom-webpack-config-to-rails-webpacker-config.md
203
+ - docs/javascript/credits.md
204
+ - docs/javascript/foreman-issues.md
205
+ - docs/javascript/images.md
206
+ - docs/javascript/node-dependencies-and-npm.md
207
+ - docs/javascript/react-and-redux.md
208
+ - docs/javascript/react-helmet.md
209
+ - docs/javascript/react-router.md
210
+ - docs/javascript/server-rendering-tips.md
211
+ - docs/javascript/troubleshooting-when-using-webpacker.md
212
+ - docs/javascript/webpack-v1-notes.md
213
+ - docs/javascript/webpack.md
214
+ - docs/misc/articles.md
217
215
  - docs/misc/code_of_conduct.md
218
216
  - docs/misc/doctrine.md
219
- - docs/outdated/code-splitting.md
220
- - docs/outdated/how-react-on-rails-works.md
221
- - docs/outdated/manual-installation-overview.md
217
+ - docs/misc/style.md
218
+ - docs/misc/tips.md
219
+ - docs/outdated/deferred-rendering.md
222
220
  - docs/outdated/rails-assets-relative-paths.md
223
221
  - docs/outdated/rails-assets.md
224
222
  - docs/outdated/rails3.md
223
+ - docs/rails-webpacker-react-integration-options.md
224
+ - docs/rails/convert-rails-5-api-only-app.md
225
+ - docs/rails/rails-engine-integration.md
226
+ - docs/rails/rails_view_rendering_from_inline_javascript.md
227
+ - docs/rails/turbolinks.md
225
228
  - docs/testimonials/hvmn.md
226
229
  - docs/testimonials/resortpass.md
227
230
  - docs/testimonials/testimonials.md
228
- - docs/tutorial.md
229
231
  - jest.config.js
230
232
  - lib/generators/USAGE
231
233
  - lib/generators/react_on_rails/base_generator.rb
@@ -246,10 +248,10 @@ files:
246
248
  - lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
247
249
  - lib/generators/react_on_rails/templates/dev_tests/.eslintrc
248
250
  - lib/generators/react_on_rails/templates/dev_tests/.rspec
249
- - lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
250
251
  - lib/generators/react_on_rails/templates/dev_tests/spec/rails_helper.rb
251
252
  - lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
252
253
  - lib/generators/react_on_rails/templates/dev_tests/spec/spec_helper.rb
254
+ - lib/generators/react_on_rails/templates/dev_tests/spec/system/hello_world_spec.rb
253
255
  - lib/generators/react_on_rails/templates/redux/base/app/javascript/bundles/HelloWorld/actions/helloWorldActionCreators.js
254
256
  - lib/generators/react_on_rails/templates/redux/base/app/javascript/bundles/HelloWorld/components/HelloWorld.jsx
255
257
  - lib/generators/react_on_rails/templates/redux/base/app/javascript/bundles/HelloWorld/constants/helloWorldConstants.js
data/.release-it.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "requireCleanWorkingDir": false
3
- }
@@ -1,10 +0,0 @@
1
- # Upgrading rails/webpacker v3.5 to v4
2
-
3
- The following steps can be followed to update a Webpacker v3.5 app to v4.
4
-
5
- 1. Update the gem `webpacker` and the package `@rails/webpacker`
6
- 1. Merge changes from the new default [.babelrc](../lib/install/config/.babelrc) to your `/.babelrc`. If you are using React, you need to add `"@babel/preset-react"`, to the list of `presets`.
7
- 1. Copy the file [.browserslistrc](../lib/install/config/.browserslistrc) to `/`.
8
- 1. Merge any differences between [config/webpacker.yml](../lib/install/config/webpacker.yml) and your `/config/webpacker.yml`.
9
-
10
- Here is an [example commit of these changes](https://github.com/shakacode/react_on_rails-tutorial-v11/pull/1/files).