whichr 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/whichr.rb +17 -1
- metadata +1 -1
data/lib/whichr.rb
CHANGED
@@ -39,7 +39,23 @@ class RubyWhich
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
|
42
|
+
# parse out same spelled fellas in doze
|
43
|
+
if RUBY_PLATFORM =~ /mswin|mingw/
|
44
|
+
unique = []
|
45
|
+
previous = {}
|
46
|
+
all_found.each {|entry|
|
47
|
+
if previous[entry.downcase]
|
48
|
+
# do nothing
|
49
|
+
else
|
50
|
+
previous[entry.downcase] = 'ja'
|
51
|
+
unique << entry
|
52
|
+
end
|
53
|
+
}
|
54
|
+
all_found = unique
|
55
|
+
else
|
56
|
+
all_found.uniq!
|
57
|
+
end
|
58
|
+
all_found
|
43
59
|
end
|
44
60
|
|
45
61
|
def process(names, all = false)
|