提交 0dea211f 编写于 作者: M Matt Jones 提交者: Michael Koziarski

Fix definition of find_name

Signed-off-by: NMichael Koziarski <michael@koziarski.com>
[#1128 state:committed]
上级 2d644fd1
......@@ -63,8 +63,8 @@ def load_specification(gem_dir)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册