react_on_rails 3.0.3 → 3.0.4
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/CHANGELOG.md +6 -1
- data/PROJECTS.md +15 -0
- data/README.md +9 -3
- data/lib/generators/react_on_rails/base_generator.rb +2 -2
- data/lib/generators/react_on_rails/templates/base/base/config/initializers/{react_on_rails.rb → react_on_rails.rb.tt} +5 -0
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b38c1032bf8c85fab2c666c4d5b49b240be2ed9
|
|
4
|
+
data.tar.gz: 30cd4d43e411c0b1a2752ef3512ac894d8c53b94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77a24316f7ad628e83afe09215be1f72c0af832dd578e6d4cc25326bd546a3fe331614c187db0cac413aadab30cba97cb822d608d4e07db214949ed5a8ca48f0
|
|
7
|
+
data.tar.gz: 9adfa53bf307ad7a24d3bd7072ee9073cf145d1de027807d4e438fe52e94e3fbda2e5ba300fd9fe2257d7ed13fa205e8617cf48f75649bf8142ce906326c5425
|
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.4] - 2016-02-25
|
|
8
|
+
- Updated CHANGELOG.md to include contributors for each PR.
|
|
9
|
+
- Fix config.server_bundle_js file value in generator to match generator setting of server rendering. See [#295](https://github.com/shakacode/react_on_rails/pull/282) by [aaronvb](https://github.com/aaronvb).
|
|
10
|
+
|
|
7
11
|
## [3.0.3] - 2016-02-21
|
|
8
12
|
##### Fixed
|
|
9
13
|
- Cleaned up code in `spec/dummy` to latest React and Redux APIs. See [#282](https://github.com/shakacode/react_on_rails/pull/282).
|
|
@@ -179,7 +183,8 @@ Best done with Object destructing:
|
|
|
179
183
|
|
|
180
184
|
##### Fixed
|
|
181
185
|
- Fix several generator related issues.
|
|
182
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/3.0.
|
|
186
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/3.0.4...master
|
|
187
|
+
[3.0.4]: https://github.com/shakacode/react_on_rails/compare/3.0.3...3.0.4
|
|
183
188
|
[3.0.3]: https://github.com/shakacode/react_on_rails/compare/3.0.2...3.0.3
|
|
184
189
|
[3.0.2]: https://github.com/shakacode/react_on_rails/compare/3.0.1...3.0.2
|
|
185
190
|
[3.0.1]: https://github.com/shakacode/react_on_rails/compare/3.0.0...3.0.1
|
data/PROJECTS.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#Projects using React on Rails
|
|
2
|
+
|
|
3
|
+
*Please add your project to this list.*
|
|
4
|
+
|
|
5
|
+
## Commercial Products
|
|
6
|
+
* **[Blink Inc](https://www.blinkinc.com)**: Website and more built by [ShakaCode](http://www.shakacode.com).
|
|
7
|
+
* **[GuavaPass](https://guavapass.com/)**: Coaching client of [ShakaCode](http://www.shakacode.com) and React on Rails fan!
|
|
8
|
+
* **Friends and Guests**, the signature product of [ShakaCode](http://www.shakacode.com), which is a "Social Network Connecting Hosts and Guests". *Coming soon!*
|
|
9
|
+
* **[Madrone Analytics](http://madroneco.com/)**: The original client of [ShakaCode](http://www.shakacode.com) that led to the development of React on Rails, as described in [Fast Rich Client Rails Development With Webpack and the ES6 Transpiler](http://www.railsonmaui.com/blog/2014/10/03/integrating-webpack-and-the-es6-transpiler-into-an-existing-rails-project/).
|
|
10
|
+
|
|
11
|
+
--------
|
|
12
|
+
|
|
13
|
+
## Demos and Tutorials
|
|
14
|
+
* [reactrails.com](http://www.reactrails.com), source code [github.com/shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/)
|
|
15
|
+
* [Relay Rails Blog](https://github.com/gauravtiwari/relay-rails-blog): Tutorial to learn Relay with Rails.
|
data/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
# NEWS
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* Just added a [Projects page](PROJECTS.md). Please submit a PR with your project!
|
|
6
|
+
* 3.0.4 shipped on Thursday, 2/25/2016. Please see the [Changelog](CHANGELOG.md) for details, and let us know if you see any issues! [Migration steps from 1.x](https://github.com/shakacode/react_on_rails/blob/master/CHANGELOG.md#migration-steps-v1-to-v2). [Migration steps from 2.x](https://github.com/shakacode/react_on_rails/blob/master/CHANGELOG.md#migration-steps-v2-to-v3).
|
|
6
7
|
* [RubyGems](https://rubygems.org/gems/react_on_rails/versions/3.0.0.rc.2), `gem "react_on_rails", "~> 3.0.0-rc.2"`
|
|
7
8
|
* [NPM](https://www.npmjs.com/package/react-on-rails), `npm i --save react-on-rails@3.0.0-rc.2`
|
|
8
9
|
* 3.0.0 Highlights:
|
|
@@ -27,6 +28,7 @@ Be sure to see:
|
|
|
27
28
|
|
|
28
29
|
* [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724)
|
|
29
30
|
* [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).
|
|
31
|
+
* [Projects](PROJECTS.md) using React on Rails. Please submit yours!
|
|
30
32
|
|
|
31
33
|
## Including your React Component in your Rails Views
|
|
32
34
|
Please see [Getting Started](#getting-started) for how to set up your Rails project for React on Rails to understand how `react_on_rails` can see your ReactComponents.
|
|
@@ -144,7 +146,7 @@ We're definitely not doing that. With react_on_rails, webpack is mainly generati
|
|
|
144
146
|
rails generate react_on_rails:install
|
|
145
147
|
```
|
|
146
148
|
|
|
147
|
-
3. NPM install. Make sure you are on a recent version of node
|
|
149
|
+
3. NPM install. Make sure you are on a recent version of node. Please use at least Node v5.
|
|
148
150
|
|
|
149
151
|
```bash
|
|
150
152
|
npm install
|
|
@@ -459,6 +461,7 @@ Note: If you have components from react-rails you want to use, then you will nee
|
|
|
459
461
|
+ [Webpack Configuration](docs/additional_reading/webpack.md)
|
|
460
462
|
+ [Webpack Cookbook](https://christianalfoni.github.io/react-webpack-cookbook/index.html)
|
|
461
463
|
+ [Changelog](CHANGELOG.md)
|
|
464
|
+
+ [Projects](PROJECTS.md)
|
|
462
465
|
|
|
463
466
|
## Demos
|
|
464
467
|
+ [www.reactrails.com](http://www.reactrails.com) with the source at [shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/).
|
|
@@ -480,10 +483,13 @@ The gem is available as open source under the terms of the [MIT License](docs/LI
|
|
|
480
483
|
## Authors
|
|
481
484
|
[The Shaka Code team!](http://www.shakacode.com/about/)
|
|
482
485
|
|
|
483
|
-
The
|
|
486
|
+
The origins of the project began with the need to do a rich JavaScript interface for ShakaCode's client [Madrone](http://madroneco.com/) and the choice to use Webapck and Rails, as described in [Fast Rich Client Rails Development With Webpack and the ES6 Transpiler](http://www.railsonmaui.com/blog/2014/10/03/integrating-webpack-and-the-es6-transpiler-into-an-existing-rails-project/).
|
|
487
|
+
|
|
488
|
+
The gem project started with [Justin Gordon](https://github.com/justin808/) pairing with [Samnang Chhun](https://github.com/samnang) to figure out how to do server rendering with Webpack plus Rails. [Alex Fedoseev](https://github.com/alexfedoseev) then joined in. [Rob Wise](https://github.com/robwise), [Aaron Van Bokhoven](https://github.com/aaronvb), and [Andy Wang](https://github.com/yorzi) did the bulk of the generators. Many others have [contributed](https://github.com/shakacode/react_on_rails/graphs/contributors).
|
|
484
489
|
|
|
485
490
|
We owe much gratitude to the work of the [react-rails gem](https://github.com/reactjs/react-rails). We've also been inspired by the [react_webpack_rails gem](https://github.com/netguru/react_webpack_rails).
|
|
486
491
|
|
|
492
|
+
|
|
487
493
|
## About [ShakaCode](http://www.shakacode.com/)
|
|
488
494
|
|
|
489
495
|
Visit [our forums!](http://forum.shakacode.com). We've got a [category dedicated to react_on_rails](http://forum.shakacode.com/c/rails/reactonrails).
|
|
@@ -111,7 +111,6 @@ module ReactOnRails
|
|
|
111
111
|
def copy_base_files
|
|
112
112
|
base_path = "base/base/"
|
|
113
113
|
%w(app/controllers/hello_world_controller.rb
|
|
114
|
-
config/initializers/react_on_rails.rb
|
|
115
114
|
client/.babelrc
|
|
116
115
|
client/index.jade
|
|
117
116
|
client/server.js
|
|
@@ -124,7 +123,8 @@ module ReactOnRails
|
|
|
124
123
|
|
|
125
124
|
def template_base_files
|
|
126
125
|
base_path = "base/base/"
|
|
127
|
-
%w(
|
|
126
|
+
%w(config/initializers/react_on_rails.rb
|
|
127
|
+
Procfile.dev
|
|
128
128
|
Procfile.dev-hot
|
|
129
129
|
app/views/hello_world/index.html.erb
|
|
130
130
|
client/app/bundles/HelloWorld/components/HelloWorldWidget.jsx
|
|
@@ -4,7 +4,12 @@ ReactOnRails.configure do |config|
|
|
|
4
4
|
|
|
5
5
|
# Server rendering:
|
|
6
6
|
# Server bundle is a single file for all server rendering of components.
|
|
7
|
+
# Set the server_bundle_js_file to "" if you know that you will not be server rendering.
|
|
8
|
+
<%- if options.server_rendering? %>
|
|
7
9
|
config.server_bundle_js_file = "app/assets/javascripts/generated/server-bundle.js"
|
|
10
|
+
<% else %>
|
|
11
|
+
config.server_bundle_js_file = ""
|
|
12
|
+
<%- end %>
|
|
8
13
|
# increase if you're on JRuby
|
|
9
14
|
config.server_renderer_pool_size = 1
|
|
10
15
|
# seconds
|
data/package.json
CHANGED
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: 3.0.
|
|
4
|
+
version: 3.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: 2016-02-
|
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -297,6 +297,7 @@ files:
|
|
|
297
297
|
- CHANGELOG.md
|
|
298
298
|
- Dockerfile_tests
|
|
299
299
|
- Gemfile
|
|
300
|
+
- PROJECTS.md
|
|
300
301
|
- README.md
|
|
301
302
|
- Rakefile
|
|
302
303
|
- app/helpers/react_on_rails_helper.rb
|
|
@@ -353,7 +354,7 @@ files:
|
|
|
353
354
|
- lib/generators/react_on_rails/templates/base/base/client/webpack.client.base.config.js
|
|
354
355
|
- lib/generators/react_on_rails/templates/base/base/client/webpack.client.hot.config.js.tt
|
|
355
356
|
- lib/generators/react_on_rails/templates/base/base/client/webpack.client.rails.config.js
|
|
356
|
-
- lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
|
|
357
|
+
- lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt
|
|
357
358
|
- lib/generators/react_on_rails/templates/base/base/lib/tasks/assets.rake.tt
|
|
358
359
|
- lib/generators/react_on_rails/templates/base/base/lib/tasks/linters.rake.tt
|
|
359
360
|
- lib/generators/react_on_rails/templates/base/base/package.json
|