handlebars-source 2.0.0.beta.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handlebars-source might be problematic. Click here for more details.

Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/handlebars.js +60 -8
  3. data/handlebars.runtime.js +60 -8
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 773c6c002a03148e1170aebc616b08f3fd55f366
4
- data.tar.gz: 430030831ffbd105b12f91b06dd3eeb390a76edc
3
+ metadata.gz: 2c023c795b44ec907e1084d8be92ba603bcca6e4
4
+ data.tar.gz: 4743cf4f42f5dbc7138b86f8c19e30d9b034424d
5
5
  SHA512:
6
- metadata.gz: 41e79a8c477fbc0645eb26b6aa669e1fde4ea5902f7e292be0e53ae90f42fabbcada14cda8a47ae9885d873c32a68a7c6be05bd52b9478ae6d039d37f9feb2fe
7
- data.tar.gz: 9a8923a8c869ccd11a4754324eb03ada4a73febac4fba7f4396feb20d752f5064d5d0ccf167a24ba8d3e4c2e348d0ddca92ea1e45f6584e43fadfff7498db8ff
6
+ metadata.gz: 37716ab389d7dc6c3cb2de9d849a244604edc873e24a396dd2a42c7cb17c85f7ceb9e31c57930d549f841edd2575138914b30af7422033eb06529c32f5fd399c
7
+ data.tar.gz: ce36d0760074f66e1a9665bacc37378d4c53c7002a6752cf654e1ed13b37458f89cb0a6c75b8688d6ba834fe9d675fbb45ad622e47801a5318fae5caaaf93227
@@ -1,6 +1,58 @@
1
1
  /*!
2
2
 
3
- handlebars v2.0.0-beta.1
3
+ handlebars v2.0.0
4
+
5
+ Copyright (C) 2011-2014 by Yehuda Katz
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
24
+
25
+ @license
26
+ */
27
+ /*!
28
+
29
+ handlebars v2.0.0
30
+
31
+ Copyright (C) 2011-2014 by Yehuda Katz
32
+
33
+ Permission is hereby granted, free of charge, to any person obtaining a copy
34
+ of this software and associated documentation files (the "Software"), to deal
35
+ in the Software without restriction, including without limitation the rights
36
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37
+ copies of the Software, and to permit persons to whom the Software is
38
+ furnished to do so, subject to the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be included in
41
+ all copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
49
+ THE SOFTWARE.
50
+
51
+ @license
52
+ */
53
+ /*!
54
+
55
+ handlebars v2.0.0
4
56
 
5
57
  Copyright (C) 2011-2014 by Yehuda Katz
6
58
 
@@ -186,7 +238,7 @@ var __module2__ = (function(__dependency1__, __dependency2__) {
186
238
  var Utils = __dependency1__;
187
239
  var Exception = __dependency2__;
188
240
 
189
- var VERSION = "2.0.0-beta.1";
241
+ var VERSION = "2.0.0";
190
242
  __exports__.VERSION = VERSION;var COMPILER_REVISION = 6;
191
243
  __exports__.COMPILER_REVISION = COMPILER_REVISION;
192
244
  var REVISION_CHANGES = {
@@ -228,11 +280,11 @@ var __module2__ = (function(__dependency1__, __dependency2__) {
228
280
  delete this.helpers[name];
229
281
  },
230
282
 
231
- registerPartial: function(name, str) {
283
+ registerPartial: function(name, partial) {
232
284
  if (toString.call(name) === objectType) {
233
285
  Utils.extend(this.partials, name);
234
286
  } else {
235
- this.partials[name] = str;
287
+ this.partials[name] = partial;
236
288
  }
237
289
  },
238
290
  unregisterPartial: function(name) {
@@ -374,9 +426,9 @@ var __module2__ = (function(__dependency1__, __dependency2__) {
374
426
  }
375
427
  });
376
428
 
377
- instance.registerHelper('log', function(context, options) {
429
+ instance.registerHelper('log', function(message, options) {
378
430
  var level = options.data && options.data.level != null ? parseInt(options.data.level, 10) : 1;
379
- instance.log(level, context);
431
+ instance.log(level, message);
380
432
  });
381
433
 
382
434
  instance.registerHelper('lookup', function(obj, field) {
@@ -395,11 +447,11 @@ var __module2__ = (function(__dependency1__, __dependency2__) {
395
447
  level: 3,
396
448
 
397
449
  // can be overridden in the host environment
398
- log: function(level, obj) {
450
+ log: function(level, message) {
399
451
  if (logger.level <= level) {
400
452
  var method = logger.methodMap[level];
401
453
  if (typeof console !== 'undefined' && console[method]) {
402
- console[method].call(console, obj);
454
+ console[method].call(console, message);
403
455
  }
404
456
  }
405
457
  }
@@ -1,6 +1,58 @@
1
1
  /*!
2
2
 
3
- handlebars v2.0.0-beta.1
3
+ handlebars v2.0.0
4
+
5
+ Copyright (C) 2011-2014 by Yehuda Katz
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
24
+
25
+ @license
26
+ */
27
+ /*!
28
+
29
+ handlebars v2.0.0
30
+
31
+ Copyright (C) 2011-2014 by Yehuda Katz
32
+
33
+ Permission is hereby granted, free of charge, to any person obtaining a copy
34
+ of this software and associated documentation files (the "Software"), to deal
35
+ in the Software without restriction, including without limitation the rights
36
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37
+ copies of the Software, and to permit persons to whom the Software is
38
+ furnished to do so, subject to the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be included in
41
+ all copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
49
+ THE SOFTWARE.
50
+
51
+ @license
52
+ */
53
+ /*!
54
+
55
+ handlebars v2.0.0
4
56
 
5
57
  Copyright (C) 2011-2014 by Yehuda Katz
6
58
 
@@ -186,7 +238,7 @@ var __module1__ = (function(__dependency1__, __dependency2__) {
186
238
  var Utils = __dependency1__;
187
239
  var Exception = __dependency2__;
188
240
 
189
- var VERSION = "2.0.0-beta.1";
241
+ var VERSION = "2.0.0";
190
242
  __exports__.VERSION = VERSION;var COMPILER_REVISION = 6;
191
243
  __exports__.COMPILER_REVISION = COMPILER_REVISION;
192
244
  var REVISION_CHANGES = {
@@ -228,11 +280,11 @@ var __module1__ = (function(__dependency1__, __dependency2__) {
228
280
  delete this.helpers[name];
229
281
  },
230
282
 
231
- registerPartial: function(name, str) {
283
+ registerPartial: function(name, partial) {
232
284
  if (toString.call(name) === objectType) {
233
285
  Utils.extend(this.partials, name);
234
286
  } else {
235
- this.partials[name] = str;
287
+ this.partials[name] = partial;
236
288
  }
237
289
  },
238
290
  unregisterPartial: function(name) {
@@ -374,9 +426,9 @@ var __module1__ = (function(__dependency1__, __dependency2__) {
374
426
  }
375
427
  });
376
428
 
377
- instance.registerHelper('log', function(context, options) {
429
+ instance.registerHelper('log', function(message, options) {
378
430
  var level = options.data && options.data.level != null ? parseInt(options.data.level, 10) : 1;
379
- instance.log(level, context);
431
+ instance.log(level, message);
380
432
  });
381
433
 
382
434
  instance.registerHelper('lookup', function(obj, field) {
@@ -395,11 +447,11 @@ var __module1__ = (function(__dependency1__, __dependency2__) {
395
447
  level: 3,
396
448
 
397
449
  // can be overridden in the host environment
398
- log: function(level, obj) {
450
+ log: function(level, message) {
399
451
  if (logger.level <= level) {
400
452
  var method = logger.methodMap[level];
401
453
  if (typeof console !== 'undefined' && console[method]) {
402
- console[method].call(console, obj);
454
+ console[method].call(console, message);
403
455
  }
404
456
  }
405
457
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handlebars-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-26 00:00:00.000000000 Z
11
+ date: 2014-09-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Handlebars.js source code wrapper for (pre)compilation gems.
14
14
  email:
@@ -35,9 +35,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
35
35
  version: '0'
36
36
  required_rubygems_version: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>'
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3.1
40
+ version: '0'
41
41
  requirements: []
42
42
  rubyforge_project:
43
43
  rubygems_version: 2.0.3