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
{ actioncable: "rails/rails", actionmailer: "rails/rails", actionpack: "rails/rails", actionview: "rails/rails", activejob: "rails/rails", activemodel: "rails/rails", activerecord: "rails/rails", activesupport: "rails/rails", "aws-sdk-rails": "aws/aws-sdk-rails", bluepill: "bluepill-rb/bluepill", chunky_png: "wvanbergen/chunky_png", "color-schemer": "at-import/color-schemer", delayed_job: "collectiveidea/delayed_job", execjs: "rails/execjs", factory_girl: "thoughtbot/factory_bot", factory_girl_rails: "thoughtbot/factory_bot_rails", 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", "libxml-ruby": "xml4r/libxml-ruby", "minitest-reporters": "kern/minitest-reporters", "modular-scale": "modularscale/modularscale-sass", msgpack: "msgpack/msgpack-ruby", "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", public_suffix: "weppos/publicsuffix-ruby", railties: "rails/rails", rake: "ruby/rake", resque: "resque/resque", "rb-fsevent": "thibaudgg/rb-fsevent", "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", turbolinks: "turbolinks/turbolinks", "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
83 84 85 |
# File 'lib/gemdiff/repo_finder.rb', line 83 def github_url(gem_name) gemspec_homepage(gem_name) || search(gem_name) end |