clint 0.2.2 → 0.2.3

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.
Files changed (3) hide show
  1. data/lib/clint.rb +1 -1
  2. data/man/man7/clint.7.gz +0 -0
  3. metadata +3 -3
@@ -181,7 +181,7 @@ class Clint
181
181
  exit 1
182
182
  end
183
183
  instance = klass.new(*@args.slice!(0, arity))
184
- if instance.public_methods(false).include? subcommand.to_s
184
+ if instance.public_methods(false).any? {|m| m == subcommand || m == subcommand.to_s }
185
185
  arity = instance.method(subcommand).arity
186
186
  if @args.length != arity && -@args.length - 1 != arity
187
187
  usage
Binary file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Richard Crowley
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-05 00:00:00 +00:00
17
+ date: 2010-04-11 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies: []
20
20