ninjs 0.13.1 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/Gemfile +1 -3
  2. data/Gemfile.lock +1 -67
  3. data/README.md +348 -0
  4. data/Rakefile +2 -4
  5. data/VERSION +1 -1
  6. data/bin/ninjs +196 -39
  7. data/lib/ninjs/command.rb +23 -64
  8. data/lib/ninjs/configuration.rb +16 -38
  9. data/lib/ninjs/generator.rb +23 -12
  10. data/lib/ninjs/project.rb +7 -6
  11. data/ninjs.gemspec +9 -33
  12. data/repository/ninjs/core/module.js +32 -105
  13. data/repository/ninjs/docs/Data/ClassHierarchy.nd +0 -0
  14. data/repository/ninjs/docs/Data/ConfigFileInfo.nd +0 -0
  15. data/repository/ninjs/docs/Data/IndexInfo.nd +0 -0
  16. data/repository/ninjs/docs/Data/SymbolTable.nd +0 -0
  17. data/repository/ninjs/extensions/ninjs.jquery.js +67 -0
  18. metadata +74 -100
  19. data/README.textile +0 -287
  20. data/tmp/metric_fu/output/churn.html +0 -692
  21. data/tmp/metric_fu/output/flay.html +0 -566
  22. data/tmp/metric_fu/output/flay.js +0 -11
  23. data/tmp/metric_fu/output/flog.html +0 -2392
  24. data/tmp/metric_fu/output/flog.js +0 -12
  25. data/tmp/metric_fu/output/hotspots.html +0 -3607
  26. data/tmp/metric_fu/output/index.html +0 -572
  27. data/tmp/metric_fu/output/lib_ninjs.rb.html +0 -49
  28. data/tmp/metric_fu/output/lib_ninjs_command.rb.html +0 -137
  29. data/tmp/metric_fu/output/lib_ninjs_configuration.rb.html +0 -107
  30. data/tmp/metric_fu/output/lib_ninjs_project.rb.html +0 -236
  31. data/tmp/metric_fu/output/rcov.html +0 -566
  32. data/tmp/metric_fu/output/rcov.js +0 -11
  33. data/tmp/metric_fu/output/reek.html +0 -1294
  34. data/tmp/metric_fu/output/reek.js +0 -20
  35. data/tmp/metric_fu/output/roodi.html +0 -599
  36. data/tmp/metric_fu/output/roodi.js +0 -11
  37. data/tmp/metric_fu/report.yml +0 -1548
@@ -1,20 +0,0 @@
1
- var g = new Bluff.Line('graph', "1000x600");
2
- g.theme_37signals();
3
- g.tooltips = true;
4
- g.title_font_size = "24px"
5
- g.legend_font_size = "12px"
6
- g.marker_font_size = "10px"
7
-
8
- g.title = 'Reek: code smells';
9
- g.data('ControlCouple', [8])
10
- g.data('Duplication', [9])
11
- g.data('IrresponsibleModule', [2])
12
- g.data('LargeClass', [1])
13
- g.data('LongMethod', [9])
14
- g.data('LongParameterList', [1])
15
- g.data('LowCohesion', [18])
16
- g.data('NestedIterators', [2])
17
- g.data('UncommunicativeName', [1])
18
-
19
- g.labels = {"0":"3/5"};
20
- g.draw();
@@ -1,599 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
3
- <head>
4
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
5
- <meta content='en' http-equiv='Content-Language' />
6
- <title>metrics</title>
7
- <style>
8
- /*
9
- Copyright (c) 2008, Yahoo! Inc. All rights reserved.
10
- Code licensed under the BSD License:
11
- http://developer.yahoo.net/yui/license.txt
12
- version: 2.5.2
13
- */
14
- html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
15
-
16
- /* --------------------------------------------------------------
17
-
18
- buttons.css
19
- * Gives you some great CSS-only buttons.
20
-
21
- Created by Kevin Hale [particletree.com]
22
- * particletree.com/features/rediscovering-the-button-element
23
-
24
- See Readme.txt in this folder for instructions.
25
-
26
- -------------------------------------------------------------- */
27
-
28
- button {
29
- display:block;
30
- float:left;
31
- margin:0 0.583em 0.667em 0;
32
- padding:5px 10px 5px 7px; /* Links */
33
-
34
- border:1px solid #dedede;
35
- border-top:1px solid #eee;
36
- border-left:1px solid #eee;
37
-
38
- background-color:#f5f5f5;
39
- font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
40
- font-size:100%;
41
- line-height:130%;
42
- text-decoration:none;
43
- font-weight:bold;
44
- color:#565656;
45
- cursor:pointer;
46
- }
47
- button {
48
- width:auto;
49
- overflow:visible;
50
- padding:4px 10px 3px 7px; /* IE6 */
51
- }
52
- button[type] {
53
- padding:4px 10px 4px 7px; /* Firefox */
54
- line-height:17px; /* Safari */
55
- }
56
- *:first-child+html button[type] {
57
- padding:4px 10px 3px 7px; /* IE7 */
58
- }
59
- button img {
60
- margin:0 3px -3px 0 !important;
61
- padding:0;
62
- border:none;
63
- width:16px;
64
- height:16px;
65
- float:none;
66
- }
67
-
68
-
69
- /* Button colors
70
- -------------------------------------------------------------- */
71
-
72
- /* Standard */
73
- button:hover {
74
- background-color:#dff4ff;
75
- border:1px solid #c2e1ef;
76
- color:#336699;
77
- }
78
-
79
- /* Positive */
80
- body .positive {
81
- color:#529214;
82
- }
83
- button.positive:hover {
84
- background-color:#E6EFC2;
85
- border:1px solid #C6D880;
86
- color:#529214;
87
- }
88
-
89
- /* Negative */
90
- body .negative {
91
- color:#d12f19;
92
- }
93
- button.negative:hover {
94
- background:#fbe3e4;
95
- border:1px solid #fbc2c4;
96
- color:#d12f19;
97
- }
98
-
99
- html {
100
- background-color: #e0e0e0; }
101
-
102
- body {
103
- font-size: 100%;
104
- font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
105
- color: #333333; }
106
-
107
- a {
108
- color: #ed1556;
109
- text-decoration: none; }
110
- a:hover {
111
- color: #ffffff;
112
- background-color: #ed1556; }
113
-
114
- #header, #content, #footer {
115
- margin: 0 auto;
116
- background: #eeeeee;
117
- padding: 0 2em;
118
- z-index: 0;
119
- position: relative;
120
- font-size: 1em; }
121
-
122
- #header {
123
- background: #ffffff; }
124
- #header h1 {
125
- font-weight: bold;
126
- font-size: 1.5em; }
127
- #header address.watermark {
128
- position: absolute;
129
- font-weight: bold;
130
- right: 3em;
131
- top: 0;
132
- font-size: .75em;
133
- color: #cccccc; }
134
- #header address.watermark a {
135
- color: #cccccc;
136
- font-weight: bold;
137
- font-size: 2em; }
138
- #header address.watermark a:hover {
139
- background: transparent;
140
- color: #aaaaaa; }
141
-
142
- #content {
143
- padding-top: 1em;
144
- padding-bottom: 2em; }
145
- #content strong {
146
- font-weight: bold; }
147
- #content em {
148
- font-style: italic; }
149
- #content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
150
- color: #4e4e4e; }
151
- #content h1 {
152
- font-size: 2em;
153
- font-weight: bold;
154
- margin-bottom: .75em;
155
- padding: .25em 0;
156
- line-height: 1.2;
157
- border-bottom: 1px solid #c0c0c0; }
158
- #content h2 {
159
- font-weight: bold;
160
- font-size: 1.5em;
161
- margin: 1em 0 .2em; }
162
- #content h3 {
163
- font-weight: bold;
164
- font-size: 1.25em;
165
- margin: .25em 0; }
166
- #content h4, #content h5, #content h6 {
167
- font-weight: bold;
168
- margin-top: .5em; }
169
- #content code, #content pre, #content textarea, #content input {
170
- font-family: Monaco, Deja Vu Sans Mono, Inconsolata, Consolas, monospace; }
171
- #content form p {
172
- margin-top: 1em;
173
- position: relative; }
174
- #content form p.checkbox label {
175
- margin-top: 0 !important; }
176
- #content form input.text, #content form textarea {
177
- width: 30em;
178
- padding: .2em .4em;
179
- color: #4e4e4e; }
180
- #content form input.text {
181
- height: 1.4em; }
182
- #content form label {
183
- float: left;
184
- display: block;
185
- margin-top: .5em;
186
- width: 8em;
187
- margin-right: .75em; }
188
- #content form .with_errors label {
189
- background: red;
190
- color: white;
191
- position: relative;
192
- top: -.7em; }
193
- #content form .with_errors.required label {
194
- position: static;
195
- margin-right: .25em;
196
- padding: 0 .2em; }
197
- #content form .with_errors input, #content form .with_errors textarea {
198
- border: 2px solid #f22;
199
- background: #fee;
200
- color: #222222; }
201
- #content form .required label {
202
- float: none;
203
- display: block;
204
- width: auto;
205
- position: relative;
206
- font-weight: bold;
207
- margin-top: 1em;
208
- text-indent: -.65em; }
209
- #content form .required label:before {
210
- content: "* ";
211
- color: #ed1556; }
212
- #content form .required input.text {
213
- width: 25.6em;
214
- font-size: 24px;
215
- font-weight: bold; }
216
- #content form .normal {
217
- margin-top: 2em; }
218
- #content form h2.notifier label {
219
- float: none;
220
- width: auto;
221
- margin-right: 0; }
222
- #content form h2.notifier label .warning {
223
- font-size: .5em;
224
- font-weight: normal;
225
- color: #999999; }
226
- #content form fieldset {
227
- padding-bottom: 1em;
228
- margin-left: 1.35em;
229
- border-bottom: 1px solid #c0c0c0;
230
- margin-bottom: 1em; }
231
- #content form fieldset h3 {
232
- margin-top: 1em;
233
- margin-bottom: 0; }
234
- #content form fieldset p.normal {
235
- margin-top: 1em; }
236
- #content form fieldset p label {
237
- width: 6.7em; }
238
- #content form p.submit {
239
- margin-top: 2em; }
240
- #content form p.submit:after {
241
- display: block;
242
- clear: both;
243
- float: none;
244
- content: ".";
245
- text-indent: -9999em;
246
- text-align: left; }
247
- #content form p.submit.destroy button, #content form p.submit.manual-build button {
248
- float: none;
249
- display: inline; }
250
- #content form p.submit.manual-build button {
251
- margin-right: 0; }
252
- #content #build form, #content #last_build form {
253
- font-size: .75em; }
254
- #content #build form p.submit, #content #last_build form p.submit {
255
- margin: 0;
256
- padding: 0;
257
- position: absolute;
258
- right: .5em;
259
- top: 1.25em; }
260
- #content .blank_slate p, #content .error p {
261
- position: relative;
262
- top: .3em; }
263
- #content .blank_slate h1, #content .error h1 {
264
- border-width: 0;
265
- margin: 0;
266
- padding: 0; }
267
- #content .blank_slate h1 button, #content .error h1 button {
268
- float: none;
269
- border: 0 none;
270
- background: transparent;
271
- display: inline;
272
- color: #ed1556;
273
- padding: 0.25em 0;
274
- margin: 0; }
275
- #content .blank_slate h1 button:hover, #content .error h1 button:hover {
276
- background: #ed1556;
277
- color: #ffffff; }
278
- #content .error dt {
279
- margin-top: 1.4em;
280
- margin-bottom: .3em;
281
- font-size: 1.75em;
282
- font-family: Georgia, Times New Roman, serif; }
283
- #content .error dd {
284
- line-height: 1.4; }
285
- #content .error .backtrace {
286
- margin: 1em 0;
287
- overflow: scroll;
288
- height: 30em;
289
- border: 1px solid #c0c0c0;
290
- line-height: 1.6; }
291
- #content #projects {
292
- margin: 1em 0 2em;
293
- border-top: 1px solid #c0c0c0; }
294
- #content #projects li {
295
- position: relative;
296
- border-bottom: 1px solid #c0c0c0; }
297
- #content #projects li.odd {
298
- background: #e6e6e6; }
299
- #content #projects li.building {
300
- background: transparent url(/spinner.gif) no-repeat scroll right; }
301
- #content #projects li a {
302
- font-size: 2em;
303
- padding: .25em;
304
- line-height: 1.2;
305
- font-weight: bold;
306
- display: block; }
307
- #content #projects li a.success {
308
- color: #337022; }
309
- #content #projects li a.failed {
310
- color: #ff1100; }
311
- #content #projects li .meta {
312
- position: absolute;
313
- right: .6em;
314
- top: 1.5em;
315
- font-size: 0.8em;
316
- color: #999999;
317
- text-align: right; }
318
- #content #projects li.building .meta {
319
- right: 1.6em; }
320
- #content #projects li.success .meta {
321
- color: #337022; }
322
- #content #projects li.failed .meta {
323
- color: #ff1100; }
324
- #content #previous_builds li a {
325
- display: block;
326
- padding: .25em;
327
- margin-bottom: .25em;
328
- border-width: 1px;
329
- border-style: solid; }
330
- #content #previous_builds li a strong {
331
- font-size: 1.3em; }
332
- #content #previous_builds li a .attribution {
333
- font-size: .9em; }
334
- #content #projects li.success a, #content #previous_builds li.success a {
335
- background-color: #bbf8aa;
336
- border-color: #99d688;
337
- color: #337022; }
338
- #content #projects li.success a .attribution, #content #previous_builds li.success a .attribution {
339
- color: #77b466; }
340
- #content #projects li.success a:hover, #content #previous_builds li.success a:hover {
341
- background-color: #ddffcc; }
342
- #content #projects li.failed a, #content #previous_builds li.failed a {
343
- background-color: #ffbbaa;
344
- border-color: #dd9988;
345
- color: #ff1100; }
346
- #content #projects li.failed a .attribution, #content #previous_builds li.failed a .attribution {
347
- color: #bb7766; }
348
- #content #projects li.failed a:hover, #content #previous_builds li.failed a:hover {
349
- background-color: #ffddcc; }
350
- #content #build, #content #last_build {
351
- position: relative; }
352
- #content #build h1, #content #build blockquote, #content #last_build h1, #content #last_build blockquote {
353
- border-width: 0 1px;
354
- border-style: solid; }
355
- #content #build h1, #content #last_build h1 {
356
- border-top-width: 1px; }
357
- #content #build blockquote, #content #last_build blockquote {
358
- bottom-bottom-width: 1px;
359
- line-height: 1.4; }
360
- #content #build.success h1, #content #build.success blockquote, #content #last_build.success h1, #content #last_build.success blockquote {
361
- background-color: #bbf8aa;
362
- border-color: #99d688 #ccffbb #ccffbb #99d688; }
363
- #content #build.success h1, #content #last_build.success h1 {
364
- color: #337022; }
365
- #content #build.success .meta, #content #last_build.success .meta {
366
- color: #77b466; }
367
- #content #build.failed h1, #content #build.failed blockquote, #content #last_build.failed h1, #content #last_build.failed blockquote {
368
- background-color: #ffbbaa;
369
- border-color: #dd9988 #ffccbb #ffccbb #dd9988; }
370
- #content #build.failed h1, #content #last_build.failed h1 {
371
- color: #ff1100; }
372
- #content #build.failed .meta, #content #last_build.failed .meta {
373
- color: #bb7766; }
374
- #content #build h1, #content #last_build h1 {
375
- margin-top: .5em;
376
- margin-bottom: 0;
377
- padding: .25em;
378
- color: #337022; }
379
- #content #build blockquote, #content #last_build blockquote {
380
- padding: .75em;
381
- margin-bottom: 2em; }
382
- #content #build blockquote .meta, #content #last_build blockquote .meta {
383
- margin-top: 1em;
384
- display: block;
385
- font-size: .9em; }
386
- #content #build pre.output, #content #last_build pre.output {
387
- background: #111;
388
- color: #fff;
389
- padding: .5em;
390
- overflow: auto;
391
- max-height: 50em;
392
- font-size: .825em; }
393
- #content #build pre.output .color30, #content #last_build pre.output .color30 {
394
- color: #333; }
395
- #content #build pre.output .color31, #content #last_build pre.output .color31 {
396
- color: #e33; }
397
- #content #build pre.output .color32, #content #last_build pre.output .color32 {
398
- color: #3e3; }
399
- #content #build pre.output .color33, #content #last_build pre.output .color33 {
400
- color: #ee3; }
401
- #content #build pre.output .color34, #content #last_build pre.output .color34 {
402
- color: #33e; }
403
- #content #build pre.output .color35, #content #last_build pre.output .color35 {
404
- color: #e3e; }
405
- #content #build pre.output .color36, #content #last_build pre.output .color36 {
406
- color: #3ee; }
407
- #content #build pre.output .color37, #content #last_build pre.output .color37 {
408
- color: #fff; }
409
- #content #push_path {
410
- display: block;
411
- margin-top: 1em;
412
- margin-left: 2em; }
413
-
414
- a.success {
415
- color: #bbf8aa; }
416
- a.success:hover {
417
- background-color: #bbf8aa;
418
- color: white; }
419
- a.failed {
420
- color: #ffbbaa; }
421
- a.failed:hover {
422
- background-color: #ffbbaa;
423
- color: white; }
424
-
425
- #footer {
426
- padding: 1.5em 2.5em;
427
- border-top: 1px solid #ccc;
428
- font-size: .8em;
429
- color: #666;
430
- text-align: right; }
431
- #footer strong {
432
- font-weight: bold; }
433
-
434
- table {
435
- margin-top: 20px;
436
- border-collapse: collapse;
437
- border: 1px solid #666;
438
- background: #fff;
439
- margin-bottom: 20px;
440
- }
441
-
442
- table tr.light {
443
- background: #fff;
444
- }
445
-
446
- table tr.dark {
447
- background: #f9f9f9;
448
- }
449
-
450
- table tr:hover {
451
- background: #FFFFC0;
452
- }
453
-
454
- table td, table th {
455
- padding: 4px;
456
- font-size: 11px;
457
- }
458
- table th {
459
- text-align: center;
460
- color: #337022;
461
- background: #DDFFCC;
462
- font-weight: bold;
463
- border: #99D688 1px solid;
464
- }
465
-
466
- table td {
467
- border: #d0d0d0 1px solid;
468
- }
469
-
470
- table td.score {
471
- text-align: right;
472
- }
473
-
474
- .warning {
475
- background: yellow;
476
- }
477
- .rcov_code td {
478
- border-bottom: 1px solid #ddd ;
479
- padding: 0;
480
- margin: 0;
481
- }
482
- .rcov_code tr {
483
- border: 0px;
484
- padding:0px;
485
- margin: 0px;
486
- }
487
- .rcov_code pre {
488
- border: 0px;
489
- padding: 0px;
490
- margin: 0px;
491
- }
492
- .rcov_run {}
493
- .rcov_not_run {
494
- background-color: #d88;
495
- }
496
- .rcov_run a, .rcov_not_run a {
497
- text-decoration: none;
498
- }
499
- .rcov_run a {
500
- color: #333;
501
- }
502
- .rcov_not_run a {
503
- color: #000;
504
- }
505
- .rcov_overflow {
506
- overflow: auto;
507
- font-size: 50%;
508
- }
509
-
510
- .bluff-tooltip {
511
- background: #fff;
512
- border: 1px solid #d1edf5;
513
- padding: 8px 8px 6px;
514
- }
515
- .bluff-tooltip .color {
516
- display: block;
517
- height: 4px;
518
- width: 30px;
519
- margin: 0 0 4px;
520
- overflow: hidden;
521
- }
522
- .bluff-tooltip .data {
523
- font-weight: bold;
524
- }
525
-
526
- </style>
527
- <link REL="SHORTCUT ICON" HREF="/favicon.ico">
528
- <script language="javascript" src="js-class.js" type="text/javascript"></script>
529
- <script language="javascript" src="bluff-min.js" type="text/javascript"></script>
530
- <script language="javascript" src="excanvas.js" type="text/javascript"></script>
531
- </head>
532
- <body>
533
- <div id='header'>
534
- <h1><a href="/">metrics</a> | <a href="index.html">ninjs</a></h1>
535
- <address class='watermark'>
536
- built with
537
- <a href='http://metric-fu.rubyforge.org/'>metric-fu</a>
538
- </address>
539
- </div>
540
- <div id='content'>
541
- <h3>Roodi Results</h3>
542
-
543
- <p><a href="http://roodi.rubyforge.org/">Roodi</a> parses your Ruby code and warns you about design issues you have based on the checks that is has configured.</p>
544
-
545
-
546
-
547
- <canvas id="graph"></canvas>
548
- <script language="javascript" src="roodi.js?1299355612" type="text/javascript"></script>
549
-
550
-
551
- <table>
552
- <tr>
553
- <th>File Path</th>
554
- <th>Warning</th>
555
- </tr>
556
-
557
-
558
- <tr class='light'>
559
- <td><a href='txmt://open/?url=file:///Volumes/Storage/Development/ninjs/lib/ninjs/command.rb&line=88'>lib/ninjs/command.rb:88</a></td>
560
- <td>Method name "generate" cyclomatic complexity is 11. It should be 8 or less.</td>
561
- </tr>
562
-
563
-
564
- <tr class='dark'>
565
- <td><a href='txmt://open/?url=file:///Volumes/Storage/Development/ninjs/lib/ninjs/command.rb&line=115'>lib/ninjs/command.rb:115</a></td>
566
- <td>Rescue block should not be empty.</td>
567
- </tr>
568
-
569
-
570
- <tr class='light'>
571
- <td><a href='txmt://open/?url=file:///Volumes/Storage/Development/ninjs/lib/ninjs/command.rb&line=3'>lib/ninjs/command.rb:3</a></td>
572
- <td>Method "watch" has 39 lines. It should have 20 or less.</td>
573
- </tr>
574
-
575
-
576
- <tr class='dark'>
577
- <td><a href='txmt://open/?url=file:///Volumes/Storage/Development/ninjs/lib/ninjs/command.rb&line=62'>lib/ninjs/command.rb:62</a></td>
578
- <td>Method "help" has 23 lines. It should have 20 or less.</td>
579
- </tr>
580
-
581
-
582
- <tr class='light'>
583
- <td><a href='txmt://open/?url=file:///Volumes/Storage/Development/ninjs/lib/ninjs/command.rb&line=88'>lib/ninjs/command.rb:88</a></td>
584
- <td>Method "generate" has 27 lines. It should have 20 or less.</td>
585
- </tr>
586
-
587
-
588
- <tr class='dark'>
589
- <td><a href='txmt://open/?url=file:///Volumes/Storage/Development/ninjs/lib/ninjs/command.rb&line=88'>lib/ninjs/command.rb:88</a></td>
590
- <td>Method name "generate" has 6 parameters. It should have 5 or less.</td>
591
- </tr>
592
-
593
-
594
- </table>
595
- <p>Generated on 2011-03-05 14:06:52 -0600</p>
596
-
597
- </div>
598
- </body>
599
- </html>