Skip to content

Commit a97fa90

Browse files
committed
Merge pull request #260 from shakacode/update-ror-5
Update to 5.0.0.rc.1 of ReactOnRails
2 parents ee23eb4 + 03437b5 commit a97fa90

File tree

6 files changed

+39
-115
lines changed

6 files changed

+39
-115
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ gem "sdoc", group: :doc
4040
# Use Rails Html Sanitizer for HTML sanitization
4141
gem "rails-html-sanitizer"
4242

43-
gem "react_on_rails", "~> 4.0.0"
43+
gem "react_on_rails", "~> 5.0.0.rc.1"
4444

4545
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
4646
gem "therubyracer"

Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ GEM
203203
rake (10.5.0)
204204
rdoc (4.2.2)
205205
json (~> 1.4)
206-
react_on_rails (4.0.0)
206+
react_on_rails (5.0.0.rc.1)
207207
connection_pool
208208
execjs (~> 2.5)
209209
foreman
@@ -347,7 +347,7 @@ DEPENDENCIES
347347
rails-html-sanitizer
348348
rails_12factor
349349
rainbow
350-
react_on_rails (~> 4.0.0)
350+
react_on_rails (~> 5.0.0.rc.1)
351351
rspec-rails
352352
rspec-retry
353353
rubocop

client/app/bundles/comments/startup/ServerRouterApp.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import { match, RouterContext } from 'react-router';
55
import createStore from '../store/commentsStore';
66
import routes from '../routes/routes';
77

8-
export default (props, location) => {
8+
export default (props, railsContext) => {
99
const store = createStore(props);
1010

1111
let error;
1212
let redirectLocation;
1313
let routeProps;
14+
const location = { railsContext };
1415

1516
// See https://github.com/reactjs/react-router/blob/master/docs/guides/ServerRendering.md
1617
match({ routes, location }, (_error, _redirectLocation, _routeProps) => {

client/npm-shrinkwrap.json

+30-106
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"react-addons-pure-render-mixin": "^0.14.7",
7171
"react-bootstrap": "^0.28.3",
7272
"react-dom": "^0.14.7",
73-
"react-on-rails": "^4.0.0",
73+
"react-on-rails": "^5.0.0-rc.1",
7474
"react-redux": "^4.4.0",
7575
"react-router": "^2.0.0",
7676
"react-router-redux": "^4.0.0",
@@ -81,7 +81,7 @@
8181
"sass-loader": "^3.1.2",
8282
"sass-resources-loader": "1.0.2",
8383
"style-loader": "^0.13.0",
84-
"turbolinks": "0.0.2",
84+
"turbolinks": "^5.0.0-beta3",
8585
"url-loader": "^0.5.7",
8686
"webpack": "^1.12.14"
8787
},

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
},
4040
"homepage": "https://github.com/shakacode/react-webpack-rails-tutorial",
4141
"dependencies": {
42-
"babel-polyfill": "^6.6.1",
43-
"estraverse": "^4.1.1",
44-
"estraverse-fb": "^1.3.1"
42+
},
43+
"devDependencies": {
4544
}
4645
}

0 commit comments

Comments
 (0)