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.
- data/bin/whichr +1 -1
- data/lib/whichr.rb +1 -0
- metadata +1 -1
data/bin/whichr
CHANGED
data/lib/whichr.rb
CHANGED
@@ -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
|