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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef1142fab68d2f7cdce6e89785fa26869ee6d9b7
4
- data.tar.gz: 3c2decafcf75c452ba95bb96e71fc007ac11d75f
3
+ metadata.gz: 433c2e02e818baef806f19c692ac592bf2b2432d
4
+ data.tar.gz: e76b2550dc94fd1d5d59a2a0228d9635948d50a9
5
5
  SHA512:
6
- metadata.gz: 6e580ea2a89f51558742dc71b81a8cfb73b8ef6cc2c6bee8efb696898f3e96a3eb0281dec7fe96bf2aa8b422899edfd58932ef9cc4c91091576095f456a75732
7
- data.tar.gz: 8264ac629674e6a41a4070d0489f357da796de1eced948b3223fff0b2073fde6f751790cbf0df65a1cd25e01a60191786be5b323314e38baf5e8742bb701a43a
6
+ metadata.gz: b2f71eb4005709fab9e7f5037a5fdbf56640c848dbbf153c5781ffa4347e76a18f613f77322392ae581cbcc0b316ea44f00e9401292bac9ef54e940f843a042f
7
+ data.tar.gz: 509db7c5d5850795687c75d5ff8701f5ecf80551155fdfce54cabb339006c1973573b71495f1927ed6a9bfdc8f58ed0c9ddb0a32d81c0b6956cfb6714a23907d
data/.rubocop.yml CHANGED
@@ -2,6 +2,7 @@
2
2
  # Check out: https://github.com/bbatsov/rubocop
3
3
 
4
4
  AllCops:
5
+ DisplayCopNames: true
5
6
  TargetRubyVersion: 2.1
6
7
 
7
8
  Include:
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.rc.1] - 2016-03-06
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/3.0.6...master
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.com/reactjs/react-router), [**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).
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
 
@@ -2,6 +2,7 @@
2
2
  # Check out: https://github.com/bbatsov/rubocop
3
3
 
4
4
  AllCops:
5
+ DisplayCopNames: true
5
6
  Include:
6
7
  - '**/Rakefile'
7
8
  - '**/config.ru'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ReactOnRails
3
- VERSION = "4.0.0.beta.3".freeze
3
+ VERSION = "4.0.0".freeze
4
4
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "4.0.0-beta.3",
3
+ "version": "4.0.0",
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: 4.0.0.beta.3
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-14 00:00:00.000000000 Z
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: 1.3.1
462
+ version: '0'
463
463
  requirements: []
464
464
  rubyforge_project:
465
465
  rubygems_version: 2.6.1