barber 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +8 -3
- data/gemfiles/ember_1.10.gemfile +8 -0
- data/gemfiles/ember_1.10.gemfile.lock +43 -0
- data/gemfiles/{ember_1.7.gemfile → ember_1.8.gemfile} +1 -1
- data/gemfiles/{ember_1.7.gemfile.lock → ember_1.8.gemfile.lock} +6 -6
- data/gemfiles/ember_1.9.gemfile +1 -1
- data/gemfiles/ember_1.9.gemfile.lock +6 -6
- data/gemfiles/ember_rc4.gemfile.lock +4 -4
- data/lib/barber/javascripts/ember_precompiler.js +4 -2
- data/lib/barber/version.rb +1 -1
- data/test/ember/precompiler_test.rb +2 -2
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a38a106b33feac920e7c648fbad7bb24211cb156
|
4
|
+
data.tar.gz: 5d54053e5d0b0fd65804cc97b63130f6583fa475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 793de24bc133c75fa6350078a240247884f20b8a0fad642f42988e9c4bc65a680fdf5d43a0428dc98672f3b255a63af761a40ab1714b0d0adc039910cafb53d8
|
7
|
+
data.tar.gz: d7ca65767cf9fbfc63d3fef071e0b03683367fa767ccd3bf15f6d53ffa819cf7d9252635e75b9e59a30e7997ba4d2588aae69a581783970304ffa10c3d3a8e84
|
data/Appraisals
CHANGED
@@ -3,12 +3,17 @@ appraise "ember-rc4" do
|
|
3
3
|
gem "ember-source", "1.0.0.rc4"
|
4
4
|
end
|
5
5
|
|
6
|
-
appraise "ember-1.
|
6
|
+
appraise "ember-1.8" do
|
7
7
|
# Uses handlebars 1.3.0
|
8
|
-
gem "ember-source", "1.
|
8
|
+
gem "ember-source", "1.8.0"
|
9
9
|
end
|
10
10
|
|
11
11
|
appraise "ember-1.9" do
|
12
12
|
# Uses handlebars 2.0.0
|
13
|
-
gem "ember-source", "~> 1.9.0
|
13
|
+
gem "ember-source", "~> 1.9.0"
|
14
|
+
end
|
15
|
+
|
16
|
+
appraise "ember-1.10" do
|
17
|
+
# Uses HTMLBars
|
18
|
+
gem "ember-source", "~> 1.10.0.beta.2"
|
14
19
|
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
barber (0.5.0)
|
5
|
+
ember-source
|
6
|
+
execjs
|
7
|
+
handlebars-source (>= 1.0.0.rc.4)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
appraisal (1.0.2)
|
13
|
+
bundler
|
14
|
+
rake
|
15
|
+
thor (>= 0.14.0)
|
16
|
+
docile (1.1.5)
|
17
|
+
ember-source (1.10.0.beta.2)
|
18
|
+
handlebars-source (~> 2.0)
|
19
|
+
execjs (2.2.2)
|
20
|
+
handlebars-source (2.0.0)
|
21
|
+
metaclass (0.0.4)
|
22
|
+
mocha (1.1.0)
|
23
|
+
metaclass (~> 0.0.1)
|
24
|
+
multi_json (1.10.1)
|
25
|
+
rake (10.4.2)
|
26
|
+
simplecov (0.9.1)
|
27
|
+
docile (~> 1.1.0)
|
28
|
+
multi_json (~> 1.0)
|
29
|
+
simplecov-html (~> 0.8.0)
|
30
|
+
simplecov-html (0.8.0)
|
31
|
+
thor (0.19.1)
|
32
|
+
|
33
|
+
PLATFORMS
|
34
|
+
ruby
|
35
|
+
|
36
|
+
DEPENDENCIES
|
37
|
+
appraisal
|
38
|
+
barber!
|
39
|
+
ember-source (~> 1.10.0.beta.2)
|
40
|
+
mocha (~> 1.0)
|
41
|
+
rake
|
42
|
+
simplecov
|
43
|
+
therubyrhino
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
barber (0.
|
4
|
+
barber (0.5.0)
|
5
5
|
ember-source
|
6
6
|
execjs
|
7
7
|
handlebars-source (>= 1.0.0.rc.4)
|
@@ -14,15 +14,15 @@ GEM
|
|
14
14
|
rake
|
15
15
|
thor (>= 0.14.0)
|
16
16
|
docile (1.1.5)
|
17
|
-
ember-source (1.
|
17
|
+
ember-source (1.8.0)
|
18
18
|
handlebars-source (~> 1.0)
|
19
19
|
execjs (2.2.2)
|
20
20
|
handlebars-source (1.3.0)
|
21
21
|
metaclass (0.0.4)
|
22
|
-
mocha (1.
|
22
|
+
mocha (1.1.0)
|
23
23
|
metaclass (~> 0.0.1)
|
24
24
|
multi_json (1.10.1)
|
25
|
-
rake (10.
|
25
|
+
rake (10.4.2)
|
26
26
|
simplecov (0.9.1)
|
27
27
|
docile (~> 1.1.0)
|
28
28
|
multi_json (~> 1.0)
|
@@ -36,8 +36,8 @@ PLATFORMS
|
|
36
36
|
DEPENDENCIES
|
37
37
|
appraisal
|
38
38
|
barber!
|
39
|
-
ember-source (= 1.
|
40
|
-
mocha (~> 1.0
|
39
|
+
ember-source (= 1.8.0)
|
40
|
+
mocha (~> 1.0)
|
41
41
|
rake
|
42
42
|
simplecov
|
43
43
|
therubyrhino
|
data/gemfiles/ember_1.9.gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
barber (0.
|
4
|
+
barber (0.5.0)
|
5
5
|
ember-source
|
6
6
|
execjs
|
7
7
|
handlebars-source (>= 1.0.0.rc.4)
|
@@ -14,15 +14,15 @@ GEM
|
|
14
14
|
rake
|
15
15
|
thor (>= 0.14.0)
|
16
16
|
docile (1.1.5)
|
17
|
-
ember-source (1.9.
|
17
|
+
ember-source (1.9.1)
|
18
18
|
handlebars-source (~> 2.0)
|
19
19
|
execjs (2.2.2)
|
20
20
|
handlebars-source (2.0.0)
|
21
21
|
metaclass (0.0.4)
|
22
|
-
mocha (1.
|
22
|
+
mocha (1.1.0)
|
23
23
|
metaclass (~> 0.0.1)
|
24
24
|
multi_json (1.10.1)
|
25
|
-
rake (10.
|
25
|
+
rake (10.4.2)
|
26
26
|
simplecov (0.9.1)
|
27
27
|
docile (~> 1.1.0)
|
28
28
|
multi_json (~> 1.0)
|
@@ -36,8 +36,8 @@ PLATFORMS
|
|
36
36
|
DEPENDENCIES
|
37
37
|
appraisal
|
38
38
|
barber!
|
39
|
-
ember-source (~> 1.9.0
|
40
|
-
mocha (~> 1.0
|
39
|
+
ember-source (~> 1.9.0)
|
40
|
+
mocha (~> 1.0)
|
41
41
|
rake
|
42
42
|
simplecov
|
43
43
|
therubyrhino
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
barber (0.
|
4
|
+
barber (0.5.0)
|
5
5
|
ember-source
|
6
6
|
execjs
|
7
7
|
handlebars-source (>= 1.0.0.rc.4)
|
@@ -19,10 +19,10 @@ GEM
|
|
19
19
|
execjs (2.2.2)
|
20
20
|
handlebars-source (1.0.0.rc4)
|
21
21
|
metaclass (0.0.4)
|
22
|
-
mocha (1.
|
22
|
+
mocha (1.1.0)
|
23
23
|
metaclass (~> 0.0.1)
|
24
24
|
multi_json (1.10.1)
|
25
|
-
rake (10.
|
25
|
+
rake (10.4.2)
|
26
26
|
simplecov (0.9.1)
|
27
27
|
docile (~> 1.1.0)
|
28
28
|
multi_json (~> 1.0)
|
@@ -37,7 +37,7 @@ DEPENDENCIES
|
|
37
37
|
appraisal
|
38
38
|
barber!
|
39
39
|
ember-source (= 1.0.0.rc4)
|
40
|
-
mocha (~> 1.0
|
40
|
+
mocha (~> 1.0)
|
41
41
|
rake
|
42
42
|
simplecov
|
43
43
|
therubyrhino
|
@@ -2,13 +2,15 @@ var exports = this.exports || {};
|
|
2
2
|
var module = this.module || {exports: null};
|
3
3
|
|
4
4
|
function require() {
|
5
|
-
// ember-template-compiler only requires
|
5
|
+
// ember-template-compiler only requires which 'handlebars' or 'htmlbars'.
|
6
6
|
return module.exports || Handlebars;
|
7
7
|
}
|
8
8
|
|
9
9
|
// Precompiler
|
10
10
|
var Barber = {
|
11
11
|
precompile: function(string) {
|
12
|
-
|
12
|
+
var Compiler = exports.precompile ? exports : require(/* htmlbars */);
|
13
|
+
|
14
|
+
return Compiler.precompile(string, false).toString();
|
13
15
|
}
|
14
16
|
};
|
data/lib/barber/version.rb
CHANGED
@@ -4,11 +4,11 @@ class EmberPrecompilerTest < MiniTest::Unit::TestCase
|
|
4
4
|
def test_calls_the_ember_handlebars_precompiler
|
5
5
|
result = compile "Hello {{name}}"
|
6
6
|
assert result
|
7
|
-
assert_match /data\.buffer/, result
|
7
|
+
assert_match /data\.buffer|isHTMLBars: true/, result
|
8
8
|
end
|
9
9
|
|
10
10
|
def test_is_a_precompiler
|
11
|
-
assert Barber::Ember::Precompiler < Barber::Precompiler,
|
11
|
+
assert Barber::Ember::Precompiler < Barber::Precompiler,
|
12
12
|
"Ember precompile should inherit from Barber::Precompiler"
|
13
13
|
end
|
14
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tchak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: execjs
|
@@ -125,8 +125,10 @@ files:
|
|
125
125
|
- README.md
|
126
126
|
- Rakefile
|
127
127
|
- barber.gemspec
|
128
|
-
- gemfiles/ember_1.
|
129
|
-
- gemfiles/ember_1.
|
128
|
+
- gemfiles/ember_1.10.gemfile
|
129
|
+
- gemfiles/ember_1.10.gemfile.lock
|
130
|
+
- gemfiles/ember_1.8.gemfile
|
131
|
+
- gemfiles/ember_1.8.gemfile.lock
|
130
132
|
- gemfiles/ember_1.9.gemfile
|
131
133
|
- gemfiles/ember_1.9.gemfile.lock
|
132
134
|
- gemfiles/ember_rc4.gemfile
|