como 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de77762e4355adb8c093c1ea89ad792d0060fffb64c42710e5c3871d63b88699
4
- data.tar.gz: 804dd952518b87f4ce379327c85036619dc8894eeeeb1339205abc5ff164ba93
3
+ metadata.gz: '039f5648328ca1afc79c5d5fd58866dfe804e19e0c64c84e26ba9a0d247ea138'
4
+ data.tar.gz: '0469dcbce9b223814d27b30e0279617cbef50e27a53b2298923a30fc3af36334'
5
5
  SHA512:
6
- metadata.gz: fd7077bd230a9bcb87c982d866848d2d2fb830d8c6f8788c7178b76c46ee2e179f56fd31932251f29dff1ce65a03fcbf28e385aca7967e402541797ec4a8e919
7
- data.tar.gz: f08e5f09e9a79cdf49669011e347147b63f72716a24e995d975707a85a98d5e985eefa12a9e1305c2a2786b112eeb94207f4a97cf9dbb09ac130c8d7ec317dbd
6
+ metadata.gz: a34cfd704468b0dd5a8f5367f64b7db5b95ea1b453ea0dd1197d385fc3022895b93bf3f80fc7674a8f695f7185dbf8a95be5abfa73e37bfa4d77dcc7623ff5cc
7
+ data.tar.gz: 9492b4dce530eeeb01ac19291d94fca36a238951ab7054897766067bb77591fd3d7a181fae4cb0adf36a4bd887627c937bd38d495349cc2c95fa4275ff998c9d
@@ -1,5 +1,8 @@
1
1
  = Version history
2
2
 
3
+ [0.2.4] Bugfix for apply method. Wrong return type for some option
4
+ types.
5
+
3
6
  [0.2.3] Added ":comp" as new option type. It allows specifying a
4
7
  single argument option multiple times.
5
8
 
@@ -796,7 +796,7 @@ of the internal workings of Como is required though.</p>
796
796
  <dt id="VERSION-constant" class="">VERSION =
797
797
 
798
798
  </dt>
799
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.2.3</span><span class='tstring_end'>&quot;</span></span></pre></dd>
799
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.2.4</span><span class='tstring_end'>&quot;</span></span></pre></dd>
800
800
 
801
801
  </dl>
802
802
 
@@ -1011,7 +1011,7 @@ of the internal workings of Como is required though.</p>
1011
1011
  </div>
1012
1012
 
1013
1013
  <div id="footer">
1014
- Generated on Sat Sep 29 19:17:49 2018 by
1014
+ Generated on Sun Oct 21 19:10:52 2018 by
1015
1015
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1016
1016
  0.9.16 (ruby-2.5.1).
1017
1017
  </div>
@@ -903,7 +903,7 @@
903
903
  </div>
904
904
 
905
905
  <div id="footer">
906
- Generated on Sat Sep 29 19:17:50 2018 by
906
+ Generated on Sun Oct 21 19:10:53 2018 by
907
907
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
908
908
  0.9.16 (ruby-2.5.1).
909
909
  </div>
@@ -522,7 +522,7 @@
522
522
  </div>
523
523
 
524
524
  <div id="footer">
525
- Generated on Sat Sep 29 19:17:49 2018 by
525
+ Generated on Sun Oct 21 19:10:52 2018 by
526
526
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
527
527
  0.9.16 (ruby-2.5.1).
528
528
  </div>
@@ -635,7 +635,7 @@
635
635
  </div>
636
636
 
637
637
  <div id="footer">
638
- Generated on Sat Sep 29 19:17:50 2018 by
638
+ Generated on Sun Oct 21 19:10:53 2018 by
639
639
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
640
640
  0.9.16 (ruby-2.5.1).
641
641
  </div>
@@ -4182,7 +4182,7 @@ after &#39;–&#39;).</p>
4182
4182
 
4183
4183
  <span class='kw'>def</span> <span class='id identifier rubyid_apply'>apply</span><span class='lparen'>(</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
4184
4184
  <span class='kw'>if</span> <span class='id identifier rubyid_given'>given</span>
4185
- <span class='kw'>if</span> <span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:none</span> <span class='rparen'>)</span>
4185
+ <span class='kw'>if</span> <span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:none</span> <span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='lparen'>(</span> <span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:one</span> <span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:many</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
4186
4186
  <span class='kw'>true</span>
4187
4187
  <span class='kw'>else</span>
4188
4188
  <span class='id identifier rubyid_value'>value</span>
@@ -6870,7 +6870,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
6870
6870
  </div>
6871
6871
 
6872
6872
  <div id="footer">
6873
- Generated on Sat Sep 29 19:17:49 2018 by
6873
+ Generated on Sun Oct 21 19:10:53 2018 by
6874
6874
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
6875
6875
  0.9.16 (ruby-2.5.1).
6876
6876
  </div>
@@ -295,7 +295,7 @@
295
295
  </div>
296
296
 
297
297
  <div id="footer">
298
- Generated on Sat Sep 29 19:17:49 2018 by
298
+ Generated on Sun Oct 21 19:10:53 2018 by
299
299
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
300
300
  0.9.16 (ruby-2.5.1).
301
301
  </div>
@@ -149,7 +149,7 @@
149
149
  </div>
150
150
 
151
151
  <div id="footer">
152
- Generated on Sat Sep 29 19:17:50 2018 by
152
+ Generated on Sun Oct 21 19:10:53 2018 by
153
153
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
154
154
  0.9.16 (ruby-2.5.1).
155
155
  </div>
@@ -149,7 +149,7 @@
149
149
  </div>
150
150
 
151
151
  <div id="footer">
152
- Generated on Sat Sep 29 19:17:50 2018 by
152
+ Generated on Sun Oct 21 19:10:53 2018 by
153
153
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
154
154
  0.9.16 (ruby-2.5.1).
155
155
  </div>
@@ -1008,7 +1008,7 @@ is a meta language (DSL) for option combinations.</p>
1008
1008
  </div>
1009
1009
 
1010
1010
  <div id="footer">
1011
- Generated on Sat Sep 29 19:17:50 2018 by
1011
+ Generated on Sun Oct 21 19:10:53 2018 by
1012
1012
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1013
1013
  0.9.16 (ruby-2.5.1).
1014
1014
  </div>
@@ -1198,7 +1198,7 @@ Example expansion of options:
1198
1198
  </div>
1199
1199
 
1200
1200
  <div id="footer">
1201
- Generated on Sat Sep 29 19:17:50 2018 by
1201
+ Generated on Sun Oct 21 19:10:53 2018 by
1202
1202
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1203
1203
  0.9.16 (ruby-2.5.1).
1204
1204
  </div>
@@ -2382,7 +2382,7 @@ the command line. Performs “usage” display if “help” was selected.</p>
2382
2382
  </div>
2383
2383
 
2384
2384
  <div id="footer">
2385
- Generated on Sat Sep 29 19:17:49 2018 by
2385
+ Generated on Sun Oct 21 19:10:52 2018 by
2386
2386
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2387
2387
  0.9.16 (ruby-2.5.1).
2388
2388
  </div>
@@ -229,7 +229,7 @@
229
229
  </div>
230
230
 
231
231
  <div id="footer">
232
- Generated on Sat Sep 29 19:17:48 2018 by
232
+ Generated on Sun Oct 21 19:10:52 2018 by
233
233
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
234
234
  0.9.16 (ruby-2.5.1).
235
235
  </div>
@@ -59,7 +59,10 @@
59
59
 
60
60
  <div id="content"><div id='filecontents'>
61
61
  <h1 id="label-Version+history">Version history</h1>
62
- <dl class="rdoc-list label-list"><dt>0.2.3
62
+ <dl class="rdoc-list label-list"><dt>0.2.4
63
+ <dd>
64
+ <p>Bugfix for apply method. Wrong return type for some option types.</p>
65
+ </dd><dt>0.2.3
63
66
  <dd>
64
67
  <p>Added “:comp” as new option type. It allows specifying a</p>
65
68
 
@@ -131,7 +134,7 @@ settings, i.e. the Opt#params method added.</p>
131
134
  </div></div>
132
135
 
133
136
  <div id="footer">
134
- Generated on Sat Sep 29 19:17:49 2018 by
137
+ Generated on Sun Oct 21 19:10:52 2018 by
135
138
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
136
139
  0.9.16 (ruby-2.5.1).
137
140
  </div>
@@ -88,7 +88,7 @@ similar, but (obviously) not identical.</p>
88
88
  </div></div>
89
89
 
90
90
  <div id="footer">
91
- Generated on Sat Sep 29 19:17:49 2018 by
91
+ Generated on Sun Oct 21 19:10:52 2018 by
92
92
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
93
93
  0.9.16 (ruby-2.5.1).
94
94
  </div>
@@ -88,7 +88,7 @@ similar, but (obviously) not identical.</p>
88
88
  </div></div>
89
89
 
90
90
  <div id="footer">
91
- Generated on Sat Sep 29 19:17:49 2018 by
91
+ Generated on Sun Oct 21 19:10:52 2018 by
92
92
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
93
93
  0.9.16 (ruby-2.5.1).
94
94
  </div>
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Sat Sep 29 19:17:49 2018 by
103
+ Generated on Sun Oct 21 19:10:52 2018 by
104
104
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.16 (ruby-2.5.1).
106
106
  </div>
@@ -1645,7 +1645,7 @@ module Como
1645
1645
  # Example usage: fileName = Opt["file"].apply( "no_name.txt" )
1646
1646
  def apply( default = nil )
1647
1647
  if given
1648
- if prim?( :none )
1648
+ if prim?( :none ) && !( prim?( :one ) || prim?( :many ) )
1649
1649
  true
1650
1650
  else
1651
1651
  value
@@ -1,5 +1,5 @@
1
1
  module Como
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  def Como.version
4
4
  Como::VERSION
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: como
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tero Isannainen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-29 00:00:00.000000000 Z
11
+ date: 2018-10-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Como provides low manifest command line option parsing and deployment. The command line options are described in compact table format and option values are stored to conveniently named properties. Como builds command usage information based on the option