como 0.1.0 → 0.1.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 +3 -0
- data/doc/Como/ArgsParseState.html +1 -1
- data/doc/Como/ComoCommon.html +1 -1
- data/doc/Como/MainOpt.html +1 -1
- 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 +1 -1
- data/doc/Como/RuleCheck.html +78 -46
- data/doc/Como/RuleDisplay.html +79 -79
- data/doc/Como/Spec.html +1 -1
- data/doc/Como.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +6 -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 +24 -8
- data/test/como_compatible +1 -1
- data/test/como_config +1 -1
- data/test/como_options +1 -1
- data/test/como_queries +1 -1
- data/test/como_rule_1 +1 -1
- data/test/como_rule_2 +1 -1
- data/test/como_subcmd +1 -1
- data/test/como_subcmd_config +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
|
@@ -903,7 +903,7 @@
|
|
|
903
903
|
</div>
|
|
904
904
|
|
|
905
905
|
<div id="footer">
|
|
906
|
-
Generated on Mon
|
|
906
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
907
907
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
908
908
|
0.8.6.1 (ruby-1.9.3).
|
|
909
909
|
</div>
|
data/doc/Como/ComoCommon.html
CHANGED
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
</div>
|
|
297
297
|
|
|
298
298
|
<div id="footer">
|
|
299
|
-
Generated on Mon
|
|
299
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
300
300
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
301
301
|
0.8.6.1 (ruby-1.9.3).
|
|
302
302
|
</div>
|
data/doc/Como/MainOpt.html
CHANGED
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
</div>
|
|
628
628
|
|
|
629
629
|
<div id="footer">
|
|
630
|
-
Generated on Mon
|
|
630
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
631
631
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
632
632
|
0.8.6.1 (ruby-1.9.3).
|
|
633
633
|
</div>
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
</div>
|
|
296
296
|
|
|
297
297
|
<div id="footer">
|
|
298
|
-
Generated on Mon
|
|
298
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
299
299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
300
300
|
0.8.6.1 (ruby-1.9.3).
|
|
301
301
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
</div>
|
|
150
150
|
|
|
151
151
|
<div id="footer">
|
|
152
|
-
Generated on Mon
|
|
152
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
154
154
|
0.8.6.1 (ruby-1.9.3).
|
|
155
155
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
</div>
|
|
150
150
|
|
|
151
151
|
<div id="footer">
|
|
152
|
-
Generated on Mon
|
|
152
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
154
154
|
0.8.6.1 (ruby-1.9.3).
|
|
155
155
|
</div>
|
data/doc/Como/Opt.html
CHANGED
|
@@ -6089,7 +6089,7 @@ href="http://'file'">Opt</a>".</p>
|
|
|
6089
6089
|
</div>
|
|
6090
6090
|
|
|
6091
6091
|
<div id="footer">
|
|
6092
|
-
Generated on Mon
|
|
6092
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
6093
6093
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
6094
6094
|
0.8.6.1 (ruby-1.9.3).
|
|
6095
6095
|
</div>
|
data/doc/Como/RuleCheck.html
CHANGED
|
@@ -528,12 +528,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
528
528
|
<pre class="lines">
|
|
529
529
|
|
|
530
530
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
531
|
+
1941
|
|
532
|
+
1942
|
|
533
|
+
1943</pre>
|
|
534
534
|
</td>
|
|
535
535
|
<td>
|
|
536
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
536
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1941</span>
|
|
537
537
|
|
|
538
538
|
<span class='kw'>def</span> <span class='id identifier rubyid_all'>all</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
539
539
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>==</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
|
@@ -569,12 +569,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
569
569
|
<pre class="lines">
|
|
570
570
|
|
|
571
571
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
572
|
+
1936
|
|
573
|
+
1937
|
|
574
|
+
1938</pre>
|
|
575
575
|
</td>
|
|
576
576
|
<td>
|
|
577
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
577
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1936</span>
|
|
578
578
|
|
|
579
579
|
<span class='kw'>def</span> <span class='id identifier rubyid_any'>any</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
580
580
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>></span> <span class='int'>0</span>
|
|
@@ -610,22 +610,22 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
610
610
|
<pre class="lines">
|
|
611
611
|
|
|
612
612
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
613
|
+
1922
|
|
614
|
+
1923
|
|
615
|
+
1924
|
|
616
|
+
1925
|
|
617
|
+
1926
|
|
618
|
+
1927
|
|
619
|
+
1928</pre>
|
|
620
620
|
</td>
|
|
621
621
|
<td>
|
|
622
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
622
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1922</span>
|
|
623
623
|
|
|
624
624
|
<span class='kw'>def</span> <span class='id identifier rubyid_follow'>follow</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
625
625
|
<span class='kw'>if</span> <span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
|
626
626
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>==</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
|
627
627
|
<span class='kw'>else</span>
|
|
628
|
-
<span class='kw'>
|
|
628
|
+
<span class='kw'>false</span>
|
|
629
629
|
<span class='kw'>end</span>
|
|
630
630
|
<span class='kw'>end</span></pre>
|
|
631
631
|
</td>
|
|
@@ -669,12 +669,15 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
669
669
|
1876
|
|
670
670
|
1877
|
|
671
671
|
1878
|
|
672
|
-
1879
|
|
672
|
+
1879
|
|
673
|
+
1880
|
|
674
|
+
1881</pre>
|
|
673
675
|
</td>
|
|
674
676
|
<td>
|
|
675
677
|
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1869</span>
|
|
676
678
|
|
|
677
679
|
<span class='kw'>def</span> <span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
680
|
+
|
|
678
681
|
<span class='id identifier rubyid_score'>score</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
679
682
|
<span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
|
680
683
|
<span class='kw'>if</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>TrueClass</span> <span class='op'>||</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>FalseClass</span>
|
|
@@ -683,6 +686,7 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
683
686
|
<span class='id identifier rubyid_score'>score</span> <span class='op'>+=</span> <span class='int'>1</span> <span class='kw'>if</span> <span class='ivar'>@opt</span><span class='period'>.</span><span class='id identifier rubyid_argById'>argById</span><span class='lparen'>(</span><span class='id identifier rubyid_i'>i</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_given'>given</span>
|
|
684
687
|
<span class='kw'>end</span>
|
|
685
688
|
<span class='kw'>end</span>
|
|
689
|
+
|
|
686
690
|
<span class='id identifier rubyid_score'>score</span>
|
|
687
691
|
<span class='kw'>end</span></pre>
|
|
688
692
|
</td>
|
|
@@ -716,8 +720,6 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
716
720
|
<pre class="lines">
|
|
717
721
|
|
|
718
722
|
|
|
719
|
-
1888
|
|
720
|
-
1889
|
|
721
723
|
1890
|
|
722
724
|
1891
|
|
723
725
|
1892
|
|
@@ -730,25 +732,55 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
730
732
|
1899
|
|
731
733
|
1900
|
|
732
734
|
1901
|
|
733
|
-
1902
|
|
735
|
+
1902
|
|
736
|
+
1903
|
|
737
|
+
1904
|
|
738
|
+
1905
|
|
739
|
+
1906
|
|
740
|
+
1907
|
|
741
|
+
1908
|
|
742
|
+
1909
|
|
743
|
+
1910
|
|
744
|
+
1911
|
|
745
|
+
1912
|
|
746
|
+
1913
|
|
747
|
+
1914
|
|
748
|
+
1915
|
|
749
|
+
1916
|
|
750
|
+
1917
|
|
751
|
+
1918</pre>
|
|
734
752
|
</td>
|
|
735
753
|
<td>
|
|
736
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
754
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1890</span>
|
|
737
755
|
|
|
738
756
|
<span class='kw'>def</span> <span class='id identifier rubyid_incr'>incr</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
739
|
-
|
|
740
|
-
<span class='
|
|
741
|
-
<span class='id identifier
|
|
757
|
+
|
|
758
|
+
<span class='comment'># Opts given consecutive.
|
|
759
|
+
</span> <span class='id identifier rubyid_consecutiveCnt'>consecutiveCnt</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
760
|
+
|
|
761
|
+
<span class='comment'># Consecutive flag.
|
|
762
|
+
</span> <span class='id identifier rubyid_consecutive'>consecutive</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
763
|
+
|
|
764
|
+
<span class='comment'># All given opts.
|
|
765
|
+
</span> <span class='id identifier rubyid_givenCnt'>givenCnt</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
766
|
+
|
|
742
767
|
<span class='id identifier rubyid_i'>i</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
743
768
|
<span class='kw'>while</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span>
|
|
744
769
|
<span class='id identifier rubyid_score'>score</span> <span class='op'>=</span> <span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
|
745
|
-
|
|
746
|
-
<span class='
|
|
747
|
-
<span class='id identifier
|
|
770
|
+
|
|
771
|
+
<span class='comment'># Still consecutive.
|
|
772
|
+
</span> <span class='id identifier rubyid_consecutiveCnt'>consecutiveCnt</span> <span class='op'>+=</span> <span class='int'>1</span> <span class='kw'>if</span> <span class='lparen'>(</span> <span class='id identifier rubyid_score'>score</span> <span class='op'>==</span> <span class='int'>1</span> <span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_consecutive'>consecutive</span>
|
|
773
|
+
|
|
774
|
+
<span class='comment'># No more consecutives.
|
|
775
|
+
</span> <span class='id identifier rubyid_consecutive'>consecutive</span> <span class='op'>=</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='lparen'>(</span> <span class='id identifier rubyid_score'>score</span> <span class='op'>==</span> <span class='int'>0</span> <span class='rparen'>)</span>
|
|
776
|
+
|
|
777
|
+
<span class='comment'># Count all given.
|
|
778
|
+
</span> <span class='id identifier rubyid_givenCnt'>givenCnt</span> <span class='op'>+=</span> <span class='id identifier rubyid_score'>score</span>
|
|
779
|
+
|
|
748
780
|
<span class='id identifier rubyid_i'>i</span> <span class='op'>+=</span> <span class='int'>1</span>
|
|
749
781
|
<span class='kw'>end</span>
|
|
750
782
|
|
|
751
|
-
<span class='lparen'>(</span> <span class='id identifier
|
|
783
|
+
<span class='lparen'>(</span> <span class='id identifier rubyid_consecutiveCnt'>consecutiveCnt</span> <span class='op'>==</span> <span class='id identifier rubyid_givenCnt'>givenCnt</span> <span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span> <span class='id identifier rubyid_givenCnt'>givenCnt</span> <span class='op'>></span> <span class='int'>0</span> <span class='rparen'>)</span>
|
|
752
784
|
<span class='kw'>end</span></pre>
|
|
753
785
|
</td>
|
|
754
786
|
</tr>
|
|
@@ -781,12 +813,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
781
813
|
<pre class="lines">
|
|
782
814
|
|
|
783
815
|
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
816
|
+
1946
|
|
817
|
+
1947
|
|
818
|
+
1948</pre>
|
|
787
819
|
</td>
|
|
788
820
|
<td>
|
|
789
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
821
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1946</span>
|
|
790
822
|
|
|
791
823
|
<span class='kw'>def</span> <span class='id identifier rubyid_inv'>inv</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
792
824
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span>
|
|
@@ -822,12 +854,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
822
854
|
<pre class="lines">
|
|
823
855
|
|
|
824
856
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
857
|
+
1951
|
|
858
|
+
1952
|
|
859
|
+
1953</pre>
|
|
828
860
|
</td>
|
|
829
861
|
<td>
|
|
830
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
862
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1951</span>
|
|
831
863
|
|
|
832
864
|
<span class='kw'>def</span> <span class='id identifier rubyid_meh'>meh</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
833
865
|
<span class='kw'>true</span>
|
|
@@ -863,12 +895,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
863
895
|
<pre class="lines">
|
|
864
896
|
|
|
865
897
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
898
|
+
1884
|
|
899
|
+
1885
|
|
900
|
+
1886</pre>
|
|
869
901
|
</td>
|
|
870
902
|
<td>
|
|
871
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
903
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1884</span>
|
|
872
904
|
|
|
873
905
|
<span class='kw'>def</span> <span class='id identifier rubyid_none'>none</span>
|
|
874
906
|
<span class='ivar'>@opt</span><span class='period'>.</span><span class='id identifier rubyid_givenCount'>givenCount</span> <span class='op'>==</span> <span class='int'>0</span>
|
|
@@ -904,12 +936,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
904
936
|
<pre class="lines">
|
|
905
937
|
|
|
906
938
|
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
939
|
+
1931
|
|
940
|
+
1932
|
|
941
|
+
1933</pre>
|
|
910
942
|
</td>
|
|
911
943
|
<td>
|
|
912
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
944
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1931</span>
|
|
913
945
|
|
|
914
946
|
<span class='kw'>def</span> <span class='id identifier rubyid_one'>one</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
915
947
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>1</span>
|
|
@@ -924,7 +956,7 @@ is a meta language (DSL) for option combinations.</p>
|
|
|
924
956
|
</div>
|
|
925
957
|
|
|
926
958
|
<div id="footer">
|
|
927
|
-
Generated on Mon
|
|
959
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
928
960
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
929
961
|
0.8.6.1 (ruby-1.9.3).
|
|
930
962
|
</div>
|
data/doc/Como/RuleDisplay.html
CHANGED
|
@@ -552,13 +552,13 @@ Example expansion of options:
|
|
|
552
552
|
<pre class="lines">
|
|
553
553
|
|
|
554
554
|
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
555
|
+
1981
|
|
556
|
+
1982
|
|
557
|
+
1983
|
|
558
|
+
1984</pre>
|
|
559
559
|
</td>
|
|
560
560
|
<td>
|
|
561
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
561
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1981</span>
|
|
562
562
|
|
|
563
563
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_prefixStr'>prefixStr</span> <span class='rparen'>)</span>
|
|
564
564
|
<span class='comment'># Prefix string for lines. Rules add/rm from it.
|
|
@@ -602,13 +602,13 @@ Example expansion of options:
|
|
|
602
602
|
<pre class="lines">
|
|
603
603
|
|
|
604
604
|
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
605
|
+
1976
|
|
606
|
+
1977
|
|
607
|
+
1978
|
|
608
|
+
1979</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 1976</span>
|
|
612
612
|
|
|
613
613
|
<span class='kw'>def</span> <span class='const'>RuleDisplay</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span><span class='lparen'>(</span> <span class='id identifier rubyid_prefixStr'>prefixStr</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span>
|
|
614
614
|
<span class='id identifier rubyid_rd'>rd</span> <span class='op'>=</span> <span class='const'>RuleDisplay</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_prefixStr'>prefixStr</span> <span class='rparen'>)</span>
|
|
@@ -651,12 +651,12 @@ Example expansion of options:
|
|
|
651
651
|
<pre class="lines">
|
|
652
652
|
|
|
653
653
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
654
|
+
1991
|
|
655
|
+
1992
|
|
656
|
+
1993</pre>
|
|
657
657
|
</td>
|
|
658
658
|
<td>
|
|
659
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
659
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1991</span>
|
|
660
660
|
|
|
661
661
|
<span class='kw'>def</span> <span class='id identifier rubyid_addPrefix'>addPrefix</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
|
662
662
|
<span class='ivar'>@prefixStr</span> <span class='op'>+=</span> <span class='id identifier rubyid_str'>str</span>
|
|
@@ -692,12 +692,12 @@ Example expansion of options:
|
|
|
692
692
|
<pre class="lines">
|
|
693
693
|
|
|
694
694
|
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
695
|
+
2055
|
|
696
|
+
2056
|
|
697
|
+
2057</pre>
|
|
698
698
|
</td>
|
|
699
699
|
<td>
|
|
700
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
700
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2055</span>
|
|
701
701
|
|
|
702
702
|
<span class='kw'>def</span> <span class='id identifier rubyid_all'>all</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
703
703
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>All of</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
|
@@ -733,12 +733,12 @@ Example expansion of options:
|
|
|
733
733
|
<pre class="lines">
|
|
734
734
|
|
|
735
735
|
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
736
|
+
2050
|
|
737
|
+
2051
|
|
738
|
+
2052</pre>
|
|
739
739
|
</td>
|
|
740
740
|
<td>
|
|
741
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
741
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2050</span>
|
|
742
742
|
|
|
743
743
|
<span class='kw'>def</span> <span class='id identifier rubyid_any'>any</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
744
744
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>One or more of</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
|
@@ -763,12 +763,12 @@ Example expansion of options:
|
|
|
763
763
|
<pre class="lines">
|
|
764
764
|
|
|
765
765
|
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
766
|
+
1986
|
|
767
|
+
1987
|
|
768
|
+
1988</pre>
|
|
769
769
|
</td>
|
|
770
770
|
<td>
|
|
771
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
771
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1986</span>
|
|
772
772
|
|
|
773
773
|
<span class='kw'>def</span> <span class='id identifier rubyid_evalAndDisplay'>evalAndDisplay</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span>
|
|
774
774
|
<span class='id identifier rubyid_printRule'>printRule</span><span class='lparen'>(</span> <span class='id identifier rubyid_instance_eval'>instance_eval</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
|
@@ -804,12 +804,12 @@ Example expansion of options:
|
|
|
804
804
|
<pre class="lines">
|
|
805
805
|
|
|
806
806
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
807
|
+
2040
|
|
808
|
+
2041
|
|
809
|
+
2042</pre>
|
|
810
810
|
</td>
|
|
811
811
|
<td>
|
|
812
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
812
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2040</span>
|
|
813
813
|
|
|
814
814
|
<span class='kw'>def</span> <span class='id identifier rubyid_follow'>follow</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
815
815
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>If first then rest</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
|
@@ -845,12 +845,12 @@ Example expansion of options:
|
|
|
845
845
|
<pre class="lines">
|
|
846
846
|
|
|
847
847
|
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
848
|
+
2034
|
|
849
|
+
2035
|
|
850
|
+
2036</pre>
|
|
851
851
|
</td>
|
|
852
852
|
<td>
|
|
853
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
853
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2034</span>
|
|
854
854
|
|
|
855
855
|
<span class='kw'>def</span> <span class='id identifier rubyid_incr'>incr</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
856
856
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Adding in order</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
|
@@ -886,12 +886,12 @@ Example expansion of options:
|
|
|
886
886
|
<pre class="lines">
|
|
887
887
|
|
|
888
888
|
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
889
|
+
2060
|
|
890
|
+
2061
|
|
891
|
+
2062</pre>
|
|
892
892
|
</td>
|
|
893
893
|
<td>
|
|
894
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
894
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2060</span>
|
|
895
895
|
|
|
896
896
|
<span class='kw'>def</span> <span class='id identifier rubyid_inv'>inv</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
897
897
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Not</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
|
@@ -927,12 +927,12 @@ Example expansion of options:
|
|
|
927
927
|
<pre class="lines">
|
|
928
928
|
|
|
929
929
|
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
930
|
+
2065
|
|
931
|
+
2066
|
|
932
|
+
2067</pre>
|
|
933
933
|
</td>
|
|
934
934
|
<td>
|
|
935
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
935
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2065</span>
|
|
936
936
|
|
|
937
937
|
<span class='kw'>def</span> <span class='id identifier rubyid_meh'>meh</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
938
938
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Ignoring</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
|
@@ -968,12 +968,12 @@ Example expansion of options:
|
|
|
968
968
|
<pre class="lines">
|
|
969
969
|
|
|
970
970
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
971
|
+
2028
|
|
972
|
+
2029
|
|
973
|
+
2030</pre>
|
|
974
974
|
</td>
|
|
975
975
|
<td>
|
|
976
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
976
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2028</span>
|
|
977
977
|
|
|
978
978
|
<span class='kw'>def</span> <span class='id identifier rubyid_none'>none</span>
|
|
979
979
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>NONE</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span>
|
|
@@ -1009,12 +1009,12 @@ Example expansion of options:
|
|
|
1009
1009
|
<pre class="lines">
|
|
1010
1010
|
|
|
1011
1011
|
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1012
|
+
2045
|
|
1013
|
+
2046
|
|
1014
|
+
2047</pre>
|
|
1015
1015
|
</td>
|
|
1016
1016
|
<td>
|
|
1017
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
1017
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2045</span>
|
|
1018
1018
|
|
|
1019
1019
|
<span class='kw'>def</span> <span class='id identifier rubyid_one'>one</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
|
1020
1020
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>One of</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
|
@@ -1050,12 +1050,12 @@ Example expansion of options:
|
|
|
1050
1050
|
<pre class="lines">
|
|
1051
1051
|
|
|
1052
1052
|
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1053
|
+
2006
|
|
1054
|
+
2007
|
|
1055
|
+
2008</pre>
|
|
1056
1056
|
</td>
|
|
1057
1057
|
<td>
|
|
1058
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
1058
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2006</span>
|
|
1059
1059
|
|
|
1060
1060
|
<span class='kw'>def</span> <span class='id identifier rubyid_p'>p</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
|
1061
1061
|
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span><span class='lparen'>(</span> <span class='ivar'>@prefixStr</span> <span class='op'>+</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
|
@@ -1091,23 +1091,23 @@ Example expansion of options:
|
|
|
1091
1091
|
<pre class="lines">
|
|
1092
1092
|
|
|
1093
1093
|
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1094
|
+
2012
|
|
1095
|
+
2013
|
|
1096
|
+
2014
|
|
1097
|
+
2015
|
|
1098
|
+
2016
|
|
1099
|
+
2017
|
|
1100
|
+
2018
|
|
1101
|
+
2019
|
|
1102
|
+
2020
|
|
1103
|
+
2021
|
|
1104
|
+
2022
|
|
1105
|
+
2023
|
|
1106
|
+
2024
|
|
1107
|
+
2025</pre>
|
|
1108
1108
|
</td>
|
|
1109
1109
|
<td>
|
|
1110
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
1110
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2012</span>
|
|
1111
1111
|
|
|
1112
1112
|
<span class='kw'>def</span> <span class='id identifier rubyid_printRule'>printRule</span><span class='lparen'>(</span> <span class='id identifier rubyid_arr'>arr</span> <span class='rparen'>)</span>
|
|
1113
1113
|
<span class='id identifier rubyid_p'>p</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>|--# </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_arr'>arr</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>:</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
|
@@ -1154,17 +1154,17 @@ Example expansion of options:
|
|
|
1154
1154
|
<pre class="lines">
|
|
1155
1155
|
|
|
1156
1156
|
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1157
|
+
1996
|
|
1158
|
+
1997
|
|
1159
|
+
1998
|
|
1160
|
+
1999
|
|
1161
|
+
2000
|
|
1162
|
+
2001
|
|
1163
|
+
2002
|
|
1164
|
+
2003</pre>
|
|
1165
1165
|
</td>
|
|
1166
1166
|
<td>
|
|
1167
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
|
1167
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1996</span>
|
|
1168
1168
|
|
|
1169
1169
|
<span class='kw'>def</span> <span class='id identifier rubyid_rmPrefix'>rmPrefix</span><span class='lparen'>(</span> <span class='id identifier rubyid_item'>item</span> <span class='rparen'>)</span>
|
|
1170
1170
|
<span class='kw'>if</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>String</span>
|
|
@@ -1184,7 +1184,7 @@ Example expansion of options:
|
|
|
1184
1184
|
</div>
|
|
1185
1185
|
|
|
1186
1186
|
<div id="footer">
|
|
1187
|
-
Generated on Mon
|
|
1187
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
1188
1188
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1189
1189
|
0.8.6.1 (ruby-1.9.3).
|
|
1190
1190
|
</div>
|
data/doc/Como/Spec.html
CHANGED
|
@@ -1741,7 +1741,7 @@ processing.</p>
|
|
|
1741
1741
|
</div>
|
|
1742
1742
|
|
|
1743
1743
|
<div id="footer">
|
|
1744
|
-
Generated on Mon
|
|
1744
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
1745
1745
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1746
1746
|
0.8.6.1 (ruby-1.9.3).
|
|
1747
1747
|
</div>
|
data/doc/Como.html
CHANGED
|
@@ -616,7 +616,7 @@ internal workings of Como is required though.</p>
|
|
|
616
616
|
</div>
|
|
617
617
|
|
|
618
618
|
<div id="footer">
|
|
619
|
-
Generated on Mon
|
|
619
|
+
Generated on Mon Feb 10 19:23:38 2014 by
|
|
620
620
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
621
621
|
0.8.6.1 (ruby-1.9.3).
|
|
622
622
|
</div>
|
data/doc/_index.html
CHANGED
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
</div>
|
|
234
234
|
|
|
235
235
|
<div id="footer">
|
|
236
|
-
Generated on Mon
|
|
236
|
+
Generated on Mon Feb 10 19:23:37 2014 by
|
|
237
237
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
238
238
|
0.8.6.1 (ruby-1.9.3).
|
|
239
239
|
</div>
|
data/doc/file.CHANGELOG.html
CHANGED
|
@@ -63,7 +63,11 @@
|
|
|
63
63
|
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
|
65
65
|
<h1>Version history</h1>
|
|
66
|
-
<dl class="rdoc-list"><dt>0.1.
|
|
66
|
+
<dl class="rdoc-list"><dt>0.1.1</dt>
|
|
67
|
+
<dd>
|
|
68
|
+
<p>Testcases use relative require to local dir. Rulecheck fixes: incr and
|
|
69
|
+
follow.</p>
|
|
70
|
+
</dd><dt>0.1.0</dt>
|
|
67
71
|
<dd>
|
|
68
72
|
<p>Subcommand feature added along with major refactoring in class' content.
|
|
69
73
|
Many small changes to usage model, but backwards compatible.</p>
|
|
@@ -81,7 +85,7 @@ settings, i.e. the Opt#params method added.</p>
|
|
|
81
85
|
</div></div>
|
|
82
86
|
|
|
83
87
|
<div id="footer">
|
|
84
|
-
Generated on Mon
|
|
88
|
+
Generated on Mon Feb 10 19:23:37 2014 by
|
|
85
89
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
86
90
|
0.8.6.1 (ruby-1.9.3).
|
|
87
91
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -85,7 +85,7 @@ used.</p>
|
|
|
85
85
|
</div></div>
|
|
86
86
|
|
|
87
87
|
<div id="footer">
|
|
88
|
-
Generated on Mon
|
|
88
|
+
Generated on Mon Feb 10 19:23:37 2014 by
|
|
89
89
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
90
90
|
0.8.6.1 (ruby-1.9.3).
|
|
91
91
|
</div>
|
data/doc/index.html
CHANGED
|
@@ -85,7 +85,7 @@ used.</p>
|
|
|
85
85
|
</div></div>
|
|
86
86
|
|
|
87
87
|
<div id="footer">
|
|
88
|
-
Generated on Mon
|
|
88
|
+
Generated on Mon Feb 10 19:23:37 2014 by
|
|
89
89
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
90
90
|
0.8.6.1 (ruby-1.9.3).
|
|
91
91
|
</div>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
105
|
<div id="footer">
|
|
106
|
-
Generated on Mon
|
|
106
|
+
Generated on Mon Feb 10 19:23:37 2014 by
|
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
108
108
|
0.8.6.1 (ruby-1.9.3).
|
|
109
109
|
</div>
|
data/lib/como.rb
CHANGED
|
@@ -1867,6 +1867,7 @@ module Como
|
|
|
1867
1867
|
|
|
1868
1868
|
# Get given count.
|
|
1869
1869
|
def getScore( *args )
|
|
1870
|
+
|
|
1870
1871
|
score = 0
|
|
1871
1872
|
args.each do |i|
|
|
1872
1873
|
if i.class == TrueClass || i.class == FalseClass
|
|
@@ -1875,6 +1876,7 @@ module Como
|
|
|
1875
1876
|
score += 1 if @opt.argById(i).given
|
|
1876
1877
|
end
|
|
1877
1878
|
end
|
|
1879
|
+
|
|
1878
1880
|
score
|
|
1879
1881
|
end
|
|
1880
1882
|
|
|
@@ -1886,19 +1888,33 @@ module Como
|
|
|
1886
1888
|
# Incremental options in order i.e. have to have previous
|
|
1887
1889
|
# to have later.
|
|
1888
1890
|
def incr( *args )
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1891
|
+
|
|
1892
|
+
# Opts given consecutive.
|
|
1893
|
+
consecutiveCnt = 0
|
|
1894
|
+
|
|
1895
|
+
# Consecutive flag.
|
|
1896
|
+
consecutive = true
|
|
1897
|
+
|
|
1898
|
+
# All given opts.
|
|
1899
|
+
givenCnt = 0
|
|
1900
|
+
|
|
1892
1901
|
i = 0
|
|
1893
1902
|
while args[i]
|
|
1894
1903
|
score = getScore( args[i] )
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1904
|
+
|
|
1905
|
+
# Still consecutive.
|
|
1906
|
+
consecutiveCnt += 1 if ( score == 1 ) && consecutive
|
|
1907
|
+
|
|
1908
|
+
# No more consecutives.
|
|
1909
|
+
consecutive = false if ( score == 0 )
|
|
1910
|
+
|
|
1911
|
+
# Count all given.
|
|
1912
|
+
givenCnt += score
|
|
1913
|
+
|
|
1898
1914
|
i += 1
|
|
1899
1915
|
end
|
|
1900
1916
|
|
|
1901
|
-
(
|
|
1917
|
+
( consecutiveCnt == givenCnt ) && ( givenCnt > 0 )
|
|
1902
1918
|
end
|
|
1903
1919
|
|
|
1904
1920
|
# Incremental options in order i.e. have to have all later
|
|
@@ -1907,7 +1923,7 @@ module Como
|
|
|
1907
1923
|
if getScore( args[0] )
|
|
1908
1924
|
getScore( *args ) == args.length
|
|
1909
1925
|
else
|
|
1910
|
-
|
|
1926
|
+
false
|
|
1911
1927
|
end
|
|
1912
1928
|
end
|
|
1913
1929
|
|
data/test/como_compatible
CHANGED
data/test/como_config
CHANGED
data/test/como_options
CHANGED
data/test/como_queries
CHANGED
data/test/como_rule_1
CHANGED
data/test/como_rule_2
CHANGED
data/test/como_subcmd
CHANGED
data/test/como_subcmd_config
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: como
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2014-02-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: ! 'Como provides low manifest command line option parsing and deployment.
|
|
15
15
|
The command line options are described in compact table format and option values
|