Bug #9004 ยป gem_which.patch
| lib/rubygems/commands/which_command.rb | ||
|---|---|---|
|  | ||
|   def execute
 | ||
|     found = false
 | ||
|     missing = false
 | ||
|  | ||
|     options[:args].each do |arg|
 | ||
|       arg = arg.sub(/#{Regexp.union(*Gem.suffixes)}$/, '')
 | ||
| ... | ... | |
|  | ||
|       if paths.empty? then
 | ||
|         alert_error "Can't find ruby library file or shared library #{arg}"
 | ||
|         missing = true
 | ||
|       else
 | ||
|         say paths
 | ||
|         found = true
 | ||
|       end
 | ||
|     end
 | ||
|  | ||
|     terminate_interaction 1 unless found
 | ||
|     terminate_interaction 1 unless found and not missing
 | ||
|   end
 | ||
|  | ||
|   def find_paths(package_name, dirs)
 | ||