mustache-js-rails 2.0.2 → 2.0.3

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: b25c0da8f18ce17851e096bd6eecfbaa8ceb1f45
4
- data.tar.gz: 9bc7c79f028f1d3f37aa4897f663d1d9d054deff
3
+ metadata.gz: 0a868144098b1b29576f6ebcbacbc081203e0e96
4
+ data.tar.gz: 4923928c3d85ade67acd4a146d051f450c61d19e
5
5
  SHA512:
6
- metadata.gz: 9362cc78e65c181587542d8ff47364331d8428208e6c406eb02fde4da2a38717c0aa664fb305f6a6c332d14ebc07f0c44a6fb1d60a29c70604c223bf52581cda
7
- data.tar.gz: 7ef519e3c8c5f0ed659aa8dc878f9c8fab3b078ee2b98c61ee46d4c3f0d8011cac55c67e61322e3f4d8d7d1d5c002da9c7022c0b508d533f8ca34a543bf35ecb
6
+ metadata.gz: 16514e928cb9a79f1e6e87776d9001935129bae5658ef19761a44471a756ae5756bcdf35c4ce43f35f0f09b31e0247d67af201591aa81d401df3d88e08c8c9ac
7
+ data.tar.gz: 1b276a39a51501928360791c62104b09fed05cb9afd6fa3e4fe983d5daff95381e1e2b581dbf306565bdea161ebcb8385656ee0d43de9ae20330d7a94a3271a0
data/README.md CHANGED
@@ -5,7 +5,7 @@ and [mustache jQuery integration](https://github.com/jonnyreeves/jquery-Mustache
5
5
 
6
6
  Integrated versions are:
7
7
 
8
- * mustache.js - <b id="mustache-js-version">2.1.3</b>
8
+ * mustache.js - <b id="mustache-js-version">2.2.1</b>
9
9
  * jQuery mustache - <b id="jquery-mustache-js-version">0.2.8</b>
10
10
 
11
11
  ### Installation
@@ -1,3 +1,3 @@
1
1
  module MustacheJsRails
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
@@ -12,7 +12,7 @@
12
12
  define(['exports'], factory); // AMD
13
13
  } else {
14
14
  global.Mustache = {};
15
- factory(Mustache); // script, wsh, asp
15
+ factory(global.Mustache); // script, wsh, asp
16
16
  }
17
17
  }(this, function mustacheFactory (mustache) {
18
18
 
@@ -63,11 +63,13 @@
63
63
  '>': '&gt;',
64
64
  '"': '&quot;',
65
65
  "'": '&#39;',
66
- '/': '&#x2F;'
66
+ '/': '&#x2F;',
67
+ '`': '&#x60;',
68
+ '=': '&#x3D;'
67
69
  };
68
70
 
69
71
  function escapeHtml (string) {
70
- return String(string).replace(/[&<>"'\/]/g, function fromEntityMap (s) {
72
+ return String(string).replace(/[&<>"'`=\/]/g, function fromEntityMap (s) {
71
73
  return entityMap[s];
72
74
  });
73
75
  }
@@ -267,19 +269,19 @@
267
269
  token = tokens[i];
268
270
 
269
271
  switch (token[0]) {
270
- case '#':
271
- case '^':
272
- collector.push(token);
273
- sections.push(token);
274
- collector = token[4] = [];
275
- break;
276
- case '/':
277
- section = sections.pop();
278
- section[5] = token[2];
279
- collector = sections.length > 0 ? sections[sections.length - 1][4] : nestedTokens;
280
- break;
281
- default:
282
- collector.push(token);
272
+ case '#':
273
+ case '^':
274
+ collector.push(token);
275
+ sections.push(token);
276
+ collector = token[4] = [];
277
+ break;
278
+ case '/':
279
+ section = sections.pop();
280
+ section[5] = token[2];
281
+ collector = sections.length > 0 ? sections[sections.length - 1][4] : nestedTokens;
282
+ break;
283
+ default:
284
+ collector.push(token);
283
285
  }
284
286
  }
285
287
 
@@ -329,16 +331,16 @@
329
331
  var index = this.tail.search(re), match;
330
332
 
331
333
  switch (index) {
332
- case -1:
333
- match = this.tail;
334
- this.tail = '';
335
- break;
336
- case 0:
337
- match = '';
338
- break;
339
- default:
340
- match = this.tail.substring(0, index);
341
- this.tail = this.tail.substring(index);
334
+ case -1:
335
+ match = this.tail;
336
+ this.tail = '';
337
+ break;
338
+ case 0:
339
+ match = '';
340
+ break;
341
+ default:
342
+ match = this.tail.substring(0, index);
343
+ this.tail = this.tail.substring(index);
342
344
  }
343
345
 
344
346
  this.pos += match.length;
@@ -565,7 +567,7 @@
565
567
  };
566
568
 
567
569
  mustache.name = 'mustache.js';
568
- mustache.version = '2.1.3';
570
+ mustache.version = '2.2.1';
569
571
  mustache.tags = [ '{{', '}}' ];
570
572
 
571
573
  // All high-level mustache.* functions use this writer.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustache-js-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-07 00:00:00.000000000 Z
11
+ date: 2015-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project: mustache-js-rails
71
- rubygems_version: 2.4.6
71
+ rubygems_version: 2.4.5.1
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: mustache.js and jQuery.mustache.js for Rails 3.1+ asset pipeline