mustache-js-rails 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/mustache-js-rails/version.rb +1 -1
- data/vendor/assets/javascripts/mustache.js +29 -27
- 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: 0a868144098b1b29576f6ebcbacbc081203e0e96
|
4
|
+
data.tar.gz: 4923928c3d85ade67acd4a146d051f450c61d19e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
@@ -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
|
'>': '>',
|
64
64
|
'"': '"',
|
65
65
|
"'": ''',
|
66
|
-
'/': '/'
|
66
|
+
'/': '/',
|
67
|
+
'`': '`',
|
68
|
+
'=': '='
|
67
69
|
};
|
68
70
|
|
69
71
|
function escapeHtml (string) {
|
70
|
-
return String(string).replace(/[&<>"'
|
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
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
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
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
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
|
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.
|
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-
|
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.
|
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
|