8000 Add project metadata to the gemspec · rubyzip/rubyzip@72e7ca0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 72e7ca0

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`, `wiki_uri` and `source_code_uri` links will appear on the rubygems page at https://rubygems.org/gems/rubyzip and be available via the rubygems API after the next release.
1 parent 0d85cb6 commit 72e7ca0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rubyzip.gemspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ Gem::Specification.new do |s|
1616
s.test_files = Dir.glob('test/**/*')
1717
s.require_paths = ['lib']
1818
s.license = 'BSD 2-Clause'
19+
s.metadata = {
20+
'bug_tracker_uri' => 'https://github.com/rubyzip/rubyzip/issues',
21+
'changelog_uri' => "https://github.com/rubyzip/rubyzip/blob/v#{s.version}/Changelog.md",
22+
'documentation_uri' => "https://www.rubydoc.info/gems/rubyzip/#{s.version}",
23+
'source_code_uri' => "https://github.com/rubyzip/rubyzip/tree/v#{s.version}",
24+
'wiki_uri' => 'https://github.com/rubyzip/rubyzip/wiki'
25+
}
1926
s.required_ruby_version = '>= 1.9.2'
2027
s.add_development_dependency 'rake', '~> 10.3'
2128
s.add_development_dependency 'pry', '~> 0.10'

0 commit comments

Comments
 (0)
0