class Bundler::Index

def search(query)

def search(query)
  case query
  when Gem::Specification, RemoteSpecification then search_by_spec(query)
  when String then @specs[query]
  else search_by_dependency(query)
  end
end