class Bundler::PubGrub::BasicPackageSource

def versions_for(package, range=VersionRange.any)

def versions_for(package, range=VersionRange.any)
  versions = range.select_versions(@sorted_versions[package])
  # Conditional avoids (among other things) calling
  # sort_versions_by_preferred with the root package
  if versions.size > 1
    sort_versions_by_preferred(package, versions)
  else
    versions
  end
end