react_on_rails 9.0.2 → 9.0.3

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
  SHA1:
3
- metadata.gz: 99a8b2f4c0cbe8f473d8a2a2f67e1ff446229cf0
4
- data.tar.gz: d11ab4fbb2739893e23f6a749b676577451b414e
3
+ metadata.gz: f41863c0e8b5cfbc03a81dc6d8b4adb4267b6475
4
+ data.tar.gz: c884cd7c06d50f9abc8d5c084df1912f44dd82ea
5
5
  SHA512:
6
- metadata.gz: 92169df1b919e864d136428a46770e509344f87bd752a139ef5a06b73e648486e6cae062afb351be2c5ccbea00f4e641a9f3409d42b05a84cee5f7406c224975
7
- data.tar.gz: fa4f253bb24f1bf487af56f8b3c1176b6af09aa77b544966577e4e603056c4090fe40ca63928293b3bc48dcab6ac8e4cadb1e751c3500e876f92cbf0400af5c1
6
+ metadata.gz: 17327f03ceea1acf189be53955b0f84f255aafe2809398f1027242877ceb1f7fc79b9c40ade163aaa49cb695beee4e80054774b2fed9a3a8769ee30e0f83a22d
7
+ data.tar.gz: 92a3d81eb2440990899f77eaa2d41c20b30adf2faa49b67eb6c8d8eb199848a6d26e85cc2c71c0d21c4c9da451fb5b632a03c60491dab3468924fde37fb37870
@@ -8,12 +8,20 @@ Changes since last non-beta release.
8
8
 
9
9
  *Please add entries here for your pull requests.*
10
10
 
11
- ### [9.0.1]
11
+ ### [9.0.3] - 2017-09-20
12
+ #### Improved
13
+ - Improved comments in generated Procfile.dev-server. [PR 940](https://github.com/shakacode/react_on_rails/pull/940) by [justin808](https://github.com/justin808 )
14
+
15
+ ### [9.0.2] - 2017-09-10
16
+ #### Fixed
17
+ - Improved post install doc comments for generator. [PR 933](https://github.com/shakacode/react_on_rails/pull/933) by [justin808](https://github.com/justin808 )
18
+
19
+ ### [9.0.1] - 2017-09-10
12
20
 
13
21
  #### Fixed
14
22
  - Fixes Rails 3.2 compatability issues. [PR 926](https://github.com/shakacode/react_on_rails/pull/926) by [morozovm](https://github.com/morozovm )
15
23
 
16
- ### [9.0.0]
24
+ ### [9.0.0] - 2017-09-06
17
25
  Updated React on Rails to depend on [rails/webpacker](https://github.com/rails/webpacker). [PR 908](https://github.com/shakacode/react_on_rails/pull/908) by [justin808](https://github.com/justin808).
18
26
 
19
27
 
@@ -101,17 +109,17 @@ gem "webpacker"
101
109
  - Set the `hmr` key in your `webpacker.yml` to `true`.
102
110
 
103
111
 
104
- ### [8.0.7]
112
+ ### [8.0.7] - 2017-08-16
105
113
  #### Fixed
106
114
  - Fixes generator bug by keeping blank line at top in case existing .gitignore does not end in a newline. [#916](https://github.com/shakacode/react_on_rails/pull/916) by [justin808](https://github.com/justin808).
107
115
 
108
- ### [8.0.6]
116
+ ### [8.0.6] - 2017-07-19
109
117
  #### Fixed
110
118
  - Fixes server rendering when using a CDN. Server rendering would try to fetch a file with the "asset_host". This change updates the webpacker_lite dependency to 2.1.0 which has a new helper `pack_path`. [#901](https://github.com/shakacode/react_on_rails/pull/901) by [justin808](https://github.com/justin808). Be sure to update webpacker_lite to 2.1.0.
111
119
  - The package.json file created by the generator now creates minified javascript production builds by default. This was done by adding the -p flag to webpack on the build:production script. [#895](https://github.com/shakacode/react_on_rails/pull/895) by [serodriguez68 ](https://github.com/serodriguez68)
112
120
  - Fixes GitUtils.uncommitted_changes? throwing an error when called in an environment without Git, and allows install generator to be run successfully with `--ignore-warnings` [#878](https://github.com/shakacode/react_on_rails/pull/878) by [jasonblalock](https://github.com/jasonblalock).
113
121
 
114
- ## [8.0.5]
122
+ ## [8.0.5] - 2017-07-04
115
123
  ### fixed
116
124
  - Corrects `devBuild` value for webpack production build from webpackConfigLoader. [#877](https://github.com/shakacode/react_on_rails/pull/877) by [chenqingspring](https://github.com/chenqingspring).
117
125
  - Remove contentBase deprecation warning message. [#878](https://github.com/shakacode/react_on_rails/pull/878) by [ened ](https://github.com/ened).
@@ -120,11 +128,11 @@ gem "webpacker"
120
128
 
121
129
  *Note: 8.0.4 skipped.*
122
130
 
123
- ## [8.0.3]
131
+ ## [8.0.3] - 2017-06-19
124
132
  ### Fixed
125
133
  - Ruby 2.1 issue due to `<<~` as reported in [issue #870](https://github.com/shakacode/react_on_rails/issues/870). [#867](https://github.com/shakacode/react_on_rails/pull/867) by [justin808](https://github.com/justin808)
126
134
 
127
- ## [8.0.2]
135
+ ## [8.0.2] - 2017-06-04
128
136
  ### Fixed
129
137
  - Any failure in webpack to build test files quits tests.
130
138
  - Fixed a Ruby 2.4 potential crash which could cause a crash due to pathname change in Ruby 2.4.
@@ -135,11 +143,11 @@ gem "webpacker"
135
143
  - Fixed test failures against Ruby 2.4
136
144
  - [#862](https://github.com/shakacode/react_on_rails/pull/862) by [justin808](https://github.com/justin808)
137
145
 
138
- ## [8.0.1]
146
+ ## [8.0.1] - 2017-05-30
139
147
  ### Fixed
140
148
  - Generator no longer modifies `assets.rb`. [#859](https://github.com/shakacode/react_on_rails/pull/859) by [justin808](https://github.com/justin808)
141
149
 
142
- ## [8.0.0]
150
+ ## [8.0.0] - 2017-05-29
143
151
  - Generators and full support for [webpacker_lite](https://github.com/shakacode/webpacker_lite)
144
152
  - No breaking changes to move to 8.0.0 other than the default for this setting changed to nil. If you depended on the default of this setting and are using the asset pipeline (and not webpacker_lite), then add this to your `config/initializers/react_on_rails.rb`:
145
153
  ```
@@ -723,7 +731,9 @@ Best done with Object destructing:
723
731
  ##### Fixed
724
732
  - Fix several generator related issues.
725
733
 
726
- [Unreleased]: https://github.com/shakacode/react_on_rails/compare/9.0.1...master
734
+ [Unreleased]: https://github.com/shakacode/react_on_rails/compare/9.0.3...master
735
+ [9.0.3]: https://github.com/shakacode/react_on_rails/compare/9.0.2...9.0.3
736
+ [9.0.2]: https://github.com/shakacode/react_on_rails/compare/9.0.1...9.0.2
727
737
  [9.0.1]: https://github.com/shakacode/react_on_rails/compare/9.0.0...9.0.1
728
738
  [9.0.0]: https://github.com/shakacode/react_on_rails/compare/8.0.7...9.0.0
729
739
  [8.0.7]: https://github.com/shakacode/react_on_rails/compare/8.0.6...8.0.7
@@ -131,7 +131,7 @@ After checking out the repo, making sure you have rvm and nvm setup (setup ruby
131
131
  Additionally, our RSpec tests use the poltergeist web driver. You will need to install the phantomjs node module:
132
132
 
133
133
  ```sh
134
- yarn global add phantomjs
134
+ yarn global add phantomjs-prebuilt
135
135
  ```
136
136
 
137
137
  Note this *must* be installed globally for the dummy test project rspec runner to see it properly.
data/README.md CHANGED
@@ -5,7 +5,8 @@
5
5
  [rails/webpacker](https://github.com/rails/webpacker) just shipped 3.0. This now enables me to ship version 9.0. See [PR #908](https://github.com/shakacode/react_on_rails/pull/908) for more details.
6
6
  # React on Rails v9 is based on Webpacker 3.0!
7
7
 
8
- * See the article [Introducing React on Rails v9 with Webpacker Support](https://blog.shakacode.com/introducing-react-on-rails-v9-with-webpacker-support-f2584c6c8fa4), for an overview of the integration of React on Rails with Webpacker.
8
+ * See the article [Introducing React on Rails v9 with Webpacker Support](https://blog.shakacode.com/introducing-react-on-rails-v9-with-webpacker-support-f2584c6c8fa4) for an overview of the integration of React on Rails with Webpacker.
9
+ * [Video of running the v9 installer with Webpacker v3](https://youtu.be/M0WUM_XPaII).
9
10
  * See the updated [Tutorial](https://github.com/shakacode/react_on_rails/blob/master/docs/tutorial.md).
10
11
  * See the [CHANGELOG.md](https://github.com/shakacode/react_on_rails/blob/master/CHANGELOG.md) for migration instructions.
11
12
 
@@ -35,7 +36,7 @@ First be sure to run `rails -v` and check that you are using Rails 5.1.3 or abov
35
36
 
36
37
  ### Turn on server rendering
37
38
 
38
- *Does not work with hot reloading, yet, per [Webpacker issue #732](https://github.com/rails/webpacker/issues/732)*
39
+ *The rails/wepbacker default setup does not work with hot or live reloading, yet, per [Webpacker issue #842](https://github.com/rails/webpacker/issues/842). If you want the combination of both server rendering and hot reloading during development, you will need to a custom webpack setup as shown [here](https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/client/webpack.client.rails.hot.config.js)*
39
40
 
40
41
  1. Edit `app/views/hello_world/index.html.erb` and set `prerender` to `true`.
41
42
  2. Refresh the page.
@@ -45,7 +45,7 @@ We'll use a Webpack Dev server on port 3500 to provide the assets to Rails, rath
45
45
  2. Start the rails server, setting an ENV value of REACT_ON_RAILS_ENV to HOT if we're hot loading or else setting this to blank.
46
46
  1. Configure the file Rails asset pipeline files:
47
47
  1. [app/assets/javascripts/application_static.js](https://github.com/shakacode/react_on_rails/tree/master/spec/dummy/app/assets/javascripts/application_static.js)
48
- 1. [app/assets/stylesheets/application_static.css.scss](https://github.com/shakacode/react_on_rails/tree/master/spec/dummy/app/assets/stylesheets/application_static.css.scss)
48
+ 1. [app/assets/stylesheets/application_non_webpack.scss](https://github.com/shakacode/react_on_rails/blob/master/spec/dummy/app/assets/stylesheets/application_non_webpack.scss)
49
49
  1. Copy the [client/server-rails-hot.js](https://github.com/shakacode/react_on_rails/tree/master/spec/dummy/client/server-rails-hot.js) to the your client directory.
50
50
  1. Copy the scripts in the top level and client level `package.json` files:
51
51
  1. Top Level: [package.json](https://github.com/shakacode/react_on_rails/tree/master/spec/dummy/package.json)
@@ -5,18 +5,6 @@ require_relative "generator_helper"
5
5
 
6
6
  module ReactOnRails
7
7
  module Generators
8
- # TODO9: Do we need something like this still? How to put in with
9
- FALLBACK_OPTION_FOR_NODE_MODULES = <<-TEXT
10
- // This fixes an issue with resolving 'react' when using a local symlinked version
11
- // of the node_package folder
12
- modules: [
13
- path.join(__dirname, 'node_modules'),
14
- 'node_modules',
15
- ],
16
- },
17
- plugins: [
18
- TEXT
19
-
20
8
  class DevTestsGenerator < Rails::Generators::Base
21
9
  include GeneratorHelper
22
10
  Rails::Generators.hide_namespace(namespace)
@@ -3,5 +3,10 @@ web: rails s -p 3000
3
3
 
4
4
  # Next line runs the webpack-dev-server
5
5
  # You can edit config/webpacker.yml to set HMR to true to see hot reloading.
6
- # Note,
6
+ # Note, hot and live reloading don't work with the default generator setup on top of
7
+ # the rails/webpacker Webpack config with server rendering.
8
+ # If you have server rendering enabled, modify the call to bin/webpack-dev-server line
9
+ # so you add `--inline=false` and then CSS is not inlined.
10
+ # Otherwise, you will have an error. If you want HMR and Server Rendering, see
11
+ # the example in the https://github.com/shakacode/react-webpack-rails-tutorial
7
12
  client: sh -c 'rm -rf public/packs/* || true && bundle exec rake react_on_rails:locale && bin/webpack-dev-server'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRails
4
- VERSION = "9.0.2"
4
+ VERSION = "9.0.3"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "9.0.2",
3
+ "version": "9.0.3",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
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: 9.0.2
4
+ version: 9.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-11 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow