Skip to content

Commit

Permalink
Fix definition of find_name
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1128 state:committed]
  • Loading branch information
al2o3cr authored and NZKoz committed Oct 8, 2008
1 parent 2d644fd commit 0dea211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/lib/rails/vendor_gem_source_index.rb
Expand Up @@ -63,8 +63,8 @@ def load_specification(gem_dir)
YAML.load_file(spec_file) if File.exist?(spec_file) YAML.load_file(spec_file) if File.exist?(spec_file)
end end


def find_name(gem_name, version_requirement = Gem::Requirement.default) def find_name(*args)
search(/^#{gem_name}$/, version_requirement) @installed_source_index.find_name(*args) + @vendor_source_index.find_name(*args)
end end


def search(*args) def search(*args)
Expand Down

0 comments on commit 0dea211

Please sign in to comment.