manager 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHART.html +1270 -0
  3. data/MANUAL.html +1252 -0
  4. data/bin/manager +43 -0
  5. data/examples/array/CHART.html +1376 -0
  6. data/examples/array/MANUAL.html +1126 -0
  7. data/examples/array/spec +3438 -0
  8. data/lib/manager.rb +528 -0
  9. data/lib/manager/annotation +96 -0
  10. data/lib/manager/input +189 -0
  11. data/lib/manager/js +257 -0
  12. data/lib/manager/refine_module +142 -0
  13. data/lib/manager/refine_object_mapping +143 -0
  14. data/lib/manager/refine_test +97 -0
  15. data/lib/manager/render +1228 -0
  16. data/lib/manager/spell_check +49 -0
  17. data/lib/manager/test +404 -0
  18. data/lib/manager/test_helper +9 -0
  19. data/license +9 -0
  20. data/manager.gemspec +21 -0
  21. data/spec/alternatives_implemented.png +0 -0
  22. data/spec/alternatives_unimplemented.png +0 -0
  23. data/spec/annotations.png +0 -0
  24. data/spec/benchmark_test.png +0 -0
  25. data/spec/citation.png +0 -0
  26. data/spec/code_block.png +0 -0
  27. data/spec/context_module.png +0 -0
  28. data/spec/documentation +1289 -0
  29. data/spec/external_link.png +0 -0
  30. data/spec/image.png +0 -0
  31. data/spec/list.png +0 -0
  32. data/spec/long.png +0 -0
  33. data/spec/main_and_object.png +0 -0
  34. data/spec/markup.png +0 -0
  35. data/spec/module_diagram.png +0 -0
  36. data/spec/navigation.png +0 -0
  37. data/spec/nested_section_headers.png +0 -0
  38. data/spec/ruby.png +0 -0
  39. data/spec/setup_teardown.png +0 -0
  40. data/spec/short.png +0 -0
  41. data/spec/signature.png +0 -0
  42. data/spec/spec +76 -0
  43. data/spec/spec_example.png +0 -0
  44. data/spec/table.png +0 -0
  45. data/spec/test_header.png +0 -0
  46. data/spec/test_non_unit_spec +184 -0
  47. data/spec/test_program +71 -0
  48. data/spec/test_unit_spec +790 -0
  49. data/spec/tutorial_1.png +0 -0
  50. data/spec/tutorial_2.png +0 -0
  51. data/spec/tutorial_3.png +0 -0
  52. data/spec/tutorial_4.png +0 -0
  53. data/spec/tutorial_5.png +0 -0
  54. data/spec/tutorial_6.png +0 -0
  55. data/spec/tutorial_7.png +0 -0
  56. data/spec/tutorial_8.png +0 -0
  57. data/spec/unambiguous_links.png +0 -0
  58. data/spec/unit_test_failure.png +0 -0
  59. data/spec/unit_test_raise.png +0 -0
  60. data/spec/unit_test_receiver.png +0 -0
  61. data/spec/unit_test_succeed.png +0 -0
  62. data/spec/unit_test_success.png +0 -0
  63. data/spec/unit_test_throw.png +0 -0
  64. data/spec/valid_heading.png +0 -0
  65. data/spec/with_expr.png +0 -0
  66. data/spec/without_expr.png +0 -0
  67. data/theme/2016a.css +670 -0
  68. data/theme/coderay_github.css +132 -0
  69. metadata +140 -11
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,670 @@
1
+ /* Author: sawa. The default design */
2
+
3
+ *{
4
+ box-sizing: border-box;
5
+ -webkit-user-select: text;
6
+ -khtml-user-select: text;
7
+ -moz-user-select: text;
8
+ -ms-user-select: text;
9
+ user-select: text;
10
+ }
11
+ body, table{
12
+ font-family: sans-serif;
13
+ font-size: 12px;
14
+ }
15
+ body{
16
+ margin: 0;
17
+ display: flex;
18
+ flex-wrap: nowrap;
19
+ align-items: stretch;
20
+ flex-direction: row;
21
+ height: 100%;
22
+ text-align: justify;
23
+ text-rendering: optimizelegibility;
24
+ color: hsl(100, 0%, 30%);
25
+ background-color: hsl(0, 0%, 100%);
26
+ word-break: normal;
27
+ }
28
+ #top, #top-title{
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ align-items: center;
32
+ justify-content: center;
33
+ font-size: 18px;
34
+ }
35
+ #top *{
36
+ -webkit-touch-callout: none;
37
+ -webkit-user-select: none;
38
+ -khtml-user-select: none;
39
+ -moz-user-select: none;
40
+ -ms-user-select: none;
41
+ user-select: none;
42
+ }
43
+ #top, #user #top-title{
44
+ padding: 2;
45
+ background-color: hsl(0, 0%, 97%);
46
+ color: hsl(0, 0%, 30%);
47
+ }
48
+ #dev #top-title{
49
+ margin: 1em;
50
+ color: white;
51
+ }
52
+ #user #top-title, #dev #top{
53
+ border-bottom: solid 6px hsl(211, 85%, 29%);
54
+ }
55
+ #top > span{
56
+ margin-left: 5;
57
+ margin-right: 5;
58
+ display: inline-flex;
59
+ flex-direction: row;
60
+ flex-wrap: wrap;
61
+ align-items: center;
62
+ justify-content: center;
63
+ white-space: pre;
64
+ padding-top: 4;
65
+ padding-bottom: 4;
66
+ }
67
+ .separator{
68
+ font-size: 18px;
69
+ color: hsl(60, 5%, 72%);
70
+ margin-left: 0.5em;
71
+ margin-right: 0.5em;
72
+ }
73
+ #left{
74
+ padding: 0 20 24 40;
75
+ flex-basis: 480px;
76
+ flex-shrink: 0;
77
+ display: flex;
78
+ flex-wrap: nowrap;
79
+ align-items: stretch;
80
+ flex-direction: column;
81
+ border-right: solid 1px hsl(60, 5%, 68%);
82
+ background-color: #4F6B89;
83
+ color: hsl(0, 0%, 100%);
84
+ }
85
+ #left .tablewrapper{
86
+ max-height: 32%;
87
+ overflow-y: auto;
88
+ border-top: solid 1px hsl(60, 5%, 85%);
89
+ border-bottom: solid 1px hsl(60, 5%, 85%);
90
+ }
91
+ #left table{
92
+ margin: 0;
93
+ width: 100%;
94
+ background-color: hsl(0, 0%, 100%);
95
+ }
96
+ #gemspec td:nth-child(1){
97
+ white-space: nowrap;
98
+ }
99
+ #gemspec td:nth-child(2){
100
+ word-break: break-all;
101
+ }
102
+ #files td:nth-child(3), #files td:nth-child(4){
103
+ white-space: nowrap;
104
+ }
105
+ #files td:nth-child(4){
106
+ text-align: right;
107
+ }
108
+ #right{
109
+ display: flex;
110
+ flex-wrap: nowrap;
111
+ align-items: stretch;
112
+ flex-direction: column;
113
+ overflow: hidden;
114
+ flex-grow: 1;
115
+ }
116
+ #main{
117
+ flex-basis: 0;
118
+ flex-grow: 1;
119
+ display: flex;
120
+ flex-wrap: nowrap;
121
+ align-items: stretch;
122
+ flex-direction: column;
123
+ overflow-y: auto;
124
+ }
125
+ #user #main{
126
+ padding-top: 12;
127
+ padding-bottom: 12;
128
+ padding-right: 240;
129
+ padding-left: 240;
130
+ }
131
+ #dev #main{
132
+ padding-top: 12;
133
+ padding-bottom: 12;
134
+ padding-right: 40;
135
+ padding-left: 20;
136
+ }
137
+ #main:before{
138
+ position: fixed;
139
+ margin-top: 20px;
140
+ margin-left: -20px;
141
+ content: "\25B8"; /* blacktriangleright */
142
+ }
143
+ #user #main:before{
144
+ top: 234;
145
+ }
146
+ #dev #main:before{
147
+ top: 300;
148
+ }
149
+ [onclick]:not([folded]){
150
+ cursor: pointer;
151
+ }
152
+ [onclick][folded="true"]{
153
+ cursor: s-resize;
154
+ }
155
+ [onclick][folded="false"]{
156
+ cursor: n-resize;
157
+ }
158
+ table{
159
+ border-collapse: collapse;
160
+ margin-top: 1em;
161
+ margin-bottom: 1em;
162
+ }
163
+ tr{
164
+ border-color: hsl(60, 27%, 78%);
165
+ border-style: solid;
166
+ }
167
+ #left tr:first-of-type{
168
+ border-left-width: 1px;
169
+ border-right-width: 1px;
170
+ border-top-width: 0;
171
+ border-bottom-width: 1px;
172
+ }
173
+ #left tr:last-of-type{
174
+ border-left-width: 1px;
175
+ border-right-width: 1px;
176
+ border-top-width: 1px;
177
+ border-bottom-width: 0;
178
+ }
179
+ #main tr, #left tr:not(:last-of-type):not(:first-of-type){
180
+ border-left-width: 1px;
181
+ border-right-width: 1px;
182
+ border-top-width: 1px;
183
+ border-bottom-width: 1px;
184
+ }
185
+ td{
186
+ padding-left: 3px;
187
+ padding-right: 3px;
188
+ border-style: solid;
189
+ border-color: hsl(60, 27%, 78%);
190
+ border-width: 1px;
191
+ }
192
+ figure{
193
+ text-align: center;
194
+ margin-left: 0;
195
+ margin-right: 0;
196
+ }
197
+ figcaption{
198
+ text-align: center;
199
+ margin: 2;
200
+ }
201
+ input{
202
+ vertical-align: middle;
203
+ }
204
+ h1, h2, h3, h4{
205
+ display:flex;
206
+ flex-direction: row;
207
+ align-items: center;
208
+ white-space: pre-wrap;
209
+ word-break: break-word;
210
+ font-weight: normal;
211
+ /* color: hsl(180, 93%, 6%);*/
212
+ }
213
+ h1{
214
+ color: hsl(9, 30%, 15%);
215
+ }
216
+ h2{
217
+ font-size: 163%;
218
+ margin-left: 1em;
219
+ margin-right: 0.5em;
220
+ color: hsl(9, 30%, 15%);
221
+ }
222
+ h3{
223
+ font-size: 140%;
224
+ margin-left: 1em;
225
+ margin-right: 0.5em;
226
+ padding-left: 1em;
227
+ border-bottom: solid 1px hsl(0, 0%, 80%);
228
+ color: hsl(9, 30%, 15%);
229
+ }
230
+ h4{
231
+ font-size: 120%;
232
+ margin-left: 1em;
233
+ margin-right: 0.5em;
234
+ padding-left: 2em;
235
+ border-bottom: solid 1px hsl(0, 0%, 80%);
236
+ font-style: oblique;
237
+ color: hsl(9, 30%, 15%);
238
+ }
239
+ h5{
240
+ font-size: 110%;
241
+ margin-left: 1em;
242
+ margin-right: 0.5em;
243
+ padding-left: 3em;
244
+ border-bottom: solid 1px hsl(0, 0%, 80%);
245
+ color: hsl(9, 30%, 15%);
246
+ }
247
+ h6{
248
+ font-size: 100%;
249
+ margin-left: 1em;
250
+ margin-right: 0.5em;
251
+ padding-left: 4em;
252
+ border-bottom: solid 1px hsl(0, 0%, 80%);
253
+ color: hsl(9, 30%, 15%);
254
+ }
255
+ .module-header{
256
+ /*Margin among `h2.module-header` does not collapse because
257
+ of extra embedding level `.margin`. Hence margin needs to be set to half of other `h2`. */
258
+ margin-top: 0.415em;
259
+ margin-bottom: 0.415em;
260
+ }
261
+ .feature:not(:first-child)[onclick]:hover{
262
+ background-color: hsl(90, 10%, 97%);
263
+ }
264
+ .feature-name{
265
+ font-size: 110%;
266
+ font-weight: bold;
267
+ font-family: sans-serif;
268
+ }
269
+ [folded="true"] > h1, [folded="true"] > h2, [folded="true"] > h3, [folded="true"] > h4, [folded="true"] > h5, [folded="true"] > h6{
270
+ box-shadow: inset 0px -21px 46px -26px hsla(0,0%,0%,0.2);
271
+ }
272
+ .feature-contents{
273
+ padding-left: 1em;
274
+ }
275
+ .head{
276
+ font-weight: bold;
277
+ font-family: sans-serif;
278
+ font-size: 15px;
279
+ }
280
+ .user-item, .dev-item{
281
+ margin-top: 1;
282
+ margin-bottom: 1;
283
+ padding-left: 0.5em;
284
+ padding-right: 0.5em;
285
+ border-radius: 5px;
286
+ }
287
+ #dev .user-item{
288
+ background-color: hsl(180, 20%, 86%);
289
+ padding-top: 0.1px;
290
+ padding-bottom: 0.1px;
291
+ }
292
+ .diagram{
293
+ text-align: left;
294
+ margin: 0.75em 2em;
295
+ }
296
+ .mixins{
297
+ display: inline-block;
298
+ margin: 2 1;
299
+ background-color: #c2ccd5;
300
+ border: solid 1px #246a7d;
301
+ color: #246a7d;
302
+ padding: 1 4;
303
+ border-radius: 2px;
304
+ font-size: 10.5px;
305
+ }
306
+ .mixins > div{
307
+ width: 100%;
308
+ text-align: center;
309
+ line-height: 2.55ex;
310
+ }
311
+ .mixins > .baseline ~ div{
312
+ float: left;
313
+ clear: both;
314
+ }
315
+ .p, li{
316
+ font-family: serif;
317
+ font-size: 17px;
318
+ }
319
+ .p{
320
+ margin-top: 1em;
321
+ margin-bottom: 1em;
322
+ }
323
+ .CodeRay, table, figure{
324
+ margin-top: 1.33em;
325
+ margin-bottom: 1.33em;
326
+ margin-left: 2em;
327
+ margin-right: 2em;
328
+ }
329
+ .dev-text, table{
330
+ font-family: sans-serif;
331
+ font-size: 13px;
332
+ }
333
+ .CodeRay{
334
+ overflow-x: auto;
335
+ }
336
+ .CodeRay, code{
337
+ font-size: 12px;
338
+ }
339
+ .inline{
340
+ padding: 3px 4px;
341
+ line-height: 2.5ex;
342
+ border-radius: 0.4ex;
343
+ white-space: pre-wrap;
344
+ font-size: 12px;
345
+ background-color: hsl(50, 35%, 89%);
346
+ color: hsl(0, 0%, 40%);
347
+ word-break: break-all;
348
+ }
349
+ li{
350
+ margin-top: 5;
351
+ margin-bottom: 5;
352
+ }
353
+ .indent{
354
+ padding-left: 2.3em;
355
+ }
356
+ .hang-indent{
357
+ margin-right: -2.3em;
358
+ }
359
+ .statistics{
360
+ font-size: 12px;
361
+ }
362
+ #current{
363
+ color: black;
364
+ font-weight: bold;
365
+ }
366
+ .navigation{
367
+ display: inline-flex;
368
+ flex-direction: row;
369
+ align-items: center;
370
+ }
371
+ .mode.tag, .arrow.tag,
372
+ .missing_doc.tag, .navigation .bad_doc.tag, .agenda.tag, .log.tag,
373
+ .missing_test.tag, .bad_test.tag, .untestable.tag, .bug.tag, .success.tag, .benchmark.tag{
374
+ display: inline-flex;
375
+ flex-direction: row;
376
+ align-items: center;
377
+ justify-content: center;
378
+ white-space: pre;
379
+ height: 18px;
380
+ margin: 2 0;
381
+ padding-left: 5.5;
382
+ padding-right: 5.5;
383
+ font-family: sans-serif;
384
+ font-size: 10px;
385
+ font-weight: 500;
386
+ border-radius: 9px;
387
+ }
388
+ .unimplemented.tag, .protected.tag, .private.tag, .public.tag,
389
+ .constant.tag, .singleton.tag, .instance.tag,
390
+ .undocumented.tag, .hidden.tag, .misplaced.tag, .moved.tag{
391
+ display: inline-flex;
392
+ flex-direction: row;
393
+ align-items: center;
394
+ justify-content: center;
395
+ white-space: pre;
396
+ height: 18px;
397
+ margin: 2 0;
398
+ padding-left: 5.5;
399
+ padding-right: 5.5;
400
+ font-family: sans-serif;
401
+ font-size: 10px;
402
+ font-weight: 500;
403
+ border-radius: 2px;
404
+ }
405
+ .tag.mode, .tag.arrow{
406
+ color: hsl(9, 69%, 16%);
407
+ vertical-align: middle;
408
+ line-height: 100%;
409
+ font-size: 12px;
410
+ }
411
+ .constant{
412
+ color: #DB7551;
413
+ }
414
+ .constant.tag{
415
+ background-color: #DB7551;
416
+ color: white;
417
+ }
418
+ .singleton{
419
+ color: #68894F;
420
+ }
421
+ .singleton.tag{
422
+ background-color: #68894F;
423
+ color: white;
424
+ }
425
+ .instance{
426
+ color: #4F6589;
427
+ }
428
+ .instance.tag{
429
+ background-color: #4F6589;
430
+ color: white;
431
+ }
432
+ .public{
433
+ color: #090705;
434
+ }
435
+ .public.tag{
436
+ background-color: #CCBBA7;
437
+ border: solid 1px;
438
+ }
439
+ .private{
440
+ color: #090705;
441
+ }
442
+ .private.tag{
443
+ background-color: #9B7C59;
444
+ border: solid 1px;
445
+ }
446
+ .protected{
447
+ color: #D6AF86;
448
+ }
449
+ .protected.tag{
450
+ background-color: #47160D;
451
+ border: solid 1px;
452
+ }
453
+ .hidden, .moved{
454
+ color: gray;
455
+ }
456
+ .hidden.tag, .moved.tag{
457
+ background-color: white;
458
+ color: #878787;
459
+ border: solid 1px;
460
+ }
461
+ .agenda{
462
+ color: #878787;
463
+ }
464
+ .agenda.tag{
465
+ background-color: #878787;
466
+ color: white;
467
+ }
468
+ .log{
469
+ color: #878787;
470
+ }
471
+ .log.tag{
472
+ background-color: white;
473
+ color: #878787;
474
+ border: solid 1px;
475
+ }
476
+ .undocumented, .misplaced, .missing_doc, .bad_doc, .missing_test, .bad_test{
477
+ color: #F79833;
478
+ }
479
+ .navigation .bad_doc{
480
+ font-weight: inherit;
481
+ text-decoration: inherit;
482
+ }
483
+ .anchor .bad_doc{
484
+ font-weight: bold;
485
+ border-bottom: dotted 2px;
486
+ }
487
+ .undocumented.tag, .misplaced.tag, .missing_doc.tag, .navigation .bad_doc.tag, .missing_test.tag, .bad_test.tag{
488
+ background-color: #F79833;
489
+ color: white;
490
+ }
491
+ .untestable{
492
+ color: hsl(54, 43%, 38%);
493
+ }
494
+ .untestable.tag{
495
+ background-color: hsl(54, 43%, 38%);
496
+ color: white;
497
+ }
498
+ .unimplemented, .bug{
499
+ color: hsl(0, 80%, 50%);
500
+ }
501
+ .unimplemented.tag, .bug.tag{
502
+ background-color: hsl(0, 80%, 50%);
503
+ color: white;
504
+ }
505
+ .success{
506
+ color: #00a15a;
507
+ }
508
+ .success.tag{
509
+ background-color: #00a15a;
510
+ color: white;
511
+ }
512
+ .backtrace col:nth-child(1){
513
+ width: 100%;
514
+ }
515
+ .backtrace td:nth-child(2) > code{
516
+ white-space: nowrap;
517
+ }
518
+ .benchmark{
519
+ color: hsl(263, 43%, 38%);
520
+ }
521
+ .benchmark.tag{
522
+ background-color: hsl(263, 43%, 38%);
523
+ color: white;
524
+ }
525
+ .barcharts{
526
+ border-collapse: separate;
527
+ border-spacing: 3 0;
528
+ }
529
+ .barcharts col:nth-child(2){
530
+ width: 100%;
531
+ }
532
+ .barcharts td:nth-child(1) > code{
533
+ float: right;
534
+ font-size: 73%;
535
+ white-space: nowrap;
536
+ }
537
+ .barcharts td:nth-child(2){
538
+ padding: 3 0;
539
+ background-color: hsl(250, 7%, 92%);
540
+ }
541
+ caption{
542
+ margin: 4;
543
+ }
544
+ .barchart{
545
+ display: flex;
546
+ flex-wrap: nowrap;
547
+ align-items: stretch;
548
+ flex-direction: row;
549
+ height: 21px;
550
+ }
551
+ .barchart .fill{
552
+ padding: 0 6;
553
+ background-color: hsl(240, 40%, 50%);
554
+ min-width: 1;
555
+ color: hsl(0, 0%, 63%);
556
+ font-family: sans-serif;
557
+ font-size: 75%;
558
+ text-align: right;
559
+ white-space: nowrap;
560
+ overflow: visible;
561
+ line-height: 21px;
562
+ }
563
+ .barchart .minedge{
564
+ background-color: hsl(0, 50%, 50%);
565
+ border-style: solid;
566
+ border-left-width: 0;
567
+ border-right-width: 0;
568
+ border-top-width: 5px;
569
+ border-bottom-width: 5px;
570
+ border-color: hsl(240, 40%, 50%);
571
+ width: 1px;
572
+ }
573
+ .barchart .maxedge{
574
+ background-color: hsl(0, 50%, 50%);
575
+ border-style: solid;
576
+ border-left-width: 0;
577
+ border-right-width: 0;
578
+ border-top-width: 5px;
579
+ border-bottom-width: 5px;
580
+ border-color: hsl(250, 7%, 92%);
581
+ width: 1px;
582
+ }
583
+ .barchart .min{
584
+ background-color: hsl(0, 50%, 50%);
585
+ border-style: solid;
586
+ border-left-width: 0;
587
+ border-right-width: 0;
588
+ border-top-width: 10px;
589
+ border-bottom-width: 10px;
590
+ border-color: hsl(240, 40%, 50%);
591
+ }
592
+ .barchart .max{
593
+ background-color: hsl(0, 50%, 50%);
594
+ border-style: solid;
595
+ border-left-width: 0;
596
+ border-right-width: 0;
597
+ border-top-width: 10px;
598
+ border-bottom-width: 10px;
599
+ border-color: hsl(250, 7%, 92%);
600
+ }
601
+ .verification{
602
+ color: hsl(180, 61%, 50%);
603
+ }
604
+ .gray{
605
+ color: darkgray;
606
+ }
607
+ .right{
608
+ float: right;
609
+ }
610
+ .clear{
611
+ clear: both;
612
+ }
613
+ /* Terminal decorations*/
614
+ .italic{
615
+ font-style: italic;
616
+ }
617
+ .bold{
618
+ font-weight: bold;
619
+ }
620
+ .underline{
621
+ text-decoration: underline;
622
+ }
623
+ .black{
624
+ color: #000000;
625
+ }
626
+ .red{
627
+ color: #c75646;
628
+ }
629
+ .green{
630
+ color: #8eb33b;
631
+ }
632
+ .yellow{
633
+ color: #d0b03c;
634
+ }
635
+ .blue{
636
+ color: #72b3cc;
637
+ }
638
+ .magenta{
639
+ color: #c8a0d1;
640
+ }
641
+ .cyan{
642
+ color: #218693;
643
+ }
644
+ .white{
645
+ color: #b0b0b0;
646
+ }
647
+ .bg-black{
648
+ background-color: #5d5d5d;
649
+ }
650
+ .bg-red{
651
+ background-color: #e09690;
652
+ }
653
+ .bg-green{
654
+ background-color: #cdee69;
655
+ }
656
+ .bg-yellow{
657
+ background-color: #ffe337;
658
+ }
659
+ .bg-blue{
660
+ background-color: #9cd9f0;
661
+ }
662
+ .bg-magenta{
663
+ background-color: #fbb1f9;
664
+ }
665
+ .bg-cyan{
666
+ background-color: #77dfd8;
667
+ }
668
+ .bg-white{
669
+ background-color: #f7f7f7;
670
+ }