haml_coffee_assets 0.9.4 → 0.9.5

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.9.4' unless defined?(HamlCoffeeAssets::VERSION)
4
+ VERSION = '0.9.5' unless defined?(HamlCoffeeAssets::VERSION)
5
5
  end
@@ -0,0 +1,180 @@
1
+ !RBIX
2
+ 9595534255132031488
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 16
54
+ HamlCoffeeAssets
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 16
67
+ HamlCoffeeAssets
68
+ i
69
+ 48
70
+ 5
71
+ 66
72
+ 26
73
+ 93
74
+ 0
75
+ 15
76
+ 29
77
+ 21
78
+ 0
79
+ 45
80
+ 0
81
+ 1
82
+ 7
83
+ 2
84
+ 3
85
+ 98
86
+ 3
87
+ 3
88
+ 30
89
+ 8
90
+ 27
91
+ 25
92
+ 92
93
+ 0
94
+ 27
95
+ 8
96
+ 32
97
+ 15
98
+ 7
99
+ 4
100
+ 8
101
+ 33
102
+ 1
103
+ 9
104
+ 38
105
+ 1
106
+ 8
107
+ 47
108
+ 65
109
+ 7
110
+ 2
111
+ 7
112
+ 5
113
+ 64
114
+ 49
115
+ 6
116
+ 2
117
+ 11
118
+ I
119
+ 4
120
+ I
121
+ 0
122
+ I
123
+ 0
124
+ I
125
+ 0
126
+ n
127
+ p
128
+ 7
129
+ x
130
+ 16
131
+ HamlCoffeeAssets
132
+ n
133
+ x
134
+ 7
135
+ VERSION
136
+ x
137
+ 22
138
+ vm_const_defined_under
139
+ s
140
+ 8
141
+ constant
142
+ s
143
+ 5
144
+ 0.8.2
145
+ x
146
+ 9
147
+ const_set
148
+ p
149
+ 5
150
+ I
151
+ 2
152
+ I
153
+ 4
154
+ I
155
+ 2f
156
+ I
157
+ 0
158
+ I
159
+ 30
160
+ x
161
+ 78
162
+ /Users/michi/Repositories/haml_coffee_assets/lib/haml_coffee_assets/version.rb
163
+ p
164
+ 0
165
+ x
166
+ 13
167
+ attach_method
168
+ p
169
+ 3
170
+ I
171
+ 0
172
+ I
173
+ 3
174
+ I
175
+ 1c
176
+ x
177
+ 78
178
+ /Users/michi/Repositories/haml_coffee_assets/lib/haml_coffee_assets/version.rb
179
+ p
180
+ 0
data/lib/js/hamlcoffee.js CHANGED
@@ -1021,7 +1021,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1021
1021
  (function() {
1022
1022
  var Haml, Node, escapeQuotes,
1023
1023
  __hasProp = {}.hasOwnProperty,
1024
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
1024
+ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
1025
1025
 
1026
1026
  Node = require('./node');
1027
1027
 
@@ -1031,8 +1031,6 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1031
1031
 
1032
1032
  __extends(Haml, _super);
1033
1033
 
1034
- Haml.name = 'Haml';
1035
-
1036
1034
  function Haml() {
1037
1035
  return Haml.__super__.constructor.apply(this, arguments);
1038
1036
  }
@@ -1136,7 +1134,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1136
1134
  };
1137
1135
 
1138
1136
  Haml.prototype.parseTag = function(exp) {
1139
- var assignment, attributes, classes, doctype, haml, id, ids, klass, tag, text, tokens, whitespace, _ref;
1137
+ var assignment, attributes, ch, classes, doctype, end, haml, id, ids, klass, level, pos, rest, start, tag, text, whitespace, _i, _ref, _ref1, _ref2;
1140
1138
  try {
1141
1139
  doctype = (_ref = exp.match(/^(\!{3}.*)/)) != null ? _ref[1] : void 0;
1142
1140
  if (doctype) {
@@ -1144,11 +1142,44 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1144
1142
  doctype: doctype
1145
1143
  };
1146
1144
  }
1147
- tokens = exp.match(/^((?:[#%\.][a-z0-9_:\-]*[\/]?)+)(?:([\(].*[\)]|[\{].*[\}])?([\<\>]{0,2})(?=[=&!~])(.*)?|([\(].*[\)]|[\{].*[\}])?([\<\>]{0,2}))(.*)?/i);
1148
- haml = tokens[1];
1149
- attributes = tokens[2] || tokens[5];
1150
- whitespace = tokens[3] || tokens[6];
1151
- assignment = tokens[4] || tokens[7];
1145
+ haml = exp.match(/^((?:[#%\.][a-z0-9_:\-]*[\/]?)+)/i)[0];
1146
+ rest = exp.substring(haml.length);
1147
+ if (rest.match(/^[{(]/)) {
1148
+ start = rest[0];
1149
+ end = (function() {
1150
+ switch (start) {
1151
+ case '{':
1152
+ return '}';
1153
+ case '(':
1154
+ return ')';
1155
+ }
1156
+ })();
1157
+ level = 0;
1158
+ for (pos = _i = 0, _ref1 = rest.length; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; pos = 0 <= _ref1 ? ++_i : --_i) {
1159
+ ch = rest[pos];
1160
+ if (ch === start) {
1161
+ level += 1;
1162
+ }
1163
+ if (ch === end) {
1164
+ if (level === 1) {
1165
+ break;
1166
+ } else {
1167
+ level -= 1;
1168
+ }
1169
+ }
1170
+ }
1171
+ attributes = rest.substring(0, pos + 1);
1172
+ assignment = rest.substring(pos + 1);
1173
+ } else {
1174
+ attributes = '';
1175
+ assignment = rest;
1176
+ }
1177
+ if (whitespace = (_ref2 = assignment.match(/^[<>]{0,2}/)) != null ? _ref2[0] : void 0) {
1178
+ assignment = assignment.substring(whitespace.length);
1179
+ }
1180
+ if (assignment[0] === ' ') {
1181
+ assignment = assignment.substring(1);
1182
+ }
1152
1183
  if (assignment && !assignment.match(/^(=|!=|&=|~)/)) {
1153
1184
  text = assignment.replace(/^ /, '');
1154
1185
  assignment = void 0;
@@ -1168,19 +1199,19 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1168
1199
  return {
1169
1200
  tag: tag ? tag[1] : 'div',
1170
1201
  ids: ids ? (function() {
1171
- var _i, _len, _results;
1202
+ var _j, _len, _results;
1172
1203
  _results = [];
1173
- for (_i = 0, _len = ids.length; _i < _len; _i++) {
1174
- id = ids[_i];
1204
+ for (_j = 0, _len = ids.length; _j < _len; _j++) {
1205
+ id = ids[_j];
1175
1206
  _results.push(id.substr(1));
1176
1207
  }
1177
1208
  return _results;
1178
1209
  })() : void 0,
1179
1210
  classes: classes ? (function() {
1180
- var _i, _len, _results;
1211
+ var _j, _len, _results;
1181
1212
  _results = [];
1182
- for (_i = 0, _len = classes.length; _i < _len; _i++) {
1183
- klass = classes[_i];
1213
+ for (_j = 0, _len = classes.length; _j < _len; _j++) {
1214
+ klass = classes[_j];
1184
1215
  _results.push(klass.substr(1));
1185
1216
  }
1186
1217
  return _results;
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.9.4
4
+ version: 0.9.5
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-06-01 00:00:00.000000000 Z
12
+ date: 2012-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: execjs
@@ -87,6 +87,7 @@ files:
87
87
  - lib/haml_coffee_assets/rails/engine.rb
88
88
  - lib/haml_coffee_assets/tilt/template_handler.rb
89
89
  - lib/haml_coffee_assets/version.rb
90
+ - lib/haml_coffee_assets/version.rbc
90
91
  - lib/haml_coffee_assets.rb
91
92
  - lib/js/coffee-script.js
92
93
  - lib/js/haml_coffee_assets.js
@@ -106,6 +107,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
107
  - - ! '>='
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
110
+ segments:
111
+ - 0
112
+ hash: -189567978419904399
109
113
  required_rubygems_version: !ruby/object:Gem::Requirement
110
114
  none: false
111
115
  requirements: