haml_coffee_assets 0.8.5 → 0.8.6
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.
- data/lib/haml_coffee_assets/version.rb +1 -1
- data/lib/js/haml-coffee.js +4 -2
- metadata +2 -2
data/lib/js/haml-coffee.js
CHANGED
|
@@ -904,7 +904,7 @@ require.define("/util/text.js", function (require, module, exports, __dirname, _
|
|
|
904
904
|
},
|
|
905
905
|
escapeQuotes: function(text) {
|
|
906
906
|
if (!text) return '';
|
|
907
|
-
return text.replace(/"/g, '\\"');
|
|
907
|
+
return text.replace(/"/g, '\\"').replace(/\\\\\"/g, '"');
|
|
908
908
|
},
|
|
909
909
|
unescapeQuotes: function(text) {
|
|
910
910
|
if (!text) return '';
|
|
@@ -1195,8 +1195,10 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
|
|
|
1195
1195
|
_ref = tokens.classes;
|
|
1196
1196
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
|
1197
1197
|
klass = _ref[_i];
|
|
1198
|
-
if (interpolation = klass.match(
|
|
1198
|
+
if (interpolation = klass.match(/^#{(.*)}$/)) {
|
|
1199
1199
|
classes += "(" + interpolation[1] + "),";
|
|
1200
|
+
} else if (interpolation = klass.match(/#{(.*)}/)) {
|
|
1201
|
+
classes += "\\\"" + klass + "\\\"";
|
|
1200
1202
|
} else {
|
|
1201
1203
|
classes += "'" + klass + "',";
|
|
1202
1204
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: haml_coffee_assets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-04-
|
|
12
|
+
date: 2012-04-30 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: execjs
|