rogerdpack-whichr 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/whichr +1 -1
  2. data/lib/whichr.rb +1 -0
  3. metadata +1 -1
data/bin/whichr CHANGED
@@ -9,7 +9,7 @@ if ARGV[0].in? ['--help', '-h']
9
9
  exit 0
10
10
  end
11
11
 
12
- all = RubyWhich.new.which([ARGV[0]])
12
+ all = RubyWhich.new.which(ARGV[0])
13
13
 
14
14
  for candidate in all
15
15
  # might just match the name and not be executable
@@ -8,6 +8,7 @@ class RubyWhich
8
8
  # like ['abc'] (in windows, also searches for abc.bat)
9
9
  # or ['ab*'] (a glob, in windows, also reveals ab*.bat)
10
10
  def which( names )
11
+ names = [names] unless names.is_a? Array
11
12
 
12
13
  if RUBY_PLATFORM =~ /mswin|mingw/
13
14
  for name in names.dup # avoid recursion
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rogerdpack-whichr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack