Skip to content

Commit fd976f4

Browse files
committed
Add project metadata to the gemspec
As per https://guides.rubygems.org/specification-reference/#metadata, add metadata to the gemspec file. This'll allow people to more easily access the source code, raise issues and read the changelog. These bug_tracker_uri, changelog_uri, documentation_uri, homepage_uri and source_code_uri links will appear on the rubygems page at https://rubygems.org/gems/redis and be available via the rubygems API after the next release.
1 parent da95845 commit fd976f4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

redis.gemspec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ Gem::Specification.new do |s|
3232

3333
s.email = ["[email protected]"]
3434

35+
s.metadata = {
36+
"bug_tracker_uri" => "#{s.homepage}/issues",
37+
"changelog_uri" => "#{s.homepage}/blob/master/CHANGELOG.md",
38+
"documentation_uri" => "https://www.rubydoc.info/gems/redis/#{s.version}",
39+
"homepage_uri" => s.homepage,
40+
"source_code_uri" => "#{s.homepage}/tree/v#{s.version}"
41+
}
42+
3543
s.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "lib/**/*"]
3644
s.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) }
3745

0 commit comments

Comments
 (0)