handlebars_assets 0.20.0 → 0.20.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: 61476ba19cae6d7f2e112f90cc23cb16669d595a
4
- data.tar.gz: 899f7b75d8f262b4e50bd4c39b5a76aa4e63b273
3
+ metadata.gz: 4384395fc4ee4197451cbc31b94b7dedbb4c0b06
4
+ data.tar.gz: c2d75643bbb557ff663e6193bfe22dc1e97e468c
5
5
  SHA512:
6
- metadata.gz: 7e7d583045da1e5061806e2912e4929a178a7e5ddb1d7546f094d3fd59d9b9e2911e68901ecc2572630177da9b1f744d8cd8e7ad09ec16ca9074166b5253fe37
7
- data.tar.gz: beea76a7f73c84731bad5f74de8a7e627f73cb3128bf281c845f0fc816fe3d8f0b7533ac4a781f5e929f6ea455da90eee46e0461feba6b1e55b70990638b6b8b
6
+ metadata.gz: d70f5ee4ab2d923c0b3ba05b537dc131e75f8bf1845d3549ddfa6f70747b38897975b0e93313ea1071c4eb125cbe4e7f78790a0516fee937965e09e80f38706d
7
+ data.tar.gz: fbf7c27945ca12331c2bf023408c6ca13ab1d0aa6f7f96c785f2ab1fee3d8a8dea594c213eed3bc111a6cc362877219d590a1d3679e47a6a30b9dd9ab7e21715
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.20.1 (2015-02-24)
2
+
3
+ * Actually revert to native HB.js
4
+
1
5
  ## 0.20 (2015-02-23)
2
6
 
3
7
  * Fix issues with window object, revert to native HB.js
@@ -24,8 +24,6 @@ module HandlebarsAssets
24
24
  append_patch(patch_file)
25
25
  end
26
26
  end
27
- # HACK/workaround because of invalid wrapper by handlebars v3.0.0
28
- self.source += """if (typeof window === 'undefined') { this.window = {}; }"""
29
27
  source
30
28
  end
31
29
 
@@ -34,7 +32,7 @@ module HandlebarsAssets
34
32
  end
35
33
 
36
34
  def source
37
- @source ||= path.read
35
+ @source ||= "if (!window) { var window = {}; }\n#{path.read}"
38
36
  end
39
37
 
40
38
  def patch_path
@@ -1,3 +1,3 @@
1
1
  module HandlebarsAssets
2
- VERSION = "0.20.0"
2
+ VERSION = "0.20.1"
3
3
  end
@@ -25,10 +25,6 @@ THE SOFTWARE.
25
25
  @license
26
26
  */
27
27
  /* exported Handlebars */
28
- if (!window) {
29
- var window = {};
30
- }
31
-
32
28
  (function (root, factory) {
33
29
  if (typeof define === 'function' && define.amd) {
34
30
  define([], factory);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handlebars_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs