barber 0.11.2 → 0.11.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c521fa1082b9333cc4cb2dac57a13bb871e63930
4
- data.tar.gz: 10ca916a5301f5d23c0ed60b602aeda55b3d28e0
3
+ metadata.gz: f105ed8cb181968c76024cae4db1e2d8baccfcbe
4
+ data.tar.gz: 0ab44522c41de3e3c9d3f7346de1fef89122e628
5
5
  SHA512:
6
- metadata.gz: 36a842d2dd597e714fe545f7ed94c62e8292847eb45c92e73b950849aa8847a92e7f37503ad6ae914915bb043628fb4204e3148641f82197f91eb0381083efa0
7
- data.tar.gz: a0f6f5d41e9ff059aa96b8739cfd0e4e7f7e8cbd34767a5f9577b8304f8a81d247b1a625f51f665644ae9973f7486fbd055cdf07ab9bd05a33eb8e8731380a86
6
+ metadata.gz: bbb74374f539766ddf3422ebc77e20c65803e44fb270a5f4ed57b79513ffef4c92020c42a4c479e56312877b7ed52919907036c6592e6a0b65369dd59d394bee
7
+ data.tar.gz: 39a128565edb1307698f79cd2b318aaa4b7bb8d7dae4c228647fa5ca4f2d473fd370ec98d54ca76be843cf32f645c7fb172bac3691de4def04aa94d7e0bf5ec5
@@ -3,10 +3,12 @@ sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
5
  - "2.1.10"
6
- - "2.2.5"
7
- - "2.3.1"
8
- - jruby-9.0.5.0
9
- - rbx-2
6
+ - "2.2.6"
7
+ - "2.3.3"
8
+ - "2.4.0"
9
+ - jruby
10
+ before_install:
11
+ - gem update bundler
10
12
  env:
11
13
  matrix:
12
14
  - EMBER_SOURCE_VERSION="~> 1.0.0" # Uses handlebars-source 1.0.12
@@ -14,7 +16,7 @@ env:
14
16
  - EMBER_SOURCE_VERSION="~> 1.9.0" # Uses handlebars-source 2.0.0
15
17
  - EMBER_SOURCE_VERSION="~> 1.10.0" # Uses HTMLBars
16
18
  - EMBER_SOURCE_VERSION="~> 1.13.0" # The latest Ember.js 1.x
17
- - EMBER_SOURCE_VERSION="~> 2.2.0" # The latest Ember.js 2.x
19
+ - EMBER_SOURCE_VERSION="~> 2.12.0" # The latest Ember.js 2.x
18
20
  - EMBER_SOURCE_VERSION="~> 2.0"
19
21
  HANDLEBARS_SOURCE_VERSION="~> 3.0.0" # Uses handlebars-source 3.0.x
20
22
  - EMBER_SOURCE_VERSION="~> 2.0"
@@ -107,6 +107,11 @@ if (typeof window === 'undefined') {
107
107
  if (typeof self === 'undefined') {
108
108
  self = this;
109
109
  };
110
+ // Workaround for `ExecJS::RubyRhinoRuntime`. It throws an error: `Invalid JavaScript value of type org.mozilla.javascript.MemberBox` on inherit `Error`.
111
+ if (Object.defineProperty) {
112
+ Object.defineProperty(Error, 'stackTraceLimit', {configurable: false});
113
+ Object.defineProperty(Error, 'prepareStackTrace', {configurable: false});
114
+ }
110
115
  #{sources.map(&:read).join("\n;\n")}
111
116
  SOURCE
112
117
  end
@@ -1,3 +1,3 @@
1
1
  module Barber
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
@@ -4,7 +4,7 @@ class EmberPrecompilerTest < Minitest::Test
4
4
  def test_calls_the_ember_handlebars_precompiler
5
5
  result = compile "Hello {{name}}"
6
6
  assert result
7
- assert_match %r{data\.buffer|isHTMLBars: true|"revision": "Ember@}, result
7
+ assert_match %r{data\.buffer|isHTMLBars: true|"revision": "Ember@|\\"statements\\"}, result
8
8
  end
9
9
 
10
10
  def test_is_a_precompiler
@@ -40,7 +40,7 @@ class EmberPrecompilerTest < Minitest::Test
40
40
  end
41
41
  end
42
42
 
43
- assert_match %r{function\(\)}, custom_compiler.compile('{{hello}}')
43
+ assert_match %r{function\(\)|\\"statements\\"}, custom_compiler.compile('{{hello}}')
44
44
  end
45
45
 
46
46
  private
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.11.2
4
+ version: 0.11.3
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: 2016-07-30 00:00:00.000000000 Z
12
+ date: 2017-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: execjs
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.5.1
172
+ rubygems_version: 2.6.10
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Handlebars precompilation toolkit