como 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.rdoc +2 -0
- data/doc/Como/ArgsParseState.html +50 -50
- data/doc/Como/ComoCommon.html +2 -2
- data/doc/Como/MainOpt.html +32 -32
- data/doc/Como/Opt/ErrorWithData.html +11 -11
- data/doc/Como/Opt/InvalidOption.html +2 -2
- data/doc/Como/Opt/MissingArgument.html +2 -2
- data/doc/Como/Opt.html +402 -402
- data/doc/Como/RuleCheck.html +56 -56
- data/doc/Como/RuleDisplay.html +70 -70
- data/doc/Como/Spec.html +73 -74
- data/doc/Como.html +2 -2
- data/doc/_index.html +2 -2
- data/doc/file.CHANGELOG.html +6 -3
- data/doc/file.README.html +2 -2
- data/doc/index.html +2 -2
- data/doc/top-level-namespace.html +2 -2
- data/lib/como.rb +18 -13
- data/lib/version.rb +1 -1
- data/test/golden/subcmd.txt +16 -0
- data/test/test_subcmd +1 -0
- metadata +63 -68
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3baa7f4b2cf1bf1fcc498037f4fe6e356bb14f64
|
4
|
+
data.tar.gz: 524b7256121391db74cf446fb3a91a739874ad25
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f970fdd2f6260a10a9521b76595288d225e47e152f6215c00820b5da95ff62b4d875789c196c1b2ece3e216fc0268c6c63f76d89e8f53185e9bea8ebbfe8ca30
|
7
|
+
data.tar.gz: 231b37a8d7b039128e9100a34e8a55393d6bc2aac8d5ba5a7bde3651cb72791028903c2aea54ff361a050b08e4b47b07eca88432a8bdf420614b3e00655cbe79
|
data/CHANGELOG.rdoc
CHANGED
@@ -443,13 +443,13 @@
|
|
443
443
|
<pre class="lines">
|
444
444
|
|
445
445
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
446
|
+
2133
|
447
|
+
2134
|
448
|
+
2135
|
449
|
+
2136</pre>
|
450
450
|
</td>
|
451
451
|
<td>
|
452
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
452
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2133</span>
|
453
453
|
|
454
454
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_list'>list</span> <span class='rparen'>)</span>
|
455
455
|
<span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='id identifier rubyid_list'>list</span> <span class='rparen'>)</span>
|
@@ -506,12 +506,12 @@
|
|
506
506
|
<pre class="lines">
|
507
507
|
|
508
508
|
|
509
|
-
|
510
|
-
|
511
|
-
|
509
|
+
2169
|
510
|
+
2170
|
511
|
+
2171</pre>
|
512
512
|
</td>
|
513
513
|
<td>
|
514
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
514
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2169</span>
|
515
515
|
|
516
516
|
<span class='kw'>def</span> <span class='id identifier rubyid_done?'>done?</span>
|
517
517
|
<span class='ivar'>@idx</span> <span class='op'>>=</span> <span class='ivar'>@list</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
@@ -547,12 +547,12 @@
|
|
547
547
|
<pre class="lines">
|
548
548
|
|
549
549
|
|
550
|
-
|
551
|
-
|
552
|
-
|
550
|
+
2154
|
551
|
+
2155
|
552
|
+
2156</pre>
|
553
553
|
</td>
|
554
554
|
<td>
|
555
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
555
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2154</span>
|
556
556
|
|
557
557
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='op'>=</span> <span class='ivar'>@idx</span> <span class='rparen'>)</span>
|
558
558
|
<span class='ivar'>@args</span><span class='lbracket'>[</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rbracket'>]</span>
|
@@ -588,12 +588,12 @@
|
|
588
588
|
<pre class="lines">
|
589
589
|
|
590
590
|
|
591
|
-
|
592
|
-
|
593
|
-
|
591
|
+
2174
|
592
|
+
2175
|
593
|
+
2176</pre>
|
594
594
|
</td>
|
595
595
|
<td>
|
596
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
596
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2174</span>
|
597
597
|
|
598
598
|
<span class='kw'>def</span> <span class='id identifier rubyid_isOpt'>isOpt</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='rparen'>)</span>
|
599
599
|
<span class='id identifier rubyid_str'>str</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>..</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-</span><span class='tstring_end'>"</span></span>
|
@@ -629,12 +629,12 @@
|
|
629
629
|
<pre class="lines">
|
630
630
|
|
631
631
|
|
632
|
-
|
633
|
-
|
634
|
-
|
632
|
+
2179
|
633
|
+
2180
|
634
|
+
2181</pre>
|
635
635
|
</td>
|
636
636
|
<td>
|
637
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
637
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2179</span>
|
638
638
|
|
639
639
|
<span class='kw'>def</span> <span class='id identifier rubyid_isOptTerm'>isOptTerm</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='rparen'>)</span>
|
640
640
|
<span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>--</span><span class='tstring_end'>"</span></span>
|
@@ -670,12 +670,12 @@
|
|
670
670
|
<pre class="lines">
|
671
671
|
|
672
672
|
|
673
|
-
|
674
|
-
|
675
|
-
|
673
|
+
2159
|
674
|
+
2160
|
675
|
+
2161</pre>
|
676
676
|
</td>
|
677
677
|
<td>
|
678
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
678
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2159</span>
|
679
679
|
|
680
680
|
<span class='kw'>def</span> <span class='id identifier rubyid_last'>last</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='op'>=</span> <span class='ivar'>@idx</span> <span class='rparen'>)</span>
|
681
681
|
<span class='id identifier rubyid_idx'>idx</span> <span class='op'>==</span> <span class='lparen'>(</span> <span class='ivar'>@args</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='op'>-</span><span class='int'>1</span> <span class='rparen'>)</span>
|
@@ -711,12 +711,12 @@
|
|
711
711
|
<pre class="lines">
|
712
712
|
|
713
713
|
|
714
|
-
|
715
|
-
|
716
|
-
|
714
|
+
2144
|
715
|
+
2145
|
716
|
+
2146</pre>
|
717
717
|
</td>
|
718
718
|
<td>
|
719
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
719
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2144</span>
|
720
720
|
|
721
721
|
<span class='kw'>def</span> <span class='kw'>next</span>
|
722
722
|
<span class='ivar'>@idx</span> <span class='op'>+=</span> <span class='int'>1</span>
|
@@ -752,12 +752,12 @@
|
|
752
752
|
<pre class="lines">
|
753
753
|
|
754
754
|
|
755
|
-
|
756
|
-
|
757
|
-
|
755
|
+
2149
|
756
|
+
2150
|
757
|
+
2151</pre>
|
758
758
|
</td>
|
759
759
|
<td>
|
760
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
760
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2149</span>
|
761
761
|
|
762
762
|
<span class='kw'>def</span> <span class='id identifier rubyid_prev'>prev</span>
|
763
763
|
<span class='ivar'>@idx</span> <span class='op'>-=</span> <span class='int'>1</span>
|
@@ -793,12 +793,12 @@
|
|
793
793
|
<pre class="lines">
|
794
794
|
|
795
795
|
|
796
|
-
|
797
|
-
|
798
|
-
|
796
|
+
2164
|
797
|
+
2165
|
798
|
+
2166</pre>
|
799
799
|
</td>
|
800
800
|
<td>
|
801
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
801
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2164</span>
|
802
802
|
|
803
803
|
<span class='kw'>def</span> <span class='id identifier rubyid_rest'>rest</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='op'>=</span> <span class='ivar'>@idx</span> <span class='rparen'>)</span>
|
804
804
|
<span class='ivar'>@args</span><span class='lbracket'>[</span> <span class='id identifier rubyid_idx'>idx</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span> <span class='rbracket'>]</span>
|
@@ -834,12 +834,12 @@
|
|
834
834
|
<pre class="lines">
|
835
835
|
|
836
836
|
|
837
|
-
|
838
|
-
|
839
|
-
|
837
|
+
2139
|
838
|
+
2140
|
839
|
+
2141</pre>
|
840
840
|
</td>
|
841
841
|
<td>
|
842
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
842
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2139</span>
|
843
843
|
|
844
844
|
<span class='kw'>def</span> <span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='id identifier rubyid_list'>list</span> <span class='rparen'>)</span>
|
845
845
|
<span class='ivar'>@args</span> <span class='op'>=</span> <span class='id identifier rubyid_list'>list</span>
|
@@ -875,16 +875,16 @@
|
|
875
875
|
<pre class="lines">
|
876
876
|
|
877
877
|
|
878
|
-
2179
|
879
|
-
2180
|
880
|
-
2181
|
881
|
-
2182
|
882
|
-
2183
|
883
878
|
2184
|
884
|
-
2185
|
879
|
+
2185
|
880
|
+
2186
|
881
|
+
2187
|
882
|
+
2188
|
883
|
+
2189
|
884
|
+
2190</pre>
|
885
885
|
</td>
|
886
886
|
<td>
|
887
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
887
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2184</span>
|
888
888
|
|
889
889
|
<span class='kw'>def</span> <span class='id identifier rubyid_toValue'>toValue</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='rparen'>)</span>
|
890
890
|
<span class='kw'>if</span> <span class='id identifier rubyid_str'>str</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>..</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\</span><span class='tstring_end'>"</span></span>
|
@@ -903,9 +903,9 @@
|
|
903
903
|
</div>
|
904
904
|
|
905
905
|
<div id="footer">
|
906
|
-
Generated on
|
906
|
+
Generated on Fri Feb 17 00:05:17 2017 by
|
907
907
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
908
|
-
0.8.7.6 (ruby-2.3.
|
908
|
+
0.8.7.6 (ruby-2.3.3).
|
909
909
|
</div>
|
910
910
|
|
911
911
|
</body>
|
data/doc/Como/ComoCommon.html
CHANGED
@@ -518,9 +518,9 @@
|
|
518
518
|
</div>
|
519
519
|
|
520
520
|
<div id="footer">
|
521
|
-
Generated on
|
521
|
+
Generated on Fri Feb 17 00:05:17 2017 by
|
522
522
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
523
|
-
0.8.7.6 (ruby-2.3.
|
523
|
+
0.8.7.6 (ruby-2.3.3).
|
524
524
|
</div>
|
525
525
|
|
526
526
|
</body>
|
data/doc/Como/MainOpt.html
CHANGED
@@ -352,20 +352,20 @@
|
|
352
352
|
<pre class="lines">
|
353
353
|
|
354
354
|
|
355
|
-
2082
|
356
|
-
2083
|
357
|
-
2084
|
358
|
-
2085
|
359
|
-
2086
|
360
355
|
2087
|
361
356
|
2088
|
362
357
|
2089
|
363
358
|
2090
|
364
359
|
2091
|
365
|
-
2092
|
360
|
+
2092
|
361
|
+
2093
|
362
|
+
2094
|
363
|
+
2095
|
364
|
+
2096
|
365
|
+
2097</pre>
|
366
366
|
</td>
|
367
367
|
<td>
|
368
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
368
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2087</span>
|
369
369
|
|
370
370
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_author'>author</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='comma'>,</span>
|
371
371
|
<span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span>
|
@@ -416,12 +416,12 @@
|
|
416
416
|
<pre class="lines">
|
417
417
|
|
418
418
|
|
419
|
-
|
420
|
-
|
421
|
-
|
419
|
+
2083
|
420
|
+
2084
|
421
|
+
2085</pre>
|
422
422
|
</td>
|
423
423
|
<td>
|
424
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
424
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2083</span>
|
425
425
|
|
426
426
|
<span class='kw'>def</span> <span class='id identifier rubyid_author'>author</span>
|
427
427
|
<span class='ivar'>@author</span>
|
@@ -459,12 +459,12 @@
|
|
459
459
|
<pre class="lines">
|
460
460
|
|
461
461
|
|
462
|
-
|
463
|
-
|
464
|
-
|
462
|
+
2080
|
463
|
+
2081
|
464
|
+
2082</pre>
|
465
465
|
</td>
|
466
466
|
<td>
|
467
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
467
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2080</span>
|
468
468
|
|
469
469
|
<span class='kw'>def</span> <span class='id identifier rubyid_external'>external</span>
|
470
470
|
<span class='ivar'>@external</span>
|
@@ -502,12 +502,12 @@
|
|
502
502
|
<pre class="lines">
|
503
503
|
|
504
504
|
|
505
|
-
|
506
|
-
|
507
|
-
|
505
|
+
2083
|
506
|
+
2084
|
507
|
+
2085</pre>
|
508
508
|
</td>
|
509
509
|
<td>
|
510
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
510
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2083</span>
|
511
511
|
|
512
512
|
<span class='kw'>def</span> <span class='id identifier rubyid_year'>year</span>
|
513
513
|
<span class='ivar'>@year</span>
|
@@ -550,12 +550,12 @@
|
|
550
550
|
<pre class="lines">
|
551
551
|
|
552
552
|
|
553
|
-
|
554
|
-
|
555
|
-
|
553
|
+
2101
|
554
|
+
2102
|
555
|
+
2103</pre>
|
556
556
|
</td>
|
557
557
|
<td>
|
558
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
558
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2101</span>
|
559
559
|
|
560
560
|
<span class='kw'>def</span> <span class='id identifier rubyid_fullCommand'>fullCommand</span>
|
561
561
|
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_progname'>progname</span>
|
@@ -591,11 +591,6 @@
|
|
591
591
|
<pre class="lines">
|
592
592
|
|
593
593
|
|
594
|
-
2102
|
595
|
-
2103
|
596
|
-
2104
|
597
|
-
2105
|
598
|
-
2106
|
599
594
|
2107
|
600
595
|
2108
|
601
596
|
2109
|
@@ -605,10 +600,15 @@
|
|
605
600
|
2113
|
606
601
|
2114
|
607
602
|
2115
|
608
|
-
2116
|
603
|
+
2116
|
604
|
+
2117
|
605
|
+
2118
|
606
|
+
2119
|
607
|
+
2120
|
608
|
+
2121</pre>
|
609
609
|
</td>
|
610
610
|
<td>
|
611
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
611
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2107</span>
|
612
612
|
|
613
613
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageCommand'>usageCommand</span>
|
614
614
|
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\
|
@@ -635,9 +635,9 @@
|
|
635
635
|
</div>
|
636
636
|
|
637
637
|
<div id="footer">
|
638
|
-
Generated on
|
638
|
+
Generated on Fri Feb 17 00:05:17 2017 by
|
639
639
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
640
|
-
0.8.7.6 (ruby-2.3.
|
640
|
+
0.8.7.6 (ruby-2.3.3).
|
641
641
|
</div>
|
642
642
|
|
643
643
|
</body>
|
@@ -224,13 +224,13 @@
|
|
224
224
|
<pre class="lines">
|
225
225
|
|
226
226
|
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
227
|
+
950
|
228
|
+
951
|
229
|
+
952
|
230
|
+
953</pre>
|
231
231
|
</td>
|
232
232
|
<td>
|
233
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
233
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 950</span>
|
234
234
|
|
235
235
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
236
236
|
<span class='kw'>super</span><span class='lparen'>(</span> <span class='id identifier rubyid_message'>message</span> <span class='rparen'>)</span>
|
@@ -274,12 +274,12 @@
|
|
274
274
|
<pre class="lines">
|
275
275
|
|
276
276
|
|
277
|
-
|
278
|
-
|
279
|
-
|
277
|
+
947
|
278
|
+
948
|
279
|
+
949</pre>
|
280
280
|
</td>
|
281
281
|
<td>
|
282
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
282
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 947</span>
|
283
283
|
|
284
284
|
<span class='kw'>def</span> <span class='id identifier rubyid_data'>data</span>
|
285
285
|
<span class='ivar'>@data</span>
|
@@ -295,9 +295,9 @@
|
|
295
295
|
</div>
|
296
296
|
|
297
297
|
<div id="footer">
|
298
|
-
Generated on
|
298
|
+
Generated on Fri Feb 17 00:05:17 2017 by
|
299
299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
|
-
0.8.7.6 (ruby-2.3.
|
300
|
+
0.8.7.6 (ruby-2.3.3).
|
301
301
|
</div>
|
302
302
|
|
303
303
|
</body>
|
@@ -149,9 +149,9 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Fri Feb 17 00:05:17 2017 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
|
-
0.8.7.6 (ruby-2.3.
|
154
|
+
0.8.7.6 (ruby-2.3.3).
|
155
155
|
</div>
|
156
156
|
|
157
157
|
</body>
|
@@ -149,9 +149,9 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Fri Feb 17 00:05:17 2017 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
|
-
0.8.7.6 (ruby-2.3.
|
154
|
+
0.8.7.6 (ruby-2.3.3).
|
155
155
|
</div>
|
156
156
|
|
157
157
|
</body>
|