como 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +2 -0
- data/doc/Como/ArgsParseState.html +50 -50
- data/doc/Como/ComoCommon.html +1 -1
- data/doc/Como/MainOpt.html +35 -35
- data/doc/Como/Opt/ErrorWithData.html +1 -1
- data/doc/Como/Opt/InvalidOption.html +1 -1
- data/doc/Como/Opt/MissingArgument.html +1 -1
- data/doc/Como/Opt.html +269 -255
- data/doc/Como/RuleCheck.html +58 -58
- data/doc/Como/RuleDisplay.html +71 -71
- data/doc/Como/Spec.html +2 -2
- data/doc/Como.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +5 -2
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/como.rb +17 -11
- data/lib/version.rb +1 -1
- data/test/golden/subcmd.txt +18 -0
- data/test/test_como.rb +1 -1
- data/test/test_subcmd +2 -0
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
@@ -443,13 +443,13 @@
|
|
443
443
|
<pre class="lines">
|
444
444
|
|
445
445
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
446
|
+
2128
|
447
|
+
2129
|
448
|
+
2130
|
449
|
+
2131</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 2128</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
|
+
2164
|
510
|
+
2165
|
511
|
+
2166</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 2164</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
|
+
2149
|
551
|
+
2150
|
552
|
+
2151</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 2149</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
|
+
2169
|
592
|
+
2170
|
593
|
+
2171</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 2169</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
|
+
2174
|
633
|
+
2175
|
634
|
+
2176</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 2174</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
|
+
2154
|
674
|
+
2155
|
675
|
+
2156</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 2154</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
|
+
2139
|
715
|
+
2140
|
716
|
+
2141</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 2139</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
|
+
2144
|
756
|
+
2145
|
757
|
+
2146</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 2144</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
|
+
2159
|
797
|
+
2160
|
798
|
+
2161</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 2159</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
|
+
2134
|
838
|
+
2135
|
839
|
+
2136</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 2134</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
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
878
|
+
2179
|
879
|
+
2180
|
880
|
+
2181
|
881
|
+
2182
|
882
|
+
2183
|
883
|
+
2184
|
884
|
+
2185</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 2179</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,7 +903,7 @@
|
|
903
903
|
</div>
|
904
904
|
|
905
905
|
<div id="footer">
|
906
|
-
Generated on
|
906
|
+
Generated on Sun Jan 1 15:54:19 2017 by
|
907
907
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
908
908
|
0.8.7.6 (ruby-2.3.1).
|
909
909
|
</div>
|
data/doc/Como/ComoCommon.html
CHANGED
@@ -518,7 +518,7 @@
|
|
518
518
|
</div>
|
519
519
|
|
520
520
|
<div id="footer">
|
521
|
-
Generated on
|
521
|
+
Generated on Sun Jan 1 15:54:18 2017 by
|
522
522
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
523
523
|
0.8.7.6 (ruby-2.3.1).
|
524
524
|
</div>
|
data/doc/Como/MainOpt.html
CHANGED
@@ -352,20 +352,20 @@
|
|
352
352
|
<pre class="lines">
|
353
353
|
|
354
354
|
|
355
|
-
2075
|
356
|
-
2076
|
357
|
-
2077
|
358
|
-
2078
|
359
|
-
2079
|
360
|
-
2080
|
361
|
-
2081
|
362
355
|
2082
|
363
356
|
2083
|
364
357
|
2084
|
365
|
-
2085
|
358
|
+
2085
|
359
|
+
2086
|
360
|
+
2087
|
361
|
+
2088
|
362
|
+
2089
|
363
|
+
2090
|
364
|
+
2091
|
365
|
+
2092</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 2082</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
|
+
2078
|
420
|
+
2079
|
421
|
+
2080</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 2078</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
|
+
2075
|
463
|
+
2076
|
464
|
+
2077</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 2075</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
|
+
2078
|
506
|
+
2079
|
507
|
+
2080</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 2078</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
|
+
2096
|
554
|
+
2097
|
555
|
+
2098</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 2096</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,13 +591,6 @@
|
|
591
591
|
<pre class="lines">
|
592
592
|
|
593
593
|
|
594
|
-
2095
|
595
|
-
2096
|
596
|
-
2097
|
597
|
-
2098
|
598
|
-
2099
|
599
|
-
2100
|
600
|
-
2101
|
601
594
|
2102
|
602
595
|
2103
|
603
596
|
2104
|
@@ -605,10 +598,17 @@
|
|
605
598
|
2106
|
606
599
|
2107
|
607
600
|
2108
|
608
|
-
2109
|
601
|
+
2109
|
602
|
+
2110
|
603
|
+
2111
|
604
|
+
2112
|
605
|
+
2113
|
606
|
+
2114
|
607
|
+
2115
|
608
|
+
2116</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 2102</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,7 +635,7 @@
|
|
635
635
|
</div>
|
636
636
|
|
637
637
|
<div id="footer">
|
638
|
-
Generated on
|
638
|
+
Generated on Sun Jan 1 15:54:19 2017 by
|
639
639
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
640
640
|
0.8.7.6 (ruby-2.3.1).
|
641
641
|
</div>
|
@@ -295,7 +295,7 @@
|
|
295
295
|
</div>
|
296
296
|
|
297
297
|
<div id="footer">
|
298
|
-
Generated on
|
298
|
+
Generated on Sun Jan 1 15:54:18 2017 by
|
299
299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
300
|
0.8.7.6 (ruby-2.3.1).
|
301
301
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Sun Jan 1 15:54:18 2017 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.8.7.6 (ruby-2.3.1).
|
155
155
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Sun Jan 1 15:54:18 2017 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.8.7.6 (ruby-2.3.1).
|
155
155
|
</div>
|