barber 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/barber/precompiler.rb +1 -1
- data/lib/barber/version.rb +1 -1
- data/test/ember/precompiler_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7b27c58994c842d2f3285cbb23f76a59b788553
|
4
|
+
data.tar.gz: a4da596576e3975392b148558c5646929a09e95f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02b17330cfa9678bd3ff9975291c685a1402e8f10feb4fe4d218d4883dd4e1145d4e203c9c75c88676c270b4e06c50cf0bf2df0a968097f7f119affc4b093f9e
|
7
|
+
data.tar.gz: 10a1e91d5db01d3d43dd0d9908b0f5d22b6422f4b53b0cdfe58417057132e2e5cf2c86fbed2a9103d6c32064ca69bad8b632a376773d8b5e4906756adefaac01
|
data/lib/barber/precompiler.rb
CHANGED
@@ -103,7 +103,7 @@ if (typeof window === 'undefined') {
|
|
103
103
|
def handlebars_available?
|
104
104
|
require "handlebars/source" # handlebars precompilation is optional feature.
|
105
105
|
rescue LoadError => e
|
106
|
-
raise e unless
|
106
|
+
raise e unless ['cannot load such file -- handlebars/source', 'no such file to load -- handlebars/source'].include?(e.message)
|
107
107
|
ensure
|
108
108
|
return !!defined?(Handlebars::Source)
|
109
109
|
end
|
data/lib/barber/version.rb
CHANGED
@@ -4,7 +4,7 @@ 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|isHTMLBars: true
|
7
|
+
assert_match /data\.buffer|isHTMLBars: true|"revision": "Ember@/, result
|
8
8
|
end
|
9
9
|
|
10
10
|
def test_is_a_precompiler
|
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.9.
|
4
|
+
version: 0.9.1
|
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: 2015-
|
12
|
+
date: 2015-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: execjs
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
191
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.4.
|
192
|
+
rubygems_version: 2.4.7
|
193
193
|
signing_key:
|
194
194
|
specification_version: 4
|
195
195
|
summary: Handlebars precompilation toolkit
|