react-rails 0.11.1.0 → 0.12.0.0
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 +3 -5
- data/lib/react/rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f69624b4d6916d39ecc65d34359c3fc79627ad11
|
4
|
+
data.tar.gz: 69458a21552bb2d26ee85e06a5dcf6135fa18359
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ca9dac691814175e87b321863088183dd24adec3dcf68b669c5f0235a8f013b9e141766103b546b044b5414fcbd6e25e28ff33a623fda2e7cfcaecb416c514
|
7
|
+
data.tar.gz: 6f22dbbc17234482426fc496b9657343ce5a554f920f2ade47584a4d46c0af2e56d9ad8bba3d425fc8f6f54e3279a44136207a5490372cfdf3edc018614056ba
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ As with all gem dependencies, we strongly recommend adding `react-rails` to your
|
|
17
17
|
```ruby
|
18
18
|
# Gemfile
|
19
19
|
|
20
|
-
gem 'react-rails', '~> 0.
|
20
|
+
gem 'react-rails', '~> 0.12.0.0'
|
21
21
|
```
|
22
22
|
|
23
23
|
|
@@ -46,7 +46,7 @@ Alternatively, you can include it directly as a separate script tag:
|
|
46
46
|
|
47
47
|
### JSX
|
48
48
|
|
49
|
-
To transform your JSX into JS, simply create `.js.jsx` files
|
49
|
+
To transform your JSX into JS, simply create `.js.jsx` files. These files will be transformed on request, or precompiled as part of the `assets:precompile` task.
|
50
50
|
|
51
51
|
|
52
52
|
## Configuring
|
@@ -80,11 +80,9 @@ end
|
|
80
80
|
|
81
81
|
## CoffeeScript
|
82
82
|
|
83
|
-
It is possible to use JSX with CoffeeScript.
|
83
|
+
It is possible to use JSX with CoffeeScript. We need to embed JSX inside backticks so CoffeeScript ignores the syntax it doesn't understand. Here's an example:
|
84
84
|
|
85
85
|
```coffee
|
86
|
-
###* @jsx React.DOM ###
|
87
|
-
|
88
86
|
Component = React.createClass
|
89
87
|
render: ->
|
90
88
|
`<ExampleComponent videos={this.props.videos} />`
|
data/lib/react/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul O’Shannessy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: '0.12'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: '0.12'
|
97
97
|
description: Compile your JSX on demand or precompile for production.
|
98
98
|
email:
|
99
99
|
- paul@oshannessy.com
|