From b349cc8299a801a6f93dd8ea5613cce9b7e688d6 Mon Sep 17 00:00:00 2001 From: Orien Madgwick <_@orien.io> Date: Thu, 17 Oct 2019 08:41:51 +1100 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`, and `source_code_uri` links will appear on the rubygems page at https://rubygems.org/gems/crass and be available via the rubygems API after the next release. --- crass.gemspec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crass.gemspec b/crass.gemspec index 5daa7f1..ce37e3d 100644 --- a/crass.gemspec +++ b/crass.gemspec @@ -11,6 +11,13 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/rgrove/crass/' s.license = 'MIT' + s.metadata = { + 'bug_tracker_uri' => 'https://github.com/rgrove/crass/issues', + 'changelog_uri' => "https://github.com/rgrove/crass/blob/v#{s.version}/HISTORY.md", + 'documentation_uri' => "https://www.rubydoc.info/gems/crass/#{s.version}", + 'source_code_uri' => "https://github.com/rgrove/crass/tree/v#{s.version}", + } + s.platform = Gem::Platform::RUBY s.required_ruby_version = Gem::Requirement.new('>= 1.9.2')