coffee-react 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +4 -21
  4. data/lib/coffee_react.rb +0 -2
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a56bfc931fad78325348778c948db307a425b89a
4
- data.tar.gz: 0209ec616f77796af686cad720f51240ad5d025c
3
+ metadata.gz: 71b99da09641e0ad71f0657ff3c010a75053ad2f
4
+ data.tar.gz: 9e5013eff71833847d69f7f8a8ef648e7ba2dd42
5
5
  SHA512:
6
- metadata.gz: 3a7e4948f7b1ce92676bedffd8f4635a6b71158e6953f23f862978a8d515d2aad0919aa8e4e7cd9e561c86b4d1cd2db35ef2d1093f2931b5611c52a5b9ca1957
7
- data.tar.gz: 3f14694dd5baf5d2f808bba0d19859c9fff988ea2840fa09067d8c2b3a8e6752779ce8ba5f2df9c1ef7ce8d5dbba137b5b26dcdff49f7e2ae0f82020094f4045
6
+ metadata.gz: 6991454979c835944c8c60bc5f2a0789a048a1089ca333e07f6bfa5f271f7226c9f663b4a1c67df443e49d15f80d9615d8a4ef3863fb9926fd031f2c4064e758
7
+ data.tar.gz: 1514c49c9eccefad6433ccdc0849c9f6e3d12cb066dfbaa2647884464dfb5b07a1ca562c13f2a5f5643f75af608f9476e4b5e56c4303db1324a0c3272e0b728c
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Joshua Peek
1
+ Copyright (c) 2014 James Friend
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
data/README.md CHANGED
@@ -1,36 +1,19 @@
1
- Ruby CoffeeScript
1
+ ruby-coffee-react
2
2
  =================
3
3
 
4
- Ruby CoffeeScript is a bridge to the official CoffeeScript compiler.
4
+ `ruby-coffee-react` is a bridge to the npm [coffee-react-transform](https://github.com/jsdf/coffee-react-transform) module.
5
5
 
6
- CoffeeScript.compile File.read("script.coffee")
6
+ CoffeeReact.transform File.read("component.cjsx")
7
7
 
8
8
 
9
9
  Installation
10
10
  ------------
11
11
 
12
- gem install coffee-script
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coffee-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Friend