sprockets-coffee-react 0.4.1 → 0.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bce05a34bf725bd3bb9bf8f56866faddf0e9115
4
- data.tar.gz: 9562cf8a2086ca20572b3392b7fa6d0a6f90373a
3
+ metadata.gz: b560b0be65f7f8e4856a4e82e66e62cfd0e1ce32
4
+ data.tar.gz: 0adf201c9796e4c5605f14910d396a3b382d537e
5
5
  SHA512:
6
- metadata.gz: d4cbef8ce973419054289cfb79bf2b22d030a65393638e46cf071b2d829b4bddca701e7085a87c73e2026b75d42ddc358d1f274056de8db14fe01bee02eaf202
7
- data.tar.gz: c2895a7d23de48da3d380151e26104cdf6fb2a033f9d930a890f57c75fbf127e17a217653ad5ea468c07fda22703709702c7d1f1c4204457acc9817c61fda012
6
+ metadata.gz: dd48f18672a1cfd28d039982fab64dd883e59fe1e1539464dc2145b03a3df66fde7fed17e91ea44c76ae4d3064308b9657e27bdb19db201f600841eaa746d9bc
7
+ data.tar.gz: 2de32471a83f018742c2aea0e47a5d1f7ac78fa8d6eeeadb26409eee1a220eec39ee843ab4565802e14888a53f56f805fc8d160daaa6981b20ffb40ba434e552
data/README.rdoc CHANGED
@@ -6,16 +6,16 @@ Add this to your Gemfile:
6
6
 
7
7
  gem 'sprockets-coffee-react'
8
8
 
9
- Place a <tt>.js.coffee.cjsx</tt> or <tt>.js.cjsx</tt> (or a <tt>.js.coffee</tt> file with a
10
- <tt>@cjsx</tt> pragma) in your assets directory.
9
+ Place a <tt>.js.coffee.cjsx</tt> or <tt>.js.cjsx</tt> file (or a <tt>.js.coffee</tt> file with a
10
+ <tt>@cjsx</tt> pragma) in your assets directory. When you require it into other JS files the CJSX
11
+ markup will be transformed and compiled to Javascript.
11
12
 
12
13
  Eg. if you have a file called <tt>my-component.js.coffee</tt> which contains
13
14
  some CJSX code, require it from <tt>application.js</tt> or somewhere else:
14
15
 
15
16
  //= require my-component
16
17
 
17
- It it will be automatically transformed to Coffeescript, then compiled to
18
- Javascript.
18
+
19
19
 
20
20
  == License
21
21
 
@@ -14,7 +14,7 @@ module Sprockets
14
14
  end
15
15
 
16
16
  def evaluate(scope, locals, &block)
17
- if scope.pathname.to_s =~ /js\.coffee\.cjsx/
17
+ if scope.pathname.to_s =~ /\.coffee\.cjsx/
18
18
  ::CoffeeReact.transform(data)
19
19
  elsif scope.pathname.to_s =~ CJSX_EXTENSION || data =~ CJSX_PRAGMA
20
20
  ::CoffeeScript.compile(::CoffeeReact.transform(data))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-coffee-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Friend