barber 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -5
- data/lib/barber/precompiler.rb +5 -0
- data/lib/barber/version.rb +1 -1
- data/test/ember/precompiler_test.rb +2 -2
- 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: f105ed8cb181968c76024cae4db1e2d8baccfcbe
|
4
|
+
data.tar.gz: 0ab44522c41de3e3c9d3f7346de1fef89122e628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbb74374f539766ddf3422ebc77e20c65803e44fb270a5f4ed57b79513ffef4c92020c42a4c479e56312877b7ed52919907036c6592e6a0b65369dd59d394bee
|
7
|
+
data.tar.gz: 39a128565edb1307698f79cd2b318aaa4b7bb8d7dae4c228647fa5ca4f2d473fd370ec98d54ca76be843cf32f645c7fb172bac3691de4def04aa94d7e0bf5ec5
|
data/.travis.yml
CHANGED
@@ -3,10 +3,12 @@ sudo: false
|
|
3
3
|
cache: bundler
|
4
4
|
rvm:
|
5
5
|
- "2.1.10"
|
6
|
-
- "2.2.
|
7
|
-
- "2.3.
|
8
|
-
-
|
9
|
-
-
|
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.
|
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"
|
data/lib/barber/precompiler.rb
CHANGED
@@ -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
|
data/lib/barber/version.rb
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
172
|
+
rubygems_version: 2.6.10
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Handlebars precompilation toolkit
|