react_on_rails 3.0.1 → 3.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad60892924ab509eee4759d2af6bb965fd850913
4
- data.tar.gz: 9e4291233b0d48e132445ca6c9580770905d8f3f
3
+ metadata.gz: e6da7d5c8a9a1645664f3c27bde9479a0959ed98
4
+ data.tar.gz: 40a0908a2a3eaef521de57be5cc161b971d101bf
5
5
  SHA512:
6
- metadata.gz: 1b4c56b9555d6bb92dd24423dd088d2d791b70e0f39b5925733002a60a0c22cf9768dd80b0c37dba53c314a3861dd7aa6201ba8e933a684ce9eaba3ef5976bca
7
- data.tar.gz: 7689587b7328487965e133c9184913e192936d71d8b3977b9496eab99951d1ec62443169500e793fb4c8cca223981d07e541f3f7234823802c110d3c3b364f63
6
+ metadata.gz: fadae2a9c789beb71a886d00febe744d4ced358b9224f5a3537ca71d51ea6c3db6aaa9802d547932374813b59949dd41aa757bfbafe9ae3cb2672474a3ea3ac4
7
+ data.tar.gz: 63b7ba24a96118e4121755fbb805eaf0af67daf3c6460c60cfae7ee4442da68019eb47343edcad384f112e1d6b7efb9fc8d34883989f70a5df9364b3670fba2d
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. Items under
4
4
  Contributors: please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version.
5
5
  ## [Unreleased]
6
6
 
7
+ ## [3.0.2] - 2016-02-15
8
+ ##### Fixed
9
+ - Fixed missing information in the helpful message after running the base install generator regarding how to run the node server with hot reloading support.
10
+
7
11
  ## [3.0.1] - 2016-02-15
8
12
  ##### Fixed
9
13
  - Fixed several jscs linter issues.
@@ -169,7 +173,8 @@ Best done with Object destructing:
169
173
 
170
174
  ##### Fixed
171
175
  - Fix several generator related issues.
172
- [Unreleased]: https://github.com/shakacode/react_on_rails/compare/3.0.1...master
176
+ [Unreleased]: https://github.com/shakacode/react_on_rails/compare/3.0.2...master
177
+ [3.0.2]: https://github.com/shakacode/react_on_rails/compare/3.0.1...3.0.2
173
178
  [3.0.1]: https://github.com/shakacode/react_on_rails/compare/3.0.0...3.0.1
174
179
  [3.0.0]: https://github.com/shakacode/react_on_rails/compare/2.3.0...3.0.0
175
180
  [2.3.0]: https://github.com/shakacode/react_on_rails/compare/2.2.0...2.3.0
data/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  2. Provides a convenient helper to ensure that JavaScript assets are compiled before running tests.
16
16
  * React on Rails does not yet have *generator* support for building new apps that use CSS modules and hot reloading via the Rails server as is demonstrated in the [shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/). *We do support this, but we don't generate the code.* If you did generate a fresh app from react_on_rails and want to move to CSS Modules, then see [PR 175: Babel 6 / CSS Modules / Rails hot reloading](https://github.com/shakacode/react-webpack-rails-tutorial/pull/175). Note, while there are probably fixes after this PR was accepted, this has the majority of the changes. See [the tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/#news) for more information. Ping us if you want to help!
17
17
  * [ShakaCode](http://www.shakacode.com) is doing Skype plus Slack/Github based coaching for "React on Rails". [Click here](http://www.shakacode.com/work/index.html) for more information.
18
- * Be sure to read our new article [The React on Rails Doctrine](http://www.shakacode.com/2016/01/26/the-react-on-rails-doctrine.html).
18
+ * Be sure to read our new article [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724).
19
19
 
20
20
  # React on Rails
21
21
 
@@ -25,7 +25,7 @@ React on Rails integrates Facebook's [React](https://github.com/facebook/react)
25
25
 
26
26
  Be sure to see:
27
27
 
28
- * [The React on Rails Doctrine](http://www.shakacode.com/2016/01/26/the-react-on-rails-doctrine.html)
28
+ * [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724)
29
29
  * [React Webpack Rails Tutorial Code](https://github.com/shakacode/react-webpack-rails-tutorial) along with the live example at [www.reactrails.com](http://www.reactrails.com).
30
30
 
31
31
  ## Including your React Component in your Rails Views
@@ -423,7 +423,7 @@ Open your browser to [localhost:4000](http://localhost:4000). Whenever you make
423
423
  Note that **React-related error messages are typically significantly more helpful when encountered in the dev server** than the Rails server as they do not include noise added by the React on Rails gem.
424
424
 
425
425
  ### Adding Additional Routes for the Dev Server
426
- As you add more routes to your front-end application, you will need to make the corresponding API for the dev server in `client/server.js`. See our example `server.js` from our [tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/client/server.js).
426
+ As you add more routes to your front-end application, you will need to make the corresponding API for the dev server in `client/server.js`. See our example `server.js` from our [tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/client%2Fserver-express.js).
427
427
 
428
428
  ## Migrate From react-rails
429
429
  If you are using [react-rails](https://github.com/reactjs/react-rails) in your project, it is pretty simple to migrate to [react_on_rails](https://github.com/shakacode/react_on_rails).
@@ -443,9 +443,8 @@ If you are using [react-rails](https://github.com/reactjs/react-rails) in your p
443
443
  Note: If you have components from react-rails you want to use, then you will need to port them into react_on_rails which uses webpack instead of the asset pipeline.
444
444
 
445
445
  ## Additional Reading
446
- + [The React on Rails Doctrine](http://www.shakacode.com/2016/01/27/the-react-on-rails-doctrine.html)
446
+ + [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724)
447
447
  + [Babel](docs/additional_reading/babel.md)
448
- + [Generated Client Code](docs/additional_reading/generated_client_code.md)
449
448
  + [Heroku Deployment](docs/additional_reading/heroku_deployment.md)
450
449
  + [Manual Installation](docs/additional_reading/manual_installation.md)
451
450
  + [Node Dependencies and NPM](docs/additional_reading/node_dependencies_and_npm.md)
@@ -471,7 +470,7 @@ Note: If you have components from react-rails you want to use, then you will nee
471
470
  ```
472
471
 
473
472
  ## Contributing
474
- Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to our version of the [Contributor Covenant](contributor-covenant.org) code of conduct (see [CODE OF CONDUCT](docs/code_of_conduct.md)).
473
+ Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to our version of the [Contributor Covenant Code of Conduct](docs/code_of_conduct.md)).
475
474
 
476
475
  See [Contributing](docs/contributing.md) to get started.
477
476
 
@@ -207,6 +207,12 @@ module ReactOnRails
207
207
  npm run rails-server
208
208
 
209
209
  - Visit http://localhost:3000/hello_world and see your React On Rails app running!
210
+
211
+ - Run the npm express-server command to load the node server with hot reloading support.
212
+
213
+ npm run express-server
214
+
215
+ - Visit http://localhost:4000 and see your React On Rails app running using the Webpack Dev server.
210
216
  MSG
211
217
  GeneratorMessages.add_info(message)
212
218
  end
@@ -45,17 +45,6 @@ module ReactOnRails
45
45
  location = "client/app/bundles/HelloWorld/startup"
46
46
  template("redux/base/#{location}/HelloWorldAppClient.jsx.tt", "#{location}/#{filename}")
47
47
  end
48
-
49
- def print_helpful_message
50
- message = <<-MSG
51
- - Run the npm express-server command to load the node server with hot reloading support.
52
-
53
- npm run express-server
54
-
55
- - Visit http://localhost:4000 and see your React On Rails app running using the Webpack Dev server.
56
- MSG
57
- GeneratorMessages.add_info(message)
58
- end
59
48
  end
60
49
  end
61
50
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ReactOnRails
3
- VERSION = "3.0.1".freeze
3
+ VERSION = "3.0.2".freeze
4
4
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon