barber 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +25 -16
- data/lib/barber/precompiler.rb +25 -7
- data/lib/barber/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '028770b1db2649ea687de74a3840e55689f20963'
|
4
|
+
data.tar.gz: 0fbe1ea7a7b9b1fd145a8c7541590fd8d9e07817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aeaf65bdf15a1e5b86ab98d0b4db16221860cbb9208b83c9aac6dd3821b3b26cfc0b2b8478fcf8da2fb3e5f827f8cae84ee6454f4733f99074e60a994a02449
|
7
|
+
data.tar.gz: 24e1627f641d7d015927ad6edcccef02df69adb62136a6ee227f8524d8ce0d748db9abacc2a074c9aa3554d566f44bd520c0a24b1a53e15b5c65517fbe86abfc
|
data/.travis.yml
CHANGED
@@ -2,22 +2,31 @@ language: ruby
|
|
2
2
|
sudo: false
|
3
3
|
cache: bundler
|
4
4
|
rvm:
|
5
|
-
- "2.
|
6
|
-
- "2.
|
7
|
-
- "2.
|
8
|
-
- "2.
|
9
|
-
- jruby
|
5
|
+
- "2.2.9"
|
6
|
+
- "2.3.6"
|
7
|
+
- "2.4.3"
|
8
|
+
- "2.5.0"
|
10
9
|
before_install:
|
10
|
+
- gem update --system
|
11
11
|
- gem update bundler
|
12
12
|
env:
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
13
|
+
- EMBER_SOURCE_VERSION="~> 1.0.0" # Uses handlebars-source 1.0.12
|
14
|
+
- EMBER_SOURCE_VERSION="~> 1.8.0" # Uses handlebars-source 1.3.0
|
15
|
+
- EMBER_SOURCE_VERSION="~> 1.9.0" # Uses handlebars-source 2.0.0
|
16
|
+
- EMBER_SOURCE_VERSION="~> 1.10.0" # Uses HTMLBars
|
17
|
+
- EMBER_SOURCE_VERSION="~> 1.13.0" # The latest Ember.js 1.x
|
18
|
+
- EMBER_SOURCE_VERSION="~> 2.18.0" # The latest Ember.js 2.x
|
19
|
+
- EMBER_SOURCE_VERSION="~> 3.0.0.beta.2" # The latest Ember.js 3.x
|
20
|
+
- EMBER_SOURCE_VERSION="~> 2.0"
|
21
|
+
HANDLEBARS_SOURCE_VERSION="~> 3.0.0" # Uses handlebars-source 3.0.x
|
22
|
+
- EMBER_SOURCE_VERSION="~> 2.0"
|
23
|
+
HANDLEBARS_SOURCE_VERSION="~> 4.0.0" # Uses handlebars-source 4.0.x
|
24
|
+
matrix:
|
25
|
+
include:
|
26
|
+
# Ember 3 on jRuby doesn't work because Rhino doesn't support `WeakMap`. So we test on ember-source 1.x and 2.x.
|
27
|
+
- rvm: jruby-9.1.15.0
|
28
|
+
env:
|
29
|
+
- EMBER_SOURCE_VERSION="~> 1.13.0" # The latest Ember.js 1.x
|
30
|
+
- rvm: jruby-9.1.15.0
|
31
|
+
env:
|
32
|
+
- EMBER_SOURCE_VERSION="~> 2.18.0" # The latest Ember.js 1.x
|
data/lib/barber/precompiler.rb
CHANGED
@@ -38,7 +38,8 @@ module Barber
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def sources
|
41
|
-
sources = [
|
41
|
+
sources = []
|
42
|
+
sources << precompiler
|
42
43
|
sources << handlebars if self.class.handlebars_available?
|
43
44
|
sources
|
44
45
|
end
|
@@ -99,21 +100,38 @@ module Barber
|
|
99
100
|
end
|
100
101
|
|
101
102
|
def source
|
103
|
+
source_fixes + sources.map(&:read).join("\n;\n")
|
104
|
+
end
|
105
|
+
|
106
|
+
def source_fixes
|
107
|
+
shims = []
|
108
|
+
|
102
109
|
# hbs 3 has no reference to `window` and `self`.
|
103
|
-
<<-
|
110
|
+
shims << <<-JS
|
104
111
|
if (typeof window === 'undefined') {
|
105
112
|
window = this;
|
106
|
-
}
|
113
|
+
}
|
107
114
|
if (typeof self === 'undefined') {
|
108
115
|
self = this;
|
109
|
-
}
|
110
|
-
|
116
|
+
}
|
117
|
+
JS
|
118
|
+
|
119
|
+
# Workaround for `ExecJS::RubyRhinoRuntime`. It throws an error: `Invalid JavaScript value of type org.mozilla.javascript.MemberBox` on inherit `Error`.
|
120
|
+
shims << <<-JS
|
111
121
|
if (Object.defineProperty) {
|
112
122
|
Object.defineProperty(Error, 'stackTraceLimit', {configurable: false});
|
113
123
|
Object.defineProperty(Error, 'prepareStackTrace', {configurable: false});
|
114
124
|
}
|
115
|
-
|
116
|
-
|
125
|
+
JS
|
126
|
+
|
127
|
+
# Workaround for `ExecJS::RubyRhinoRuntime`. It has no `setTimeout` but backburner references `setTimeout`.
|
128
|
+
shims << <<-JS
|
129
|
+
if (typeof setTimeout === 'undefined') {
|
130
|
+
setTimeout = function(fn) { fn(); };
|
131
|
+
}
|
132
|
+
JS
|
133
|
+
|
134
|
+
shims.join("\n")
|
117
135
|
end
|
118
136
|
|
119
137
|
def handlebars_version
|
data/lib/barber/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,17 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tchak
|
8
8
|
- twinturbo
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: execjs
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
17
|
- - ">="
|
@@ -21,8 +20,9 @@ dependencies:
|
|
21
20
|
- - "<"
|
22
21
|
- !ruby/object:Gem::Version
|
23
22
|
version: '3'
|
24
|
-
|
23
|
+
name: execjs
|
25
24
|
prerelease: false
|
25
|
+
type: :runtime
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
@@ -32,7 +32,6 @@ dependencies:
|
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
|
-
name: ember-source
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - ">="
|
@@ -41,8 +40,9 @@ dependencies:
|
|
41
40
|
- - "<"
|
42
41
|
- !ruby/object:Gem::Version
|
43
42
|
version: '3'
|
44
|
-
|
43
|
+
name: ember-source
|
45
44
|
prerelease: false
|
45
|
+
type: :runtime
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
@@ -52,70 +52,70 @@ dependencies:
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '3'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
|
-
name: rake
|
56
55
|
requirement: !ruby/object:Gem::Requirement
|
57
56
|
requirements:
|
58
57
|
- - ">="
|
59
58
|
- !ruby/object:Gem::Version
|
60
59
|
version: '0'
|
61
|
-
|
60
|
+
name: rake
|
62
61
|
prerelease: false
|
62
|
+
type: :development
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
|
-
name: handlebars-source
|
70
69
|
requirement: !ruby/object:Gem::Requirement
|
71
70
|
requirements:
|
72
71
|
- - "<"
|
73
72
|
- !ruby/object:Gem::Version
|
74
73
|
version: '4.1'
|
75
|
-
|
74
|
+
name: handlebars-source
|
76
75
|
prerelease: false
|
76
|
+
type: :development
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "<"
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '4.1'
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
|
-
name: simplecov
|
84
83
|
requirement: !ruby/object:Gem::Requirement
|
85
84
|
requirements:
|
86
85
|
- - ">="
|
87
86
|
- !ruby/object:Gem::Version
|
88
87
|
version: '0'
|
89
|
-
|
88
|
+
name: simplecov
|
90
89
|
prerelease: false
|
90
|
+
type: :development
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
|
-
name: mocha
|
98
97
|
requirement: !ruby/object:Gem::Requirement
|
99
98
|
requirements:
|
100
99
|
- - "~>"
|
101
100
|
- !ruby/object:Gem::Version
|
102
101
|
version: '1.0'
|
103
|
-
|
102
|
+
name: mocha
|
104
103
|
prerelease: false
|
104
|
+
type: :development
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '1.0'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
|
-
name: minitest
|
112
111
|
requirement: !ruby/object:Gem::Requirement
|
113
112
|
requirements:
|
114
113
|
- - "~>"
|
115
114
|
- !ruby/object:Gem::Version
|
116
115
|
version: '5.0'
|
117
|
-
|
116
|
+
name: minitest
|
118
117
|
prerelease: false
|
118
|
+
type: :development
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
@@ -153,7 +153,7 @@ files:
|
|
153
153
|
homepage: https://github.com/tchak/barber
|
154
154
|
licenses: []
|
155
155
|
metadata: {}
|
156
|
-
post_install_message:
|
156
|
+
post_install_message:
|
157
157
|
rdoc_options: []
|
158
158
|
require_paths:
|
159
159
|
- lib
|
@@ -168,9 +168,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubyforge_project:
|
172
|
-
rubygems_version: 2.6.
|
173
|
-
signing_key:
|
171
|
+
rubyforge_project:
|
172
|
+
rubygems_version: 2.6.14
|
173
|
+
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Handlebars precompilation toolkit
|
176
176
|
test_files:
|