haml_coffee_assets 1.1.3 → 1.2.0
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/js/hamlcoffee.js
CHANGED
@@ -613,7 +613,7 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
|
|
613
613
|
if (this.options.customHtmlEscape) {
|
614
614
|
fn += "$e = " + this.options.customHtmlEscape + "\n";
|
615
615
|
} else {
|
616
|
-
fn += "$e = (text, escape) ->\n \"\#{ text }\"\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\'/g, '
|
616
|
+
fn += "$e = (text, escape) ->\n \"\#{ text }\"\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\'/g, ''')\n .replace(/\"/g, '"')\n";
|
617
617
|
}
|
618
618
|
}
|
619
619
|
if (code.indexOf('$c') !== -1) {
|
@@ -1149,7 +1149,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
|
|
1149
1149
|
tag: tag.tag,
|
1150
1150
|
id: id,
|
1151
1151
|
classes: classes,
|
1152
|
-
text: tag.text,
|
1152
|
+
text: escapeQuotes(tag.text),
|
1153
1153
|
attributes: attributes,
|
1154
1154
|
assignment: tag.assignment
|
1155
1155
|
};
|
@@ -1296,7 +1296,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
|
|
1296
1296
|
keys = /\(\s*([-\w]+[\w:-]*\w?)\s*=|\s+([-\w]+[\w:-]*\w?)\s*=|\(\s*('\w+[\w:-]*\w?')\s*=|\s+('\w+[\w:-]*\w?')\s*=|\(\s*("\w+[\w:-]*\w?")\s*=|\s+("\w+[\w:-]*\w?")\s*=/g;
|
1297
1297
|
break;
|
1298
1298
|
case '{':
|
1299
|
-
keys = /[{,]\s*(\w+[\w:-]*\w?)
|
1299
|
+
keys = /[{,]\s*(\w+[\w:-]*\w?)\s*:|[{,]\s*('[-\w]+[\w:-]*\w?')\s*:|[{,]\s*("[-\w]+[\w:-]*\w?")\s*:|[{,]\s*:(\w+[\w:-]*\w?)\s*=>|[{,]\s*:?'([-\w]+[\w:-]*\w?)'\s*=>|[{,]\s*:?"([-\w]+[\w:-]*\w?)"\s*=>/g;
|
1300
1300
|
}
|
1301
1301
|
pairs = exp.split(keys).filter(Boolean);
|
1302
1302
|
inDataAttribute = false;
|
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: 1.
|
4
|
+
version: 1.2.0
|
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-07-
|
12
|
+
date: 2012-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: execjs
|
@@ -107,9 +107,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
107
|
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
|
-
segments:
|
111
|
-
- 0
|
112
|
-
hash: 3333821874032927419
|
113
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
111
|
none: false
|
115
112
|
requirements:
|