Project

General

Profile

Bug #9004 ยป gem_which.patch

phluid61 (Matthew Kerwin), 11/06/2013 09:30 AM

View differences:

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)
    (1-1/1)