lazibi 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ == 0.1.11 2007-06-20
2
+
3
+ * Bugs
4
+ * inline end: def abc; end
5
+ * Features
6
+ * Now passes ActiveRecord test :] happy happy
7
+
1
8
  == 0.1.10 2007-06-20
2
9
 
3
10
  * A taste of RSpec
data/Manifest.txt CHANGED
@@ -5,6 +5,13 @@ Manifest.txt
5
5
  README.txt
6
6
  Rakefile
7
7
  bin/lazibi
8
+ coverage/index.html
9
+ coverage/lib-helper-parser_helper_rb.html
10
+ coverage/lib-helper-task_helper_rb.html
11
+ coverage/lib-lazibi-version_rb.html
12
+ coverage/lib-lazibi_rb.html
13
+ coverage/lib-parser_rb.html
14
+ coverage/lib-task_rb.html
8
15
  lib/helper/app_helper.rb
9
16
  lib/helper/parser_helper.rb
10
17
  lib/helper/task_helper.rb
@@ -21,12 +28,14 @@ test/fixtures/clean/long_indent.txt
21
28
  test/fixtures/clean/mixed_re.txt
22
29
  test/fixtures/clean/only_if.txt
23
30
  test/fixtures/clean/re.txt
31
+ test/fixtures/clean/semi_colon_after_end.txt
24
32
  test/fixtures/clean/sep_line.txt
25
33
  test/fixtures/clean/unless_problem.txt
26
34
  test/fixtures/meta/basic_class.txt
27
35
  test/fixtures/meta/case.txt
28
36
  test/fixtures/meta/class_with_def.txt
29
37
  test/fixtures/meta/comment.txt
38
+ test/fixtures/meta/comment_after_end.txt
30
39
  test/fixtures/meta/eval_code.txt
31
40
  test/fixtures/meta/here_doc.txt
32
41
  test/fixtures/meta/inline_end.txt
@@ -43,6 +52,8 @@ test/fixtures/real/basic_class.txt
43
52
  test/fixtures/real/case.txt
44
53
  test/fixtures/real/class_with_def.txt
45
54
  test/fixtures/real/comment.txt
55
+ test/fixtures/real/comment_after_end.txt
56
+ test/fixtures/real/comment_after_end_expected.txt
46
57
  test/fixtures/real/comment_break.txt
47
58
  test/fixtures/real/end_concat.txt
48
59
  test/fixtures/real/eval_code.txt
@@ -61,6 +72,7 @@ test/fixtures/real/optional_do.txt
61
72
  test/fixtures/real/optional_do_with_nasty_chars.txt
62
73
  test/fixtures/real/partial_method.txt
63
74
  test/fixtures/real/re.txt
75
+ test/fixtures/real/semi_colon_after_end.txt
64
76
  test/fixtures/real/sep_line.txt
65
77
  test/fixtures/real/single_method.txt
66
78
  test/fixtures/real/strange_syntax_1.txt
data/README.txt CHANGED
@@ -7,7 +7,7 @@ the real directory for you in real time.
7
7
 
8
8
  == Examples
9
9
 
10
- Sweeter RSpec
10
+ Sweeter RSpec [ Thanks Jay ]
11
11
 
12
12
  describe Bowling
13
13
  before(:each)
@@ -102,13 +102,22 @@ Start hacking in meta :/
102
102
  - ^test
103
103
  - etc
104
104
 
105
+ * Personally I would not recommend using this filter outside the context of RSpec
106
+ * It's not well tested
107
+ * Anything more complex then simple description will get unreadable
108
+
105
109
  == In Practice
106
110
 
107
111
  Lazibi is written using Lazibi itself ( incrementally ). Personally I think autotest from http://www.zenspider.com/ZSS/Products/ZenTest/ is a must have, and Lazibi works pretty well using TDD.
108
112
 
109
113
  == Known issues
110
114
 
111
- Here docs are likely to screw up code generation. Give them enough indent so they are treated like normal code inside current code block ;|
115
+ Here docs, eval, javascript related libs, and complex string evaluation are currently not supported.
116
+ Ruby code with above syntax will be preserved as is. So your code should still works, just no parse. In other words, if you don't want your code to be parsed, simply add a dummy here doc string...
117
+
118
+ == Talk
119
+
120
+ http://groups.google.com/group/lazibi-talk
112
121
 
113
122
  == To Do
114
123
 
@@ -0,0 +1,476 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
3
+ <head>
4
+ <title>C0 code coverage information</title>
5
+ <style type='text/css'>body { background-color: rgb(240, 240, 245); }</style>
6
+ <style type='text/css'>span.cross-ref-title {
7
+ font-size: 140%;
8
+ }
9
+ span.cross-ref a {
10
+ text-decoration: none;
11
+ }
12
+ span.cross-ref {
13
+ background-color:#f3f7fa;
14
+ border: 1px dashed #333;
15
+ margin: 1em;
16
+ padding: 0.5em;
17
+ overflow: hidden;
18
+ }
19
+ a.crossref-toggle {
20
+ text-decoration: none;
21
+ }
22
+ span.marked0 {
23
+ background-color: rgb(185, 210, 200);
24
+ display: block;
25
+ }
26
+ span.marked1 {
27
+ background-color: rgb(190, 215, 205);
28
+ display: block;
29
+ }
30
+ span.inferred0 {
31
+ background-color: rgb(175, 200, 200);
32
+ display: block;
33
+ }
34
+ span.inferred1 {
35
+ background-color: rgb(180, 205, 205);
36
+ display: block;
37
+ }
38
+ span.uncovered0 {
39
+ background-color: rgb(225, 110, 110);
40
+ display: block;
41
+ }
42
+ span.uncovered1 {
43
+ background-color: rgb(235, 120, 120);
44
+ display: block;
45
+ }
46
+ span.overview {
47
+ border-bottom: 8px solid black;
48
+ }
49
+ div.overview {
50
+ border-bottom: 8px solid black;
51
+ }
52
+ body {
53
+ font-family: verdana, arial, helvetica;
54
+ }
55
+ div.footer {
56
+ font-size: 68%;
57
+ margin-top: 1.5em;
58
+ }
59
+ h1, h2, h3, h4, h5, h6 {
60
+ margin-bottom: 0.5em;
61
+ }
62
+ h5 {
63
+ margin-top: 0.5em;
64
+ }
65
+ .hidden {
66
+ display: none;
67
+ }
68
+ div.separator {
69
+ height: 10px;
70
+ }
71
+ /* Commented out for better readability, esp. on IE */
72
+ /*
73
+ table tr td, table tr th {
74
+ font-size: 68%;
75
+ }
76
+ td.value table tr td {
77
+ font-size: 11px;
78
+ }
79
+ */
80
+ table.percent_graph {
81
+ height: 12px;
82
+ border: #808080 1px solid;
83
+ empty-cells: show;
84
+ }
85
+ table.percent_graph td.covered {
86
+ height: 10px;
87
+ background: #00f000;
88
+ }
89
+ table.percent_graph td.uncovered {
90
+ height: 10px;
91
+ background: #e00000;
92
+ }
93
+ table.percent_graph td.NA {
94
+ height: 10px;
95
+ background: #eaeaea;
96
+ }
97
+ table.report {
98
+ border-collapse: collapse;
99
+ width: 100%;
100
+ }
101
+ table.report td.heading {
102
+ background: #dcecff;
103
+ border: #d0d0d0 1px solid;
104
+ font-weight: bold;
105
+ text-align: center;
106
+ }
107
+ table.report td.heading:hover {
108
+ background: #c0ffc0;
109
+ }
110
+ table.report td.text {
111
+ border: #d0d0d0 1px solid;
112
+ }
113
+ table.report td.value,
114
+ table.report td.lines_total,
115
+ table.report td.lines_code {
116
+ text-align: right;
117
+ border: #d0d0d0 1px solid;
118
+ }
119
+ table.report tr.light {
120
+ background-color: rgb(240, 240, 245);
121
+ }
122
+ table.report tr.dark {
123
+ background-color: rgb(230, 230, 235);
124
+ }
125
+ </style>
126
+ <script type='text/javascript'>
127
+ // <![CDATA[
128
+ function toggleCode( id ) {
129
+ if ( document.getElementById )
130
+ elem = document.getElementById( id );
131
+ else if ( document.all )
132
+ elem = eval( "document.all." + id );
133
+ else
134
+ return false;
135
+
136
+ elemStyle = elem.style;
137
+
138
+ if ( elemStyle.display != "block" ) {
139
+ elemStyle.display = "block"
140
+ } else {
141
+ elemStyle.display = "none"
142
+ }
143
+
144
+ return true;
145
+ }
146
+
147
+ // Make cross-references hidden by default
148
+ document.writeln( "<style type=\"text/css\">span.cross-ref { display: none }</style>" )
149
+ // ]]>
150
+ </script>
151
+ </head>
152
+ <body>
153
+ <h3>C0 code coverage information</h3>
154
+ <p>Generated on Wed Jun 20 18:49:36 +0800 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
155
+ </p>
156
+ <hr /> <table class='report'>
157
+ <thead>
158
+ <tr>
159
+ <td class='heading'>Name</td>
160
+ <td class='heading'>Total lines</td>
161
+ <td class='heading'>Lines of code</td>
162
+ <td class='heading'>Total coverage</td>
163
+ <td class='heading'>Code coverage</td>
164
+ </tr>
165
+ </thead>
166
+ <tbody>
167
+ <tr class='light'>
168
+ <td>TOTAL</td>
169
+ <td class='lines_total'>
170
+ <tt>458</tt>
171
+ </td>
172
+ <td class='lines_code'>
173
+ <tt>387</tt>
174
+ </td>
175
+ <td>
176
+ <table cellspacing='0' cellpadding='0' align='right'>
177
+ <tr>
178
+ <td>
179
+ <tt class='coverage_total'>71.6%</tt>&nbsp;</td>
180
+ <td>
181
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
182
+ <tr>
183
+ <td class='covered' width='72' />
184
+ <td class='uncovered' width='28' />
185
+ </tr>
186
+ </table>
187
+ </td>
188
+ </tr>
189
+ </table>
190
+ </td>
191
+ <td>
192
+ <table cellspacing='0' cellpadding='0' align='right'>
193
+ <tr>
194
+ <td>
195
+ <tt class='coverage_code'>69.3%</tt>&nbsp;</td>
196
+ <td>
197
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
198
+ <tr>
199
+ <td class='covered' width='69' />
200
+ <td class='uncovered' width='31' />
201
+ </tr>
202
+ </table>
203
+ </td>
204
+ </tr>
205
+ </table>
206
+ </td>
207
+ </tr>
208
+ <tr class='dark'>
209
+ <td>
210
+ <a href='lib-helper-parser_helper_rb.html'>lib/helper/parser_helper.rb</a>
211
+ </td>
212
+ <td class='lines_total'>
213
+ <tt>87</tt>
214
+ </td>
215
+ <td class='lines_code'>
216
+ <tt>71</tt>
217
+ </td>
218
+ <td>
219
+ <table cellspacing='0' cellpadding='0' align='right'>
220
+ <tr>
221
+ <td>
222
+ <tt class='coverage_total'>93.1%</tt>&nbsp;</td>
223
+ <td>
224
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
225
+ <tr>
226
+ <td class='covered' width='93' />
227
+ <td class='uncovered' width='7' />
228
+ </tr>
229
+ </table>
230
+ </td>
231
+ </tr>
232
+ </table>
233
+ </td>
234
+ <td>
235
+ <table cellspacing='0' cellpadding='0' align='right'>
236
+ <tr>
237
+ <td>
238
+ <tt class='coverage_code'>91.5%</tt>&nbsp;</td>
239
+ <td>
240
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
241
+ <tr>
242
+ <td class='covered' width='92' />
243
+ <td class='uncovered' width='8' />
244
+ </tr>
245
+ </table>
246
+ </td>
247
+ </tr>
248
+ </table>
249
+ </td>
250
+ </tr>
251
+ <tr class='light'>
252
+ <td>
253
+ <a href='lib-helper-task_helper_rb.html'>lib/helper/task_helper.rb</a>
254
+ </td>
255
+ <td class='lines_total'>
256
+ <tt>53</tt>
257
+ </td>
258
+ <td class='lines_code'>
259
+ <tt>48</tt>
260
+ </td>
261
+ <td>
262
+ <table cellspacing='0' cellpadding='0' align='right'>
263
+ <tr>
264
+ <td>
265
+ <tt class='coverage_total'>96.2%</tt>&nbsp;</td>
266
+ <td>
267
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
268
+ <tr>
269
+ <td class='covered' width='96' />
270
+ <td class='uncovered' width='4' />
271
+ </tr>
272
+ </table>
273
+ </td>
274
+ </tr>
275
+ </table>
276
+ </td>
277
+ <td>
278
+ <table cellspacing='0' cellpadding='0' align='right'>
279
+ <tr>
280
+ <td>
281
+ <tt class='coverage_code'>95.8%</tt>&nbsp;</td>
282
+ <td>
283
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
284
+ <tr>
285
+ <td class='covered' width='96' />
286
+ <td class='uncovered' width='4' />
287
+ </tr>
288
+ </table>
289
+ </td>
290
+ </tr>
291
+ </table>
292
+ </td>
293
+ </tr>
294
+ <tr class='dark'>
295
+ <td>
296
+ <a href='lib-lazibi_rb.html'>lib/lazibi.rb</a>
297
+ </td>
298
+ <td class='lines_total'>
299
+ <tt>33</tt>
300
+ </td>
301
+ <td class='lines_code'>
302
+ <tt>30</tt>
303
+ </td>
304
+ <td>
305
+ <table cellspacing='0' cellpadding='0' align='right'>
306
+ <tr>
307
+ <td>
308
+ <tt class='coverage_total'>42.4%</tt>&nbsp;</td>
309
+ <td>
310
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
311
+ <tr>
312
+ <td class='covered' width='42' />
313
+ <td class='uncovered' width='58' />
314
+ </tr>
315
+ </table>
316
+ </td>
317
+ </tr>
318
+ </table>
319
+ </td>
320
+ <td>
321
+ <table cellspacing='0' cellpadding='0' align='right'>
322
+ <tr>
323
+ <td>
324
+ <tt class='coverage_code'>40.0%</tt>&nbsp;</td>
325
+ <td>
326
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
327
+ <tr>
328
+ <td class='covered' width='40' />
329
+ <td class='uncovered' width='60' />
330
+ </tr>
331
+ </table>
332
+ </td>
333
+ </tr>
334
+ </table>
335
+ </td>
336
+ </tr>
337
+ <tr class='light'>
338
+ <td>
339
+ <a href='lib-lazibi-version_rb.html'>lib/lazibi/version.rb</a>
340
+ </td>
341
+ <td class='lines_total'>
342
+ <tt>9</tt>
343
+ </td>
344
+ <td class='lines_code'>
345
+ <tt>8</tt>
346
+ </td>
347
+ <td>
348
+ <table cellspacing='0' cellpadding='0' align='right'>
349
+ <tr>
350
+ <td>
351
+ <tt class='coverage_total'>100.0%</tt>&nbsp;</td>
352
+ <td>
353
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
354
+ <tr>
355
+ <td class='covered' width='100' />
356
+ <td class='uncovered' width='0' />
357
+ </tr>
358
+ </table>
359
+ </td>
360
+ </tr>
361
+ </table>
362
+ </td>
363
+ <td>
364
+ <table cellspacing='0' cellpadding='0' align='right'>
365
+ <tr>
366
+ <td>
367
+ <tt class='coverage_code'>100.0%</tt>&nbsp;</td>
368
+ <td>
369
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
370
+ <tr>
371
+ <td class='covered' width='100' />
372
+ <td class='uncovered' width='0' />
373
+ </tr>
374
+ </table>
375
+ </td>
376
+ </tr>
377
+ </table>
378
+ </td>
379
+ </tr>
380
+ <tr class='dark'>
381
+ <td>
382
+ <a href='lib-parser_rb.html'>lib/parser.rb</a>
383
+ </td>
384
+ <td class='lines_total'>
385
+ <tt>156</tt>
386
+ </td>
387
+ <td class='lines_code'>
388
+ <tt>129</tt>
389
+ </td>
390
+ <td>
391
+ <table cellspacing='0' cellpadding='0' align='right'>
392
+ <tr>
393
+ <td>
394
+ <tt class='coverage_total'>92.3%</tt>&nbsp;</td>
395
+ <td>
396
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
397
+ <tr>
398
+ <td class='covered' width='92' />
399
+ <td class='uncovered' width='8' />
400
+ </tr>
401
+ </table>
402
+ </td>
403
+ </tr>
404
+ </table>
405
+ </td>
406
+ <td>
407
+ <table cellspacing='0' cellpadding='0' align='right'>
408
+ <tr>
409
+ <td>
410
+ <tt class='coverage_code'>90.7%</tt>&nbsp;</td>
411
+ <td>
412
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
413
+ <tr>
414
+ <td class='covered' width='91' />
415
+ <td class='uncovered' width='9' />
416
+ </tr>
417
+ </table>
418
+ </td>
419
+ </tr>
420
+ </table>
421
+ </td>
422
+ </tr>
423
+ <tr class='light'>
424
+ <td>
425
+ <a href='lib-task_rb.html'>lib/task.rb</a>
426
+ </td>
427
+ <td class='lines_total'>
428
+ <tt>120</tt>
429
+ </td>
430
+ <td class='lines_code'>
431
+ <tt>101</tt>
432
+ </td>
433
+ <td>
434
+ <table cellspacing='0' cellpadding='0' align='right'>
435
+ <tr>
436
+ <td>
437
+ <tt class='coverage_total'>24.2%</tt>&nbsp;</td>
438
+ <td>
439
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
440
+ <tr>
441
+ <td class='covered' width='24' />
442
+ <td class='uncovered' width='76' />
443
+ </tr>
444
+ </table>
445
+ </td>
446
+ </tr>
447
+ </table>
448
+ </td>
449
+ <td>
450
+ <table cellspacing='0' cellpadding='0' align='right'>
451
+ <tr>
452
+ <td>
453
+ <tt class='coverage_code'>19.8%</tt>&nbsp;</td>
454
+ <td>
455
+ <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
456
+ <tr>
457
+ <td class='covered' width='20' />
458
+ <td class='uncovered' width='80' />
459
+ </tr>
460
+ </table>
461
+ </td>
462
+ </tr>
463
+ </table>
464
+ </td>
465
+ </tr>
466
+ </tbody>
467
+ </table><hr /> <p>Generated using the <a href='http://eigenclass.org/hiki.rb?rcov'>rcov code coverage analysis tool for Ruby</a> version 0.8.0.</p><p>
468
+ <a href='http://validator.w3.org/check/referer'>
469
+ <img src='http://www.w3.org/Icons/valid-xhtml11' height='31' alt='Valid XHTML 1.1!' width='88' />
470
+ </a>
471
+ <a href='http://jigsaw.w3.org/css-validator/check/referer'>
472
+ <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Valid CSS!' style='border:0;width:88px;height:31px' />
473
+ </a>
474
+ </p>
475
+ </body>
476
+ </html>