whichr 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/whichr.rb +17 -1
  2. metadata +1 -1
data/lib/whichr.rb CHANGED
@@ -39,7 +39,23 @@ class RubyWhich
39
39
  end
40
40
  end
41
41
 
42
- all_found.uniq
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whichr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack