react_on_rails 4.0.0.beta.3 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +7 -3
- data/README.md +9 -3
- data/lib/generators/react_on_rails/templates/ruby_linters/.rubocop.yml +1 -0
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 433c2e02e818baef806f19c692ac592bf2b2432d
|
4
|
+
data.tar.gz: e76b2550dc94fd1d5d59a2a0228d9635948d50a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2f71eb4005709fab9e7f5037a5fdbf56640c848dbbf153c5781ffa4347e76a18f613f77322392ae581cbcc0b316ea44f00e9401292bac9ef54e940f843a042f
|
7
|
+
data.tar.gz: 509db7c5d5850795687c75d5ff8701f5ecf80551155fdfce54cabb339006c1973573b71495f1927ed6a9bfdc8f58ed0c9ddb0a32d81c0b6956cfb6714a23907d
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,8 +4,9 @@ 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
|
-
## [4.0.0.
|
7
|
+
## [4.0.0.beta.3] - 2016-03-14
|
8
8
|
##### Added
|
9
|
+
- Added optional parameter for ReactOnRails.getStore(name, throwIfMissing = true) so that you can check if a store is defined easily.
|
9
10
|
- Added controller `module ReactOnRails::Controller`. Adds method `redux_store` to setup redux stores in the view.
|
10
11
|
- Added option `defer: true` for view helper `redux_store`. This allows the view helper to specify the props for store hydration, yet still render the props at the bottom of the view.
|
11
12
|
- Added view helper `redux_store_hydration_data` to render the props on the application's layout, near the bottom. This allows for the client hydration data to be parsed after the server rendering, which may result in a faster load time.
|
@@ -16,10 +17,12 @@ Contributors: please follow the recommendations outlined at [keepachangelog.com]
|
|
16
17
|
- Added several parameters used for ensuring webpack assets are built for running tests:
|
17
18
|
- `config.generated_assets_dir`: Directory where your generated webpack assets go. You can have only **one** directory for this.
|
18
19
|
- `config.webpack_generated_files`: List of files that will get created in the `generated_assets_dir`. The test runner helper will ensure these generated files are newer than any of the files in the client directory.
|
20
|
+
|
19
21
|
##### Changed
|
20
22
|
- Generator default for webpack generated assets is now `app/assets/webpack` as we use this for both JavaScript and CSS generated assets.
|
23
|
+
|
21
24
|
##### Fixed
|
22
|
-
- The test runner assets up to date checker is greatly improved.
|
25
|
+
- The test runner "assets up to date checker" is greatly improved.
|
23
26
|
- Lots of doc updates!
|
24
27
|
- Improved the **spec/dummy** sample app so that it supports CSS modules, hot reloading, etc, and it can server as a template for a new ReactOnRails installation.
|
25
28
|
|
@@ -217,7 +220,8 @@ Best done with Object destructing:
|
|
217
220
|
|
218
221
|
##### Fixed
|
219
222
|
- Fix several generator related issues.
|
220
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/
|
223
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/4.0.0.beta.3...master
|
224
|
+
[4.0.0.beta.3]: https://github.com/shakacode/react_on_rails/compare/3.0.6...4.0.0-beta.3
|
221
225
|
[3.0.6]: https://github.com/shakacode/react_on_rails/compare/3.0.5...3.0.6
|
222
226
|
[3.0.5]: https://github.com/shakacode/react_on_rails/compare/3.0.4...3.0.5
|
223
227
|
[3.0.4]: https://github.com/shakacode/react_on_rails/compare/3.0.3...3.0.4
|
data/README.md
CHANGED
@@ -3,7 +3,9 @@
|
|
3
3
|
# NEWS
|
4
4
|
* 4.0.0 Highlights
|
5
5
|
* Better support for Turbolinks 5.
|
6
|
-
* Controller rendering of shared redux stores.
|
6
|
+
* Controller rendering of shared redux stores and ability to render store data at bottom of HTML page.
|
7
|
+
* See [#311](https://github.com/shakacode/react_on_rails/pull/311/files).
|
8
|
+
* See [CHANGELOG.md](CHANGELOG.md) for full details.
|
7
9
|
* 2016-02-28: We added a [Projects page](PROJECTS.md). Please edit the page your project or [email us](mailto:contact@shakacode.com) and we'll add you. We also love stars as it helps us attract new users and contributors. [jbhatab](https://github.com/jbhatab) is leading an effort to ease the onboarding process for newbies with simpler project generators. See [#245](https://github.com/shakacode/react_on_rails/issues/245).
|
8
10
|
* 3.0.6 shipped on Tuesday, 2016-03-01. 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).
|
9
11
|
* [RubyGems](https://rubygems.org/gems/react_on_rails/)
|
@@ -22,9 +24,9 @@
|
|
22
24
|
|
23
25
|
# React on Rails
|
24
26
|
|
25
|
-
**Project Objective**: To provide an opinionated and optimal framework for integrating **Ruby on Rails** with modern JavaScript tooling and libraries, including [**Webpack**](http://webpack.github.io/), [**Babel**](https://babeljs.io/), [**React**](https://github.
|
27
|
+
**Project Objective**: To provide an opinionated and optimal framework for integrating **Ruby on Rails** with modern JavaScript tooling and libraries, including [**Webpack**](http://webpack.github.io/), [**Babel**](https://babeljs.io/), [**React**](https://facebook.github.io/react/), [**Redux**](https://github.com/reactjs/redux), [**React-Router**](https://github.com/reactjs/react-router). This differs significantly from typical Rails. When considering what goes into **react_on_rails**, we ask ourselves, is the functionality related to the intersection of using Rails and with modern JavaScript? If so, then the functionality belongs right here. In other cases, we're releasing separate npm packages or Ruby gems. If you are interested in implementing React using traditional Rails architecture, see [react-rails](https://github.com/reactjs/react-rails).
|
26
28
|
|
27
|
-
React on Rails integrates Facebook's [React](https://github.com/facebook/react) front-end framework with Rails. React v0.14.x is supported, with server rendering. [Redux](https://github.com/reactjs/redux) and [React-Router](https://github.com/reactjs/react-redux) are supported as well. See the Rails on Maui [blog post](http://www.railsonmaui.com/blog/2014/10/03/integrating-webpack-and-the-es6-transpiler-into-an-existing-rails-project/) that started it all!
|
29
|
+
React on Rails integrates Facebook's [React](https://github.com/facebook/react) front-end framework with Rails. React v0.14.x is supported, with server rendering. [Redux](https://github.com/reactjs/redux) and [React-Router](https://github.com/reactjs/react-redux) are supported as well, also with server rendering. See the Rails on Maui [blog post](http://www.railsonmaui.com/blog/2014/10/03/integrating-webpack-and-the-es6-transpiler-into-an-existing-rails-project/) that started it all!
|
28
30
|
|
29
31
|
Be sure to see:
|
30
32
|
|
@@ -82,6 +84,7 @@ Please see [Getting Started](#getting-started) for how to set up your Rails proj
|
|
82
84
|
- [ReactOnRails JavaScript API](#reactonrails-javascript-api)
|
83
85
|
- [Redux](#redux)
|
84
86
|
- [React-Router](#react-router)
|
87
|
+
- [Bootstrap Integration](#bootstrap-integration)
|
85
88
|
+ [Generator](#generator)
|
86
89
|
- [Understanding the Organization of the Generated Client Code](#understanding-the-organization-of-the-generated-client-code)
|
87
90
|
- [Redux](#redux)
|
@@ -462,6 +465,9 @@ The generator has amended the folders created in `client/assets/` to Rails's ass
|
|
462
465
|
|
463
466
|
Alternatively, if you have many existing assets and don't wish to move them, you could consider creating symlinks from client/assets that point to your Rails assets folders inside of `app/assets/`. The assets there will then be visible to both Rails and webpack.
|
464
467
|
|
468
|
+
### React Router
|
469
|
+
[React Router](https://github.com/reactjs/react-router) is supported, including server side rendering! See the examples in [spec/dummy/apps/views/react_router](spec/dummy/apps/views/react_router) and follow to the JavaScript code in the [client/app/startup/ServerRouterApp.jsx](client/app/startup/ServerRouterApp.jsx). Additionally, see the `react_component` helper option `router_redirect_callback`.
|
470
|
+
|
465
471
|
### Bootstrap Integration
|
466
472
|
React on Rails ships with Twitter Bootstrap already integrated into the build. Note that the generator removes `require_tree` in both the application.js and application.css.scss files. This is to ensure the correct load order for the bootstrap integration, and is usually a good idea in general. You will therefore need to explicitly require your files.
|
467
473
|
|
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: 4.0.0
|
4
|
+
version: 4.0.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: 2016-03-
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|
@@ -457,9 +457,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
457
457
|
version: '0'
|
458
458
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
459
459
|
requirements:
|
460
|
-
- - "
|
460
|
+
- - ">="
|
461
461
|
- !ruby/object:Gem::Version
|
462
|
-
version:
|
462
|
+
version: '0'
|
463
463
|
requirements: []
|
464
464
|
rubyforge_project:
|
465
465
|
rubygems_version: 2.6.1
|