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`, `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.
  • Loading branch information
orien committed Sep 12, 2019
1 parent 0d85cb6 commit 72e7ca0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rubyzip.gemspec
Expand Up @@ -16,6 +16,13 @@ Gem::Specification.new do |s|
s.test_files = Dir.glob('test/**/*')
s.require_paths = ['lib']
s.license = 'BSD 2-Clause'
s.metadata = {
'bug_tracker_uri' => 'https://github.com/rubyzip/rubyzip/issues',
'changelog_uri' => "https://github.com/rubyzip/rubyzip/blob/v#{s.version}/Changelog.md",
'documentation_uri' => "https://www.rubydoc.info/gems/rubyzip/#{s.version}",
'source_code_uri' => "https://github.com/rubyzip/rubyzip/tree/v#{s.version}",
'wiki_uri' => 'https://github.com/rubyzip/rubyzip/wiki'
}
s.required_ruby_version = '>= 1.9.2'
s.add_development_dependency 'rake', '~> 10.3'
s.add_development_dependency 'pry', '~> 0.10'
Expand Down

0 comments on commit 72e7ca0

Please sign in to comment.