1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix definition of find_name

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1128 state:committed]
This commit is contained in:
Matt Jones 2008-10-08 10:29:48 -04:00 committed by Michael Koziarski
parent 2d644fd136
commit 0dea211f44

View file

@ -63,8 +63,8 @@ module Rails
YAML.load_file(spec_file) if File.exist?(spec_file)
end
def find_name(gem_name, version_requirement = Gem::Requirement.default)
search(/^#{gem_name}$/, version_requirement)
def find_name(*args)
@installed_source_index.find_name(*args) + @vendor_source_index.find_name(*args)
end
def search(*args)