Module: Gemdiff::RepoFinder

Defined in:
lib/gemdiff/repo_finder.rb

Constant Summary collapse

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

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



10
11
12
13
14
# File 'lib/gemdiff/repo_finder.rb', line 10

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