kommand 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 9d5b05ccf5a4e09c7056dec6cd72d62e5134c30d
4
- data.tar.gz: 654cec67411b5d2c44b01d3937beb5491c0ee331
3
+ metadata.gz: 2c93514c50147c756e6f34a4df0abd8e4e6b3b46
4
+ data.tar.gz: 96585365c341cf167ef613f1bb4e6c0784c2a87e
5
5
  SHA512:
6
- metadata.gz: 83ac028e2305ebe6c59545c53a7393eb6b80baf43e11c83e475bf995f3bc5c4eed3174880db926160000898a15b67595aaf5b439b8b9d617f7d22afef8667728
7
- data.tar.gz: 6dd15c9de3386c659d85f4dc750df61f393e50918f02b7f9f9fe00d3704be5b1adc033215dff8678cd27cffaca139e03565fa773e76f4eed452b8da254fa48a1
6
+ metadata.gz: 6542a0fe4fdbf15aa9580a4bc2d959152da03e90e9ead5b0dd45e999cd1043aef310a31ff54a0bafa67f0f0439dfa0f7bd2da4237fdd3b64f6757dcf4c11ed2b
7
+ data.tar.gz: ea0071ccd76f4021d989e7bd87e65ce998f3c5a6a72a9b9d1bbec3e636a8f0544de53e87a8bb4f17c182d12ff7e5ff8b553ad5bdd26cbde500868fa33d26c5a5
@@ -76,7 +76,7 @@ module Kommand
76
76
 
77
77
  # swap key/val to create an unnamed arg - if next argument is a valid flag we must be
78
78
  # a standalone argument
79
- if a < args.length && (argv.nil? || argv.empty?) && !Commands::exists?(arg) && valid_argument?(args[a+1])
79
+ if (!args[a+1] || valid_argument?(args[a+1])) && (argv.nil? || argv.empty?) && !Commands::exists?(arg)
80
80
  argv = argk
81
81
  argk = nil
82
82
  end
@@ -1,3 +1,3 @@
1
1
  module Kommand
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kommand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec