From 31852347d9beb03d3baf62945e113f008d9a5c9b Mon Sep 17 00:00:00 2001 From: Jason Garber Date: Tue, 14 Oct 2025 10:21:25 -0400 Subject: [PATCH] Add `changelog_uri` to spec metadata This project's `NEWS.md` file appears to be the closest thing to a changelog file that I could find. The change here links to the file in the released version's branch. RubyGems.org will use this metadata to display a link to this file on the gem's release pages. --- erb.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/erb.gemspec b/erb.gemspec index 94edc68..3793e5d 100644 --- a/erb.gemspec +++ b/erb.gemspec @@ -18,6 +18,7 @@ Gem::Specification.new do |spec| spec.metadata['homepage_uri'] = spec.homepage spec.metadata['source_code_uri'] = spec.homepage + spec.metadata['changelog_uri'] = "https://github.com/ruby/erb/blob/v#{spec.version}/NEWS.md" spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }