clactive 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/clactive.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed21219debd7e79b79623e363ad894dbe9c49081
4
- data.tar.gz: ab80594ff4db8f35b77169bada141c11fd8c2d28
3
+ metadata.gz: 8c45e6837315a83c330a436ecd9dab172c90a271
4
+ data.tar.gz: 4e8b87f29682dd56faa2f5f08e8eda9e55ec9717
5
5
  SHA512:
6
- metadata.gz: b7f381c5661ef163c48f690c169950142c496e87bbcc6b72b8df2050e24f193fe72a60dad72b89ad4485bce274d41d558d1f3a7b71b989726b4f52482226d2c9
7
- data.tar.gz: 70c3a3cf30f30f25f02f16758f0155a378308aee266d26bef04c73b032041b467f5f1e5eef896b1aa8eca23aead6d9f50b4c57af2fac770ffcbe048b1aa5f2d7
6
+ metadata.gz: 100d62d9d29a71d52e3756a1b2df1ad2daad31d5b2eb8babe70cd963227f28c590158d77e3344cb2a8563efee7e383f87b2981ef6c372b5fb14d5ec2f8f8fd31
7
+ data.tar.gz: 7f6e25ce00bee1a8f4aa3655f38b5a8c6f9a4a0ba4ec1a92a5a37ce409091d9b29ec1da99d5edca6d2debd80918c73681e59fbfa7a8610e1ab9ef9f4aad0a9be
data/lib/clactive.rb CHANGED
@@ -92,7 +92,7 @@ module CLActive
92
92
  end
93
93
 
94
94
  def option(key, *argv)
95
- if argv
95
+ unless argv.empty?
96
96
  @options[key] = argv
97
97
  @parser.on(*argv) do |val|
98
98
  @usropts[key] = val
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clactive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tang Tianyong