Class: Shields::Badge::Activity::GithubCommitsSinceLatestRelease
- Defined in:
- lib/shields/badge/activity/github_commits_since_latest_release.rb
Overview
Shield for the number of GitHub commits since the last release
See: https://shields.io/badges/git-hub-commits-since-latest-release
Defined Under Namespace
Constant Summary
Constants inherited from Base
Base::BASE_URL, Base::HTTP_METHOD
Instance Attribute Summary
Attributes inherited from Base
#anchor_href, #anchor_params, #image_type, #label, #path_parameters, #query_parameters
Class Method Summary collapse
-
.anchor_href_template ⇒ Object
-
.api_template ⇒ Object
Formatted string specification template See: https://ruby-doc.org/3.4.1/String.html#method-i-25.
-
.label_text_template ⇒ Object
Methods inherited from Base
anchor_href_url, #format, img_src_url, #initialize, label_text
Constructor Details
This class inherits a constructor from Shields::Badge::Base
Class Method Details
.anchor_href_template ⇒ Object
44 |
# File 'lib/shields/badge/activity/github_commits_since_latest_release.rb', line 44 def anchor_href_template = "https://github.com/%{user}/%{repo}/releases" |
.api_template ⇒ Object
Formatted string specification template
See: https://ruby-doc.org/3.4.1/String.html#method-i-25
42 |
# File 'lib/shields/badge/activity/github_commits_since_latest_release.rb', line 42 def api_template = "/github/commits-since/%{user}/%{repo}/latest" |
.label_text_template ⇒ Object
46 |
# File 'lib/shields/badge/activity/github_commits_since_latest_release.rb', line 46 def label_text_template = "%{user}/%{repo} commits since latest release" |