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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62be6072a62e7b509024470d438cb1fe9349d97d
4
- data.tar.gz: b3511bbd6bc16aceadd42dcb62eeb914b0137504
3
+ metadata.gz: a38a106b33feac920e7c648fbad7bb24211cb156
4
+ data.tar.gz: 5d54053e5d0b0fd65804cc97b63130f6583fa475
5
5
  SHA512:
6
- metadata.gz: 86666693c3ade779b29f0717dbad6d5891d04b5bd60f2955e575e2791ff88963b2151cfd922ea896b6e26fd0fe594ea69855e7e7e98c84d987754cdf3ce6c597
7
- data.tar.gz: 946d257518463a3157753f17d592faf42ef8ae0ced12ecafdf63d6ebeb09ecb7ae973782267102631971e287cbd316b08ed7d9ad47916e9abfafa21c4201ffb2
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.7" do
6
+ appraise "ember-1.8" do
7
7
  # Uses handlebars 1.3.0
8
- gem "ember-source", "1.7.0"
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.alpha.2"
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,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "therubyrhino", :platform => :jruby
6
+ gem "ember-source", "~> 1.10.0.beta.2"
7
+
8
+ gemspec :path => "../"
@@ -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
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "therubyrhino", :platform => :jruby
6
- gem "ember-source", "1.7.0"
6
+ gem "ember-source", "1.8.0"
7
7
 
8
8
  gemspec :path => "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- barber (0.4.2)
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.7.0)
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.0.0)
22
+ mocha (1.1.0)
23
23
  metaclass (~> 0.0.1)
24
24
  multi_json (1.10.1)
25
- rake (10.3.2)
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.7.0)
40
- mocha (~> 1.0.0)
39
+ ember-source (= 1.8.0)
40
+ mocha (~> 1.0)
41
41
  rake
42
42
  simplecov
43
43
  therubyrhino
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "therubyrhino", :platform => :jruby
6
- gem "ember-source", "~> 1.9.0.alpha.2"
6
+ gem "ember-source", "~> 1.9.0"
7
7
 
8
8
  gemspec :path => "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- barber (0.4.2)
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.0.alpha.2)
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.0.0)
22
+ mocha (1.1.0)
23
23
  metaclass (~> 0.0.1)
24
24
  multi_json (1.10.1)
25
- rake (10.3.2)
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.alpha.2)
40
- mocha (~> 1.0.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.2)
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.0.0)
22
+ mocha (1.1.0)
23
23
  metaclass (~> 0.0.1)
24
24
  multi_json (1.10.1)
25
- rake (10.3.2)
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.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('handlebars')
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
- return exports.precompile(string, false).toString();
12
+ var Compiler = exports.precompile ? exports : require(/* htmlbars */);
13
+
14
+ return Compiler.precompile(string, false).toString();
13
15
  }
14
16
  };
@@ -1,3 +1,3 @@
1
1
  module Barber
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -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.5.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-10-22 00:00:00.000000000 Z
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.7.gemfile
129
- - gemfiles/ember_1.7.gemfile.lock
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