coffee-react 0.2.0 → 0.2.1
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/LICENSE +1 -1
- data/README.md +4 -21
- data/lib/coffee_react.rb +0 -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: 71b99da09641e0ad71f0657ff3c010a75053ad2f
|
|
4
|
+
data.tar.gz: 9e5013eff71833847d69f7f8a8ef648e7ba2dd42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6991454979c835944c8c60bc5f2a0789a048a1089ca333e07f6bfa5f271f7226c9f663b4a1c67df443e49d15f80d9615d8a4ef3863fb9926fd031f2c4064e758
|
|
7
|
+
data.tar.gz: 1514c49c9eccefad6433ccdc0849c9f6e3d12cb066dfbaa2647884464dfb5b07a1ca562c13f2a5f5643f75af608f9476e4b5e56c4303db1324a0c3272e0b728c
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,36 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
ruby-coffee-react
|
|
2
2
|
=================
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
`ruby-coffee-react` is a bridge to the npm [coffee-react-transform](https://github.com/jsdf/coffee-react-transform) module.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
CoffeeReact.transform File.read("component.cjsx")
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Installation
|
|
10
10
|
------------
|
|
11
11
|
|
|
12
|
-
gem install coffee-
|
|
13
|
-
|
|
14
|
-
*Note: This compiler library has replaced the original CoffeeScript
|
|
15
|
-
compiler that was written in Ruby.*
|
|
16
|
-
|
|
12
|
+
gem install coffee-react
|
|
17
13
|
|
|
18
14
|
Dependencies
|
|
19
15
|
------------
|
|
20
16
|
|
|
21
|
-
This library depends on the `coffee-script-source` gem which is
|
|
22
|
-
updated any time a new version of CoffeeScript is released. (The
|
|
23
|
-
`coffee-script-source` gem's version number is synced with each
|
|
24
|
-
official CoffeeScript release.) This way you can build against
|
|
25
|
-
different versions of CoffeeScript by requiring the correct version of
|
|
26
|
-
the `coffee-script-source` gem.
|
|
27
|
-
|
|
28
|
-
In addition, you can use this library with unreleased versions of
|
|
29
|
-
CoffeeScript by setting the `COFFEESCRIPT_SOURCE_PATH` environment
|
|
30
|
-
variable:
|
|
31
|
-
|
|
32
|
-
export COFFEESCRIPT_SOURCE_PATH=/path/to/coffee-script/extras/coffee-script.js
|
|
33
|
-
|
|
34
17
|
### JSON
|
|
35
18
|
|
|
36
19
|
The `json` library is also required but is not explicitly stated as a
|
data/lib/coffee_react.rb
CHANGED
|
@@ -7,7 +7,6 @@ module CoffeeReact
|
|
|
7
7
|
CompilationError = ExecJS::ProgramError
|
|
8
8
|
|
|
9
9
|
module Source
|
|
10
|
-
|
|
11
10
|
def self.gem_dir
|
|
12
11
|
Gem::Specification.find_by_name('coffee-react').gem_dir
|
|
13
12
|
end
|
|
@@ -37,7 +36,6 @@ module CoffeeReact
|
|
|
37
36
|
def engine=(engine)
|
|
38
37
|
end
|
|
39
38
|
|
|
40
|
-
|
|
41
39
|
def transform(script, options = {})
|
|
42
40
|
script = script.read if script.respond_to?(:read)
|
|
43
41
|
|