Skip to content

Commit c3953d4

Browse files
committedOct 2, 2019
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`, and `source_code_uri` links will appear on the rubygems page at https://rubygems.org/gems/rake and be available via the Rubygems API after the next release.
1 parent d8aba43 commit c3953d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎rake.gemspec

+7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ Rake has the following features:
2323
s.homepage = "https://github.com/ruby/rake".freeze
2424
s.licenses = ["MIT".freeze]
2525

26+
s.metadata = {
27+
"bug_tracker_uri" => "https://github.com/ruby/rake/issues",
28+
"changelog_uri" => "https://github.com/ruby/rake/blob/v#{s.version}/History.rdoc",
29+
"documentation_uri" => "https://ruby.github.io/rake",
30+
"source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}",
31+
}
32+
2633
s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } -
2734
%w[.rubocop.yml .gitignore .travis.yml appveyor.yml]
2835
s.bindir = "exe"

0 commit comments

Comments
 (0)
Please sign in to comment.