Module: Gemdiff::RepoFinder

Defined in:
lib/gemdiff/repo_finder.rb

Constant Summary collapse

GITHUB_REPO_REGEX =
/(https?):\/\/(www.)?github\.com\/([\w._%-]*)\/([\w._%-]*)/
REPO_EXCEPTIONS =

rails builds several gems that are not individual projects

{
  :'actionmailer'  => 'rails/rails',
  :'actionpack'    => 'rails/rails',
  :'actionview'    => 'rails/rails',
  :'activemodel'   => 'rails/rails',
  :'activerecord'  => 'rails/rails',
  :'activesupport' => 'rails/rails',
  :'railties'      => 'rails/rails',
}

Class Method Summary collapse

Class Method Details

.github_url(gem_name) ⇒ Object

Try to get the homepage from the gemspec If not found, search github



22
23
24
25
26
# File 'lib/gemdiff/repo_finder.rb', line 22

def github_url(gem_name)
  homepage = gemspec_homepage(gem_name)
  return homepage if homepage
  search gem_name
end