react_on_rails 4.0.0.beta.2 → 4.0.0.beta.3

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: 7201a4cf1cd742f3daa732436004d85ca67b8703
4
- data.tar.gz: 02719ebb4f5feb84506f83b10417e864ca5ca6ff
3
+ metadata.gz: ef1142fab68d2f7cdce6e89785fa26869ee6d9b7
4
+ data.tar.gz: 3c2decafcf75c452ba95bb96e71fc007ac11d75f
5
5
  SHA512:
6
- metadata.gz: 41cfaad0da66d9771852126d6f64cb3615d080a827ec8a5a3be328f0f69f4d7a135d15b26a0cf5e4d79900a8634bcfbd6dae9b1ffc1d103e9633ffd4d57e8981
7
- data.tar.gz: 8ecb0b33b5b958408917eee8ca024756448c00553b0d863163ee4ffbf371f66c22cf282fbee526d925810e07dac42db7a46ee06798c3dc6a153bbefa53f39a69
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:4000](http://localhost:4000). 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
+ 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.include?("nothing to commit, working directory clean")
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ReactOnRails
3
- VERSION = "4.0.0.beta.2".freeze
3
+ VERSION = "4.0.0.beta.3".freeze
4
4
  end
data/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "4.0.0-beta.2",
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",
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: 4.0.0.beta.2
4
+ version: 4.0.0.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon