haml 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of haml might be problematic. Click here for more details.

Files changed (100) hide show
  1. data/VERSION +1 -1
  2. data/lib/haml.rbc +581 -0
  3. data/lib/haml/buffer.rbc +3992 -0
  4. data/lib/haml/engine.rbc +3753 -0
  5. data/lib/haml/error.rbc +363 -0
  6. data/lib/haml/exec.rb +3 -2
  7. data/lib/haml/filters.rb +7 -1
  8. data/lib/haml/filters.rbc +5719 -0
  9. data/lib/haml/helpers.rbc +7017 -0
  10. data/lib/haml/helpers/action_view_mods.rb +40 -1
  11. data/lib/haml/precompiler.rbc +21418 -0
  12. data/lib/haml/railtie.rbc +508 -0
  13. data/lib/haml/root.rbc +157 -0
  14. data/lib/haml/shared.rbc +1103 -0
  15. data/lib/haml/template.rb +22 -0
  16. data/lib/haml/util.rb +21 -2
  17. data/lib/haml/util.rbc +9071 -0
  18. data/lib/haml/util/subset_map.rbc +1336 -0
  19. data/lib/haml/version.rb +2 -2
  20. data/lib/haml/version.rbc +1639 -0
  21. data/lib/sass.rbc +496 -0
  22. data/lib/sass/callbacks.rbc +407 -0
  23. data/lib/sass/engine.rbc +15109 -0
  24. data/lib/sass/environment.rb +14 -2
  25. data/lib/sass/environment.rbc +1485 -0
  26. data/lib/sass/error.rb +4 -1
  27. data/lib/sass/error.rbc +2641 -0
  28. data/lib/sass/files.rbc +3013 -0
  29. data/lib/sass/less.rbc +11077 -0
  30. data/lib/sass/plugin.rbc +4347 -0
  31. data/lib/sass/plugin/configuration.rbc +1410 -0
  32. data/lib/sass/plugin/rails.rb +7 -6
  33. data/lib/sass/plugin/staleness_checker.rbc +2041 -0
  34. data/lib/sass/script.rbc +1175 -0
  35. data/lib/sass/script/bool.rbc +386 -0
  36. data/lib/sass/script/color.rbc +7998 -0
  37. data/lib/sass/script/css_lexer.rbc +828 -0
  38. data/lib/sass/script/css_parser.rbc +649 -0
  39. data/lib/sass/script/funcall.rbc +1880 -0
  40. data/lib/sass/script/functions.rbc +8329 -0
  41. data/lib/sass/script/interpolation.rb +9 -2
  42. data/lib/sass/script/interpolation.rbc +1140 -0
  43. data/lib/sass/script/lexer.rb +5 -4
  44. data/lib/sass/script/lexer.rbc +7110 -0
  45. data/lib/sass/script/literal.rbc +3275 -0
  46. data/lib/sass/script/node.rbc +1352 -0
  47. data/lib/sass/script/number.rbc +5850 -0
  48. data/lib/sass/script/operation.rbc +1762 -0
  49. data/lib/sass/script/parser.rb +30 -4
  50. data/lib/sass/script/parser.rbc +7386 -0
  51. data/lib/sass/script/string.rbc +1342 -0
  52. data/lib/sass/script/string_interpolation.rbc +1625 -0
  53. data/lib/sass/script/unary_operation.rbc +1141 -0
  54. data/lib/sass/script/variable.rbc +871 -0
  55. data/lib/sass/scss.rbc +256 -0
  56. data/lib/sass/scss/css_parser.rbc +1118 -0
  57. data/lib/sass/scss/parser.rbc +18391 -0
  58. data/lib/sass/scss/rx.rbc +2866 -0
  59. data/lib/sass/scss/sass_parser.rbc +311 -0
  60. data/lib/sass/scss/script_lexer.rbc +466 -0
  61. data/lib/sass/scss/script_parser.rbc +512 -0
  62. data/lib/sass/scss/static_parser.rbc +1295 -0
  63. data/lib/sass/selector.rbc +4208 -0
  64. data/lib/sass/selector/abstract_sequence.rbc +832 -0
  65. data/lib/sass/selector/comma_sequence.rbc +1644 -0
  66. data/lib/sass/selector/sequence.rbc +4772 -0
  67. data/lib/sass/selector/simple.rbc +1561 -0
  68. data/lib/sass/selector/simple_sequence.rbc +2321 -0
  69. data/lib/sass/tree/comment_node.rbc +2418 -0
  70. data/lib/sass/tree/debug_node.rbc +778 -0
  71. data/lib/sass/tree/directive_node.rbc +1281 -0
  72. data/lib/sass/tree/extend_node.rbc +1266 -0
  73. data/lib/sass/tree/for_node.rbc +1150 -0
  74. data/lib/sass/tree/if_node.rbc +1114 -0
  75. data/lib/sass/tree/import_node.rbc +2203 -0
  76. data/lib/sass/tree/mixin_def_node.rbc +1022 -0
  77. data/lib/sass/tree/mixin_node.rb +23 -3
  78. data/lib/sass/tree/mixin_node.rbc +2671 -0
  79. data/lib/sass/tree/node.rbc +5410 -0
  80. data/lib/sass/tree/prop_node.rbc +3883 -0
  81. data/lib/sass/tree/root_node.rbc +2391 -0
  82. data/lib/sass/tree/rule_node.rbc +5507 -0
  83. data/lib/sass/tree/variable_node.rbc +858 -0
  84. data/lib/sass/tree/warn_node.rbc +1051 -0
  85. data/lib/sass/tree/while_node.rbc +740 -0
  86. data/test/haml/engine_test.rbc +30038 -0
  87. data/test/haml/util_test.rb +1 -0
  88. data/test/linked_rails.rb +7 -0
  89. data/test/linked_rails.rbc +638 -0
  90. data/test/sass/engine_test.rb +57 -0
  91. data/test/sass/engine_test.rbc +24953 -0
  92. data/test/sass/extend_test.rbc +8941 -0
  93. data/test/sass/less_conversion_test.rbc +5292 -0
  94. data/test/sass/plugin_test.rb +0 -29
  95. data/test/sass/plugin_test.rbc +10726 -0
  96. data/test/sass/script_conversion_test.rb +43 -0
  97. data/test/sass/script_test.rb +57 -1
  98. data/test/sass/scss/scss_test.rb +0 -48
  99. data/test/test_helper.rbc +1973 -0
  100. metadata +81 -3
@@ -211,6 +211,7 @@ class UtilTest < Test::Unit::TestCase
211
211
  assert_equal(["(haml)", 12, "blah"], caller_info("(haml):12: in `blah'"))
212
212
  assert_equal(["", 12, "boop"], caller_info(":12: in `boop'"))
213
213
  assert_equal(["/tmp/foo.rb", -12, "fizzle"], caller_info("/tmp/foo.rb:-12: in `fizzle'"))
214
+ assert_equal(["/tmp/foo.rb", 12, "fizzle"], caller_info("/tmp/foo.rb:12: in `fizzle {}'"))
214
215
  end
215
216
 
216
217
  def test_def_static_method
@@ -17,6 +17,13 @@ begin
17
17
  rescue LoadError
18
18
  end
19
19
 
20
+ if defined?(Rails::Application) # Rails 3
21
+ class TestApp < Rails::Application
22
+ config.root = File.join(File.dirname(__FILE__), "../..")
23
+ end
24
+ Rails.application = TestApp
25
+ end
26
+
20
27
  ActionController::Base.logger = Logger.new(nil)
21
28
 
22
29
  # Load plugins from test/plugins.
@@ -0,0 +1,638 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 274
13
+ 45
14
+ 0
15
+ 1
16
+ 65
17
+ 48
18
+ 2
19
+ 49
20
+ 3
21
+ 1
22
+ 7
23
+ 4
24
+ 64
25
+ 81
26
+ 5
27
+ 19
28
+ 0
29
+ 15
30
+ 45
31
+ 0
32
+ 6
33
+ 20
34
+ 0
35
+ 49
36
+ 7
37
+ 1
38
+ 13
39
+ 9
40
+ 55
41
+ 15
42
+ 45
43
+ 8
44
+ 9
45
+ 43
46
+ 10
47
+ 7
48
+ 11
49
+ 49
50
+ 12
51
+ 1
52
+ 20
53
+ 0
54
+ 7
55
+ 13
56
+ 64
57
+ 81
58
+ 5
59
+ 49
60
+ 14
61
+ 1
62
+ 10
63
+ 54
64
+ 2
65
+ 8
66
+ 55
67
+ 3
68
+ 9
69
+ 130
70
+ 5
71
+ 7
72
+ 15
73
+ 64
74
+ 47
75
+ 49
76
+ 16
77
+ 1
78
+ 15
79
+ 45
80
+ 8
81
+ 17
82
+ 43
83
+ 10
84
+ 7
85
+ 11
86
+ 49
87
+ 12
88
+ 1
89
+ 20
90
+ 0
91
+ 7
92
+ 13
93
+ 64
94
+ 81
95
+ 5
96
+ 49
97
+ 18
98
+ 1
99
+ 15
100
+ 45
101
+ 8
102
+ 19
103
+ 43
104
+ 10
105
+ 7
106
+ 11
107
+ 49
108
+ 12
109
+ 1
110
+ 20
111
+ 0
112
+ 7
113
+ 20
114
+ 64
115
+ 81
116
+ 5
117
+ 49
118
+ 18
119
+ 1
120
+ 15
121
+ 45
122
+ 8
123
+ 21
124
+ 43
125
+ 10
126
+ 7
127
+ 11
128
+ 49
129
+ 12
130
+ 1
131
+ 20
132
+ 0
133
+ 7
134
+ 22
135
+ 64
136
+ 81
137
+ 5
138
+ 49
139
+ 18
140
+ 1
141
+ 8
142
+ 131
143
+ 1
144
+ 15
145
+ 5
146
+ 7
147
+ 23
148
+ 64
149
+ 47
150
+ 49
151
+ 24
152
+ 1
153
+ 15
154
+ 5
155
+ 7
156
+ 25
157
+ 64
158
+ 47
159
+ 49
160
+ 24
161
+ 1
162
+ 15
163
+ 5
164
+ 7
165
+ 26
166
+ 64
167
+ 47
168
+ 49
169
+ 24
170
+ 1
171
+ 15
172
+ 26
173
+ 93
174
+ 0
175
+ 15
176
+ 29
177
+ 177
178
+ 0
179
+ 5
180
+ 7
181
+ 27
182
+ 64
183
+ 47
184
+ 49
185
+ 24
186
+ 1
187
+ 30
188
+ 8
189
+ 204
190
+ 26
191
+ 93
192
+ 1
193
+ 15
194
+ 24
195
+ 13
196
+ 45
197
+ 28
198
+ 29
199
+ 12
200
+ 49
201
+ 30
202
+ 1
203
+ 10
204
+ 194
205
+ 8
206
+ 199
207
+ 15
208
+ 1
209
+ 25
210
+ 8
211
+ 204
212
+ 15
213
+ 92
214
+ 1
215
+ 27
216
+ 34
217
+ 92
218
+ 0
219
+ 27
220
+ 15
221
+ 45
222
+ 31
223
+ 32
224
+ 43
225
+ 33
226
+ 45
227
+ 34
228
+ 35
229
+ 13
230
+ 71
231
+ 36
232
+ 47
233
+ 9
234
+ 234
235
+ 47
236
+ 48
237
+ 37
238
+ 13
239
+ 1
240
+ 47
241
+ 49
242
+ 38
243
+ 1
244
+ 15
245
+ 8
246
+ 238
247
+ 1
248
+ 49
249
+ 36
250
+ 1
251
+ 13
252
+ 18
253
+ 2
254
+ 49
255
+ 39
256
+ 1
257
+ 15
258
+ 15
259
+ 45
260
+ 40
261
+ 41
262
+ 45
263
+ 0
264
+ 42
265
+ 65
266
+ 48
267
+ 2
268
+ 49
269
+ 3
270
+ 1
271
+ 7
272
+ 43
273
+ 64
274
+ 81
275
+ 5
276
+ 49
277
+ 12
278
+ 1
279
+ 56
280
+ 44
281
+ 50
282
+ 45
283
+ 0
284
+ 15
285
+ 2
286
+ 11
287
+ I
288
+ 7
289
+ I
290
+ 1
291
+ I
292
+ 0
293
+ I
294
+ 0
295
+ n
296
+ p
297
+ 46
298
+ x
299
+ 4
300
+ File
301
+ n
302
+ x
303
+ 11
304
+ active_path
305
+ x
306
+ 7
307
+ dirname
308
+ s
309
+ 6
310
+ /rails
311
+ x
312
+ 1
313
+ +
314
+ n
315
+ x
316
+ 7
317
+ exists?
318
+ x
319
+ 8
320
+ Rubinius
321
+ n
322
+ x
323
+ 7
324
+ Globals
325
+ x
326
+ 2
327
+ $:
328
+ x
329
+ 2
330
+ []
331
+ s
332
+ 18
333
+ /activesupport/lib
334
+ x
335
+ 8
336
+ include?
337
+ s
338
+ 22
339
+ [ using linked Rails ]
340
+ x
341
+ 4
342
+ puts
343
+ n
344
+ x
345
+ 7
346
+ unshift
347
+ n
348
+ s
349
+ 15
350
+ /actionpack/lib
351
+ n
352
+ s
353
+ 13
354
+ /railties/lib
355
+ s
356
+ 8
357
+ rubygems
358
+ x
359
+ 7
360
+ require
361
+ s
362
+ 17
363
+ action_controller
364
+ s
365
+ 11
366
+ action_view
367
+ s
368
+ 5
369
+ rails
370
+ x
371
+ 9
372
+ LoadError
373
+ n
374
+ x
375
+ 3
376
+ ===
377
+ x
378
+ 16
379
+ ActionController
380
+ n
381
+ x
382
+ 4
383
+ Base
384
+ x
385
+ 6
386
+ Logger
387
+ n
388
+ x
389
+ 3
390
+ new
391
+ x
392
+ 8
393
+ allocate
394
+ x
395
+ 10
396
+ initialize
397
+ x
398
+ 7
399
+ logger=
400
+ x
401
+ 3
402
+ Dir
403
+ n
404
+ n
405
+ s
406
+ 10
407
+ /plugins/*
408
+ M
409
+ 1
410
+ p
411
+ 2
412
+ x
413
+ 9
414
+ for_block
415
+ t
416
+ n
417
+ x
418
+ 9
419
+ __block__
420
+ i
421
+ 63
422
+ 57
423
+ 19
424
+ 0
425
+ 15
426
+ 45
427
+ 0
428
+ 1
429
+ 43
430
+ 2
431
+ 7
432
+ 3
433
+ 49
434
+ 4
435
+ 1
436
+ 20
437
+ 0
438
+ 7
439
+ 5
440
+ 64
441
+ 81
442
+ 6
443
+ 49
444
+ 7
445
+ 1
446
+ 15
447
+ 45
448
+ 8
449
+ 9
450
+ 13
451
+ 71
452
+ 10
453
+ 47
454
+ 9
455
+ 44
456
+ 47
457
+ 48
458
+ 11
459
+ 13
460
+ 47
461
+ 48
462
+ 12
463
+ 15
464
+ 8
465
+ 46
466
+ 48
467
+ 10
468
+ 45
469
+ 13
470
+ 14
471
+ 20
472
+ 0
473
+ 7
474
+ 15
475
+ 64
476
+ 81
477
+ 6
478
+ 49
479
+ 16
480
+ 1
481
+ 49
482
+ 17
483
+ 1
484
+ 11
485
+ I
486
+ 6
487
+ I
488
+ 1
489
+ I
490
+ 1
491
+ I
492
+ 1
493
+ n
494
+ p
495
+ 18
496
+ x
497
+ 8
498
+ Rubinius
499
+ n
500
+ x
501
+ 7
502
+ Globals
503
+ x
504
+ 2
505
+ $:
506
+ x
507
+ 2
508
+ []
509
+ s
510
+ 4
511
+ /lib
512
+ x
513
+ 1
514
+ +
515
+ x
516
+ 2
517
+ <<
518
+ x
519
+ 6
520
+ Object
521
+ n
522
+ x
523
+ 3
524
+ new
525
+ x
526
+ 8
527
+ allocate
528
+ x
529
+ 10
530
+ initialize
531
+ x
532
+ 4
533
+ File
534
+ n
535
+ s
536
+ 8
537
+ /init.rb
538
+ x
539
+ 4
540
+ read
541
+ x
542
+ 13
543
+ instance_eval
544
+ p
545
+ 7
546
+ I
547
+ 0
548
+ I
549
+ 19
550
+ I
551
+ 4
552
+ I
553
+ 1a
554
+ I
555
+ 19
556
+ I
557
+ 1b
558
+ I
559
+ 3f
560
+ x
561
+ 41
562
+ /home/nex3/code/haml/test/linked_rails.rb
563
+ p
564
+ 1
565
+ x
566
+ 6
567
+ plugin
568
+ x
569
+ 4
570
+ each
571
+ p
572
+ 29
573
+ I
574
+ 0
575
+ I
576
+ 2
577
+ I
578
+ 11
579
+ I
580
+ 4
581
+ I
582
+ 39
583
+ I
584
+ 5
585
+ I
586
+ 42
587
+ I
588
+ 6
589
+ I
590
+ 57
591
+ I
592
+ 7
593
+ I
594
+ 6c
595
+ I
596
+ 8
597
+ I
598
+ 82
599
+ I
600
+ 4
601
+ I
602
+ 84
603
+ I
604
+ a
605
+ I
606
+ 8d
607
+ I
608
+ b
609
+ I
610
+ 96
611
+ I
612
+ c
613
+ I
614
+ 9f
615
+ I
616
+ 10
617
+ I
618
+ b6
619
+ I
620
+ 11
621
+ I
622
+ d0
623
+ I
624
+ 14
625
+ I
626
+ f6
627
+ I
628
+ 19
629
+ I
630
+ 112
631
+ x
632
+ 41
633
+ /home/nex3/code/haml/test/linked_rails.rb
634
+ p
635
+ 1
636
+ x
637
+ 12
638
+ linked_rails