summaryrefslogtreecommitdiff
path: root/lib/abbrev.gemspec
diff options
context:
space:
mode:
authorMark Young <mark.young@atg.auto>2024-01-09 15:47:09 +0000
committergit <svn-admin@ruby-lang.org>2024-01-09 16:07:39 +0000
commit7015cb2479309541c58e4b269d6cb55f097be35e (patch)
tree636ad49f7d04454bfe5909cb40106e8efa5233d5 /lib/abbrev.gemspec
parent88d7838445ec84b1cc630ce3bd97bb71cd0aefd4 (diff)
[ruby/abbrev] Provide a 'Changelog' link on rubygems.org/gems/abbrev
By providing a 'changelog_uri' in the metadata of the gemspec a 'Changelog' link will be shown on https://rubygems.org/gems/abbrev which makes it quick and easy for someone to check on the changes introduced with a new version. Details of this functionality can be found on https://guides.rubygems.org/specification-reference/ https://github.com/ruby/abbrev/commit/9643a03ee8
Diffstat (limited to 'lib/abbrev.gemspec')
-rw-r--r--lib/abbrev.gemspec1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/abbrev.gemspec b/lib/abbrev.gemspec
index 50c500bbc7..57ae5738b8 100644
--- a/lib/abbrev.gemspec
+++ b/lib/abbrev.gemspec
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
+ spec.metadata["changelog_uri"] = spec.homepage + "/releases"
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }