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 some repos are not mostly ruby so the github search doesn’t find them
{ actionmailer: "rails/rails", actionpack: "rails/rails", actionview: "rails/rails", activejob: "rails/rails", activemodel: "rails/rails", activerecord: "rails/rails", activesupport: "rails/rails", bluepill: "bluepill-rb/bluepill", chunky_png: "wvanbergen/chunky_png", :"color-schemer" => "at-import/color-schemer", delayed_job: "collectiveidea/delayed_job", execjs: "rails/execjs", faraday_middleware: "lostisland/faraday_middleware", flamegraph: "SamSaffron/flamegraph", ffi: "ffi/ffi", :"foundation-rails" => "zurb/foundation-rails", googleauth: "google/google-auth-library-ruby", gosu: "jlnr/gosu", :"guard-livereload" => "guard/guard-livereload", :"jquery-ujs" => "rails/jquery-ujs", json: "flori/json", kaminari: "kaminari/kaminari", :"kaminari-actionview" => "kaminari/kaminari", :"kaminari-activerecord" => "kaminari/kaminari", :"kaminari-core" => "kaminari/kaminari", :"modular-scale" => "modularscale/modularscale-sass", :"net-ssh-gateway" => "net-ssh/net-ssh-gateway", newrelic_rpm: "newrelic/rpm", nokogiri: "sparklemotion/nokogiri", nokogumbo: "rubys/nokogumbo", oauth: "oauth-xx/oauth-ruby", oj: "ohler55/oj", passenger: "phusion/passenger", pg: "ged/ruby-pg", :"pry-doc" => "pry/pry-doc", railties: "rails/rails", rake: "ruby/rake", resque: "resque/resque", :"resque-multi-job-forks" => "stulentsev/resque-multi-job-forks", representable: "trailblazer/representable", rr: "rr/rr", SassyLists: "at-import/SassyLists", :"Sassy-Maps" => "at-import/Sassy-Maps", :"sassy-math" => "at-import/Sassy-math", settingslogic: "settingslogic/settingslogic", sinatra: "sinatra/sinatra", stripe: "stripe/stripe-ruby", thread_safe: "ruby-concurrency/thread_safe", tolk: "tolk/tolk", toolkit: "at-import/tookit", :"trailblazer-cells" => "trailblazer/trailblazer-cells", :"twitter-text" => "twitter/twitter-text", zeus: "burke/zeus", }
Class Method Summary collapse
-
.github_url(gem_name) ⇒ Object
Try to get the homepage from the gemspec If not found, search github.
Class Method Details
.github_url(gem_name) ⇒ Object
Try to get the homepage from the gemspec If not found, search github
71 72 73 |
# File 'lib/gemdiff/repo_finder.rb', line 71 def github_url(gem_name) gemspec_homepage(gem_name) || search(gem_name) end |