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/nio4r and be available via the rubygems API
after the next release.
  • Loading branch information
orien authored and ioquatix committed Sep 12, 2019
1 parent cd4d0f9 commit 7a3d634
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nio4r.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.version = NIO::VERSION

spec.metadata = {
"bug_tracker_uri" => "https://github.com/socketry/nio4r/issues",
"changelog_uri" => "https://github.com/socketry/nio4r/blob/master/CHANGES.md",
"documentation_uri" => "https://www.rubydoc.info/gems/nio4r/#{spec.version}",
"source_code_uri" => "https://github.com/socketry/nio4r/tree/v#{spec.version}",
"wiki_uri" => "https://github.com/socketry/nio4r/wiki"
}

spec.required_ruby_version = ">= 2.3"

if defined? JRUBY_VERSION
Expand Down

0 comments on commit 7a3d634

Please sign in to comment.