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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51857b58465480743853bd9eae34db7137ec193f
4
- data.tar.gz: e569861d9b7325daa414f225bef5d15d796ebf83
3
+ metadata.gz: c7b27c58994c842d2f3285cbb23f76a59b788553
4
+ data.tar.gz: a4da596576e3975392b148558c5646929a09e95f
5
5
  SHA512:
6
- metadata.gz: 740e52d45fb0fa5812644a597aca9e572a550625689afc53c1daf7b5d1f98cb55c799c196c66ef7a5f0070330a43ad7f2588c08989bcdefe20c38bf7a950e944
7
- data.tar.gz: 2f94e23a3796b19912b07d7479b62f39fed62b5c24d74a253f601e7e20e733660d6bddddad93a414640f4643a6922339b67c9d64f212391de128f11a0d7a4b1d
6
+ metadata.gz: 02b17330cfa9678bd3ff9975291c685a1402e8f10feb4fe4d218d4883dd4e1145d4e203c9c75c88676c270b4e06c50cf0bf2df0a968097f7f119affc4b093f9e
7
+ data.tar.gz: 10a1e91d5db01d3d43dd0d9908b0f5d22b6422f4b53b0cdfe58417057132e2e5cf2c86fbed2a9103d6c32064ca69bad8b632a376773d8b5e4906756adefaac01
@@ -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 e.message == 'cannot load such file -- handlebars/source'
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
@@ -1,3 +1,3 @@
1
1
  module Barber
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
@@ -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/, result
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.0
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-04-01 00:00:00.000000000 Z
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.5
192
+ rubygems_version: 2.4.7
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Handlebars precompilation toolkit