haml_coffee_assets 1.7.2 → 1.8.2
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/README.md +2 -2
- data/lib/haml_coffee_assets/version.rb +1 -1
- data/lib/js/hamlcoffee.js +3 -4
- metadata +2 -5
data/README.md
CHANGED
@@ -33,7 +33,7 @@ Haml Coffee allows you to write inline [CoffeeScript](http://jashkenas.github.co
|
|
33
33
|
```
|
34
34
|
|
35
35
|
You can try Haml Coffee online by visiting [Haml Coffee Online](http://haml-coffee-online.herokuapp.com/) and have a
|
36
|
-
look [the AMD example Rails app](https://github.com/netzpirat/
|
36
|
+
look [the AMD example Rails app](https://github.com/netzpirat/haml_coffee_assets-amd-demo).
|
37
37
|
|
38
38
|
## Installation
|
39
39
|
|
@@ -465,7 +465,7 @@ Of course you can also directly require and render a template like:
|
|
465
465
|
!= require("another/other")()
|
466
466
|
```
|
467
467
|
|
468
|
-
Please have a look at [the AMD example Rails app](https://github.com/netzpirat/
|
468
|
+
Please have a look at [the AMD example Rails app](https://github.com/netzpirat/haml_coffee_assets-amd-demo) for a working
|
469
469
|
example.
|
470
470
|
|
471
471
|
## Author
|
data/lib/js/hamlcoffee.js
CHANGED
@@ -363,7 +363,7 @@ require.define("/haml-coffee.coffee", function (require, module, exports, __dirn
|
|
363
363
|
|
364
364
|
module.exports = HamlCoffee = (function() {
|
365
365
|
|
366
|
-
HamlCoffee.VERSION = '1.
|
366
|
+
HamlCoffee.VERSION = '1.8.2';
|
367
367
|
|
368
368
|
function HamlCoffee(options) {
|
369
369
|
var _base, _base10, _base11, _base2, _base3, _base4, _base5, _base6, _base7, _base8, _base9, _ref, _ref10, _ref11, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
@@ -1299,7 +1299,7 @@ require.define("/nodes/haml.coffee", function (require, module, exports, __dirna
|
|
1299
1299
|
ch = exp[pos];
|
1300
1300
|
if (ch === '(') {
|
1301
1301
|
level += 1;
|
1302
|
-
start = pos;
|
1302
|
+
if (level === 1) start = pos;
|
1303
1303
|
}
|
1304
1304
|
if (ch === ')') {
|
1305
1305
|
if (level === 1) {
|
@@ -1505,11 +1505,10 @@ require.define("/nodes/haml.coffee", function (require, module, exports, __dirna
|
|
1505
1505
|
};
|
1506
1506
|
|
1507
1507
|
Haml.prototype.splitInterpolations = function(value) {
|
1508
|
-
var ch, ch2, level, pos,
|
1508
|
+
var ch, ch2, level, pos, start, tokens, _ref;
|
1509
1509
|
level = 0;
|
1510
1510
|
start = 0;
|
1511
1511
|
tokens = [];
|
1512
|
-
quoted = false;
|
1513
1512
|
for (pos = 0, _ref = value.length; 0 <= _ref ? pos < _ref : pos > _ref; 0 <= _ref ? pos++ : pos--) {
|
1514
1513
|
ch = value[pos];
|
1515
1514
|
ch2 = value.slice(pos, (pos + 1) + 1 || 9e9);
|
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.8.2
|
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-11-
|
12
|
+
date: 2012-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coffee-script
|
@@ -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: -2052490778007529054
|
113
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
111
|
none: false
|
115
112
|
requirements:
|