haml_coffee_assets 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module HamlCoffeeAssets
4
- VERSION = '0.8.5' unless defined?(HamlCoffeeAssets::VERSION)
4
+ VERSION = '0.8.6' unless defined?(HamlCoffeeAssets::VERSION)
5
5
  end
@@ -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.5
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-16 00:00:00.000000000Z
12
+ date: 2012-04-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: execjs