Skip to content

Commit

Permalink
Add project metadata to the gemspec
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
orien committed Jun 9, 2020
1 parent da95845 commit fd976f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions redis.gemspec
Expand Up @@ -32,6 +32,14 @@ Gem::Specification.new do |s|

s.email = ["redis-db@googlegroups.com"]

s.metadata = {
"bug_tracker_uri" => "#{s.homepage}/issues",
"changelog_uri" => "#{s.homepage}/blob/master/CHANGELOG.md",
"documentation_uri" => "https://www.rubydoc.info/gems/redis/#{s.version}",
"homepage_uri" => s.homepage,
"source_code_uri" => "#{s.homepage}/tree/v#{s.version}"
}

s.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "lib/**/*"]
s.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) }

Expand Down

0 comments on commit fd976f4

Please sign in to comment.