react_on_rails 4.0.0.beta.2 → 4.0.0.beta.3
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/README.md +2 -1
- data/docs/tutorial-v2.md +1 -1
- data/lib/react_on_rails/git_utils.rb +2 -2
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef1142fab68d2f7cdce6e89785fa26869ee6d9b7
|
|
4
|
+
data.tar.gz: 3c2decafcf75c452ba95bb96e71fc007ac11d75f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e580ea2a89f51558742dc71b81a8cfb73b8ef6cc2c6bee8efb696898f3e96a3eb0281dec7fe96bf2aa8b422899edfd58932ef9cc4c91091576095f456a75732
|
|
7
|
+
data.tar.gz: 8264ac629674e6a41a4070d0489f357da796de1eced948b3223fff0b2073fde6f751790cbf0df65a1cd25e01a60191786be5b323314e38baf5e8742bb701a43a
|
data/README.md
CHANGED
|
@@ -31,6 +31,7 @@ Be sure to see:
|
|
|
31
31
|
* [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724)
|
|
32
32
|
* [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).
|
|
33
33
|
* [Projects](PROJECTS.md) using React on Rails. Please submit yours!
|
|
34
|
+
* On Twitter, follow [@railsonmaui](https://twitter.com/railsonmaui) and [@shakacode](https://twitter.com/shakacode) for updates on releases.
|
|
34
35
|
|
|
35
36
|
## Including your React Component in your Rails Views
|
|
36
37
|
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.
|
|
@@ -524,7 +525,7 @@ The webpack dev server with HMR will apply changes from the code (or styles!) to
|
|
|
524
525
|
foreman start -f Procfile.dev
|
|
525
526
|
```
|
|
526
527
|
|
|
527
|
-
Open your browser to [localhost:
|
|
528
|
+
Open your browser to [localhost:3000](http://localhost:3000). Whenever you make changes to your JavaScript code in the `client` folder, they will automatically show up in the browser. Hot module replacement is already enabled by default.
|
|
528
529
|
|
|
529
530
|
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.
|
|
530
531
|
|
data/docs/tutorial-v2.md
CHANGED
|
@@ -57,7 +57,7 @@ Visit http://localhost:4000 and see your React On Rails app running using the We
|
|
|
57
57
|
|
|
58
58
|
With this setup, you can make changes to your JS or CSS and the browser will hot reload the changes (no page refresh required).
|
|
59
59
|
|
|
60
|
-
I'm going to add this line to:
|
|
60
|
+
I'm going to add this line to client/app/bundles/HelloWorld/HelloWorldWidget.jsx:
|
|
61
61
|
|
|
62
62
|
```html
|
|
63
63
|
<h1>Welcome to React On Rails!</h1>
|
|
@@ -2,8 +2,8 @@ module ReactOnRails
|
|
|
2
2
|
module GitUtils
|
|
3
3
|
def self.uncommitted_changes?(message_handler)
|
|
4
4
|
return false if ENV["COVERAGE"]
|
|
5
|
-
status = `git status`
|
|
6
|
-
return false if status.
|
|
5
|
+
status = `git status --porcelain`
|
|
6
|
+
return false if status.empty?
|
|
7
7
|
error = "You have uncommitted code. Please commit or stash your changes before continuing"
|
|
8
8
|
message_handler.add_error(error)
|
|
9
9
|
true
|
data/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-on-rails",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.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": {
|
|
7
7
|
"doc": "docs"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"babel": "^6.3.26",
|
|
11
10
|
"babel-cli": "^6.4.5",
|
|
12
11
|
"babel-core": "^6.4.5",
|
|
13
12
|
"babel-eslint": "^5.0.0-beta8",
|