Skip to content

Commit 85a4f10

Browse files
authored
Add changelog_uri to spec metadata (#89)
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.
1 parent c231ced commit 85a4f10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

erb.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
1818

1919
spec.metadata['homepage_uri'] = spec.homepage
2020
spec.metadata['source_code_uri'] = spec.homepage
21+
spec.metadata['changelog_uri'] = "https://github.com/ruby/erb/blob/v#{spec.version}/NEWS.md"
2122

2223
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
2324
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }

0 commit comments

Comments
 (0)