Sha256: 7339080d46e7e0a044d6acef1ac6b894b2d48369cb6c53dbad9e2b8e3a993e58
Contents?: true
Size: 472 Bytes
Versions: 6
Compression:
Stored size: 472 Bytes
Contents
module Depl class Remote def self.comparison(from, to) origin_url = `git config --get remote.origin.url`.chomp github_url = self.github_from_url origin_url "#{github_url}/compare/#{from}...#{to}" if github_url end def self.github_from_url(url) if url =~ /git@github.com:(.*?).git/ "https://github.com/#{$1}" elsif url =~ /(.*?):\/\/github.com\/(.*?).git/ "https://github.com/#{$1}" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
depl-0.0.6 | lib/depl/remote.rb |
depl-0.0.5 | lib/depl/remote.rb |
depl-0.0.4 | lib/depl/remote.rb |
depl-0.0.3 | lib/depl/remote.rb |
depl-0.0.2 | lib/depl/remote.rb |
depl-0.0.1 | lib/depl/remote.rb |