sprockets-jsx 0.0.1 → 0.0.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.
- data/Gemfile +3 -0
- data/Gemfile.lock +3 -0
- data/Rakefile +11 -0
- data/VERSION +1 -1
- data/lib/sprockets/jsx_template.rb +1 -1
- data/spec/jsx_spec.rb +1 -0
- metadata +3 -2
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
GEM
|
2
|
+
remote: http://rubygems.org/
|
2
3
|
specs:
|
3
4
|
diff-lcs (1.1.3)
|
4
5
|
hike (1.2.1)
|
5
6
|
multi_json (1.3.5)
|
6
7
|
rack (1.4.1)
|
8
|
+
rake (0.9.2.2)
|
7
9
|
rspec (2.10.0)
|
8
10
|
rspec-core (~> 2.10.0)
|
9
11
|
rspec-expectations (~> 2.10.0)
|
@@ -27,6 +29,7 @@ PLATFORMS
|
|
27
29
|
ruby
|
28
30
|
|
29
31
|
DEPENDENCIES
|
32
|
+
rake
|
30
33
|
rspec
|
31
34
|
simplecov
|
32
35
|
sprockets (~> 2.0)
|
data/Rakefile
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -30,7 +30,7 @@ module Sprockets
|
|
30
30
|
content = begin
|
31
31
|
%x"#{CONFIG.jsx_bin || ENV["JSX_BIN"] || "jsx"} #{options} #{filepath}"
|
32
32
|
rescue Errno::ENOENT => e
|
33
|
-
raise Sprockets::ArgumentError.new e
|
33
|
+
raise Sprockets::ArgumentError.new %Q!Make sure your conf.jsx_bin or ENV["JSX_BIN"]. #{e.message}!
|
34
34
|
end
|
35
35
|
|
36
36
|
Dir.chdir(dir) if dir
|
data/spec/jsx_spec.rb
CHANGED
@@ -45,6 +45,7 @@ describe Sprockets::JSXTemplate do
|
|
45
45
|
Sprockets::JSXTemplate.configure {|conf| conf.jsx_bin = "bar"}
|
46
46
|
Sprockets::JSXTemplate.configure {|conf|}
|
47
47
|
Sprockets::JSXTemplate::CONFIG.jsx_bin.should be_nil
|
48
|
+
Sprockets::JSXTemplate::CONFIG.compile_options.should be_nil
|
48
49
|
end
|
49
50
|
|
50
51
|
it "should be raise if invalid config method call" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-jsx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: JSX support for Sprockets
|
15
15
|
email:
|
@@ -23,6 +23,7 @@ files:
|
|
23
23
|
- Gemfile.lock
|
24
24
|
- LICENSE
|
25
25
|
- README.mkd
|
26
|
+
- Rakefile
|
26
27
|
- VERSION
|
27
28
|
- lib/sprockets-jsx.rb
|
28
29
|
- lib/sprockets/jsx_template.rb
|