From 7a3d6341b8ffdf89e0f696aef3a27837d696bf88 Mon Sep 17 00:00:00 2001 From: Orien Madgwick <_@orien.io> Date: Thu, 12 Sep 2019 10:58:09 +1000 Subject: [PATCH] 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/nio4r and be available via the rubygems API after the next release. --- nio4r.gemspec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nio4r.gemspec b/nio4r.gemspec index c52577c..22eb681 100644 --- a/nio4r.gemspec +++ b/nio4r.gemspec @@ -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