From 9a6b99f3c5767cf058bad479385ae41c3b9f1333 Mon Sep 17 00:00:00 2001 From: Mark Young Date: Tue, 31 Dec 2024 17:08:54 +0000 Subject: [PATCH 1/2] Provide a 'Changelog' link on rubygems.org/gems/stringio By providing a 'changelog_uri' in the metadata of the gemspec a 'Changelog' link will be shown on https://rubygems.org/gems/stringio 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/#metadata --- stringio.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stringio.gemspec b/stringio.gemspec index b40b7fc8..eb1d0d65 100644 --- a/stringio.gemspec +++ b/stringio.gemspec @@ -39,6 +39,8 @@ Gem::Specification.new do |s| s.required_ruby_version = ">= 2.7" s.summary = "Pseudo IO on String" + s.metadata["changelog_uri"] = s.homepage + "/blob/master/NEWS.md" + # s.cert_chain = %w[certs/nobu.pem] # s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/ end From 9c9a5e59a009878429f19e55dd97de8112eca004 Mon Sep 17 00:00:00 2001 From: mark-young-atg <113439900+mark-young-atg@users.noreply.github.com> Date: Thu, 2 Jan 2025 09:06:59 +0000 Subject: [PATCH 2/2] Update stringio.gemspec Co-authored-by: Sutou Kouhei --- stringio.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stringio.gemspec b/stringio.gemspec index eb1d0d65..f9a07420 100644 --- a/stringio.gemspec +++ b/stringio.gemspec @@ -39,7 +39,7 @@ Gem::Specification.new do |s| s.required_ruby_version = ">= 2.7" s.summary = "Pseudo IO on String" - s.metadata["changelog_uri"] = s.homepage + "/blob/master/NEWS.md" + s.metadata["changelog_uri"] = "#{s.homepage}/releases/tag/v#{s.version}" # s.cert_chain = %w[certs/nobu.pem] # s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/