react-router-rails 0.0.1 → 0.11.6

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: a68409d4877d9e9a1fbd0c91f318a273721b4edb
4
- data.tar.gz: 6adc1694dad4a5d3b1a252928b3a675718d57eda
3
+ metadata.gz: d72ad34f48bc662329a91dfae33007998a9accfc
4
+ data.tar.gz: 9acca7f0f94fa759292a784c56aab7d9ce65ded8
5
5
  SHA512:
6
- metadata.gz: 8a73f7cc3f58d6d6a969eff52b0062ea29e3dc64eac9b9198c6b186906358125b8fb92f0e41c765e929ec08ff541b87055244e74b9d037596525768b518ea597
7
- data.tar.gz: 004890fee3d875a49989ffa640df4530e2aa12e00a7192d4666c24695e75b7a6e0c633a568ad9d3e22a97cfd9d46ed7431a9918f59f993ad23c1c46b26b68f07
6
+ metadata.gz: 3d5beb7f413194b17873d8ff435392f9c135320f844834c2037685752a088688903f070d330e2b289e2045c163a2308c56bfebeebe55dbb46d80e58029ff93f8
7
+ data.tar.gz: 2e457caa3607b621f351c1af0bb3e49c700e59c1ce338dc1075a34051ca87db53ddd785d95289ad6d74ab0814c1c81abcff79d53180a786f7ccf7331c873aa17
data/README.md CHANGED
@@ -14,21 +14,42 @@
14
14
 
15
15
  ```bash
16
16
  bundle install
17
+ ```
17
18
 
18
19
  2. Require the modified React-Router javascript file in `app/assets/javascripts/application.js`:
19
20
 
20
21
  ```js
21
22
  //= require react_router
23
+ // OR
24
+ //= require react_router.min
22
25
  ```
23
26
 
24
27
  Or in `app/assets/javascripts/application.js.coffee`:
25
28
 
26
29
  ```coffeescript
27
30
  #= require react_router
31
+ #OR
32
+ #= require react_router.min
33
+ ```
34
+
35
+ 3. Using React Router in your javascript:
36
+
37
+ ```js
38
+ ReactRouter.run(routes, function (Handler) {
39
+ React.render(<Handler/>, document.body);
40
+ });
41
+ ```
42
+
43
+ Or in coffeescript:
44
+
45
+ ```coffeescript
46
+ ReactRouter.run(routes, (Handler) ->
47
+ React.render <Handler/>, document.body
48
+ )
28
49
  ```
29
50
 
30
51
  ## Acknowledgements
31
52
 
32
- [React Router](https://github.com/rackt/react-router/) licensed under the [MIT license](https://github.com/rackt/react-router/blob/master/LICENSE)
53
+ [React Router](https://github.com/rackt/react-router/) by Ryan Florence, Michael Jackson licensed under the [MIT license](https://github.com/rackt/react-router/blob/master/LICENSE)
33
54
 
34
55
  Copyright [Mario Peixoto](https://github.com/mariopeixoto), released under the [MIT license](https://github.com/mariopeixoto/react-router-rails/LICENSE).
@@ -1,7 +1,7 @@
1
1
  module React
2
2
  module Router
3
3
  module Rails
4
- VERSION = "0.0.1"#"0.11.6"
4
+ VERSION = "0.11.6"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react-router-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.11.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Peixoto