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:
parent
2d644fd136
commit
0dea211f44
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue