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 some repos move and the old repo page still exists

{
  actionmailer:  'rails/rails',
  actionpack:    'rails/rails',
  actionview:    'rails/rails',
  activemodel:   'rails/rails',
  activerecord:  'rails/rails',
  activesupport: 'rails/rails',
  delayed_job:   'collectiveidea/delayed_job',
  railties:      'rails/rails',
  resque:        'resque/resque',
}

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



25
26
27
28
29
# File 'lib/gemdiff/repo_finder.rb', line 25

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