module ECSBundler::BundlerScanner::RepositoryFinder

Constants

GITHUB_REPO_REGEX
REPO_EXCEPTIONS

rails builds several gems that are not individual projects some repos move and the old repo page still exists some repos are not mostly ruby so the github search doesn't find them

Public Class Methods

url(spec) click to toggle source
# File lib/ecs_bundler/bundler_scanner/repository_finder.rb, line 68
def url(spec)
  return "https://github.com/#{REPO_EXCEPTIONS[spec.name.to_sym]}" unless REPO_EXCEPTIONS[spec.name.to_sym].nil?
  return spec.homepage if spec.homepage =~ GITHUB_REPO_REGEX
  match = spec.description.to_s.match(GITHUB_REPO_REGEX)
  match && match[0]
end