Class: SemVerComponents::GitHostings::Github
- Inherits:
-
SemVerComponents::GitHosting
- Object
- SemVerComponents::GitHosting
- SemVerComponents::GitHostings::Github
- Defined in:
- lib/sem_ver_components/git_hostings/github.rb
Overview
Plugin providing URLs to a GitHub hosting
Instance Method Summary collapse
-
#commit_url(git_url, commit_sha) ⇒ String
Get the URL to a given commit sha.
-
#compare_url(git_url, tag1, tag2) ⇒ String
Get the URL to compare 2 tags.
Instance Method Details
#commit_url(git_url, commit_sha) ⇒ String
Get the URL to a given commit sha
10 11 12 |
# File 'lib/sem_ver_components/git_hostings/github.rb', line 10 def commit_url(git_url, commit_sha) "#{git_url}/commit/#{commit_sha}" end |
#compare_url(git_url, tag1, tag2) ⇒ String
Get the URL to compare 2 tags
20 21 22 |
# File 'lib/sem_ver_components/git_hostings/github.rb', line 20 def compare_url(git_url, tag1, tag2) "#{git_url}/compare/#{tag1}...#{tag2}" end |