class Bundler::Index
def search_by_spec(spec)
def search_by_spec(spec) specs_by_name(spec.name).select do |s| same_version?(s.version, spec.version) && Gem::Platform.new(s.platform) == Gem::Platform.new(spec.platform) end end
def search_by_spec(spec) specs_by_name(spec.name).select do |s| same_version?(s.version, spec.version) && Gem::Platform.new(s.platform) == Gem::Platform.new(spec.platform) end end