From cb6091bb8b1758978da0ffa93428214fe934c45d Mon Sep 17 00:00:00 2001 From: Nick Hammond Date: Thu, 6 May 2021 15:36:02 -0700 Subject: [PATCH 1/3] Add metadata for RubyGems --- ruby-jwt.gemspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruby-jwt.gemspec b/ruby-jwt.gemspec index 24cefef6..191f1985 100644 --- a/ruby-jwt.gemspec +++ b/ruby-jwt.gemspec @@ -14,6 +14,10 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/jwt/ruby-jwt' spec.license = 'MIT' spec.required_ruby_version = '>= 2.1' + spec.metadata = { + "bug_tracker_uri" => "https://github.com/jwt/ruby-jwt/issues", + "changelog_uri" => "https://github.com/jwt/ruby-jwt/blob/master/CHANGELOG.md" + } spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|gemfiles|coverage|bin)/}) } spec.executables = [] From f3a2a05b272639cfc810a3120507e00d558b202c Mon Sep 17 00:00:00 2001 From: Nick Hammond Date: Thu, 6 May 2021 16:11:42 -0700 Subject: [PATCH 2/3] Use single quotes for metadata in gemspec --- ruby-jwt.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby-jwt.gemspec b/ruby-jwt.gemspec index 191f1985..71edc054 100644 --- a/ruby-jwt.gemspec +++ b/ruby-jwt.gemspec @@ -15,8 +15,8 @@ Gem::Specification.new do |spec| spec.license = 'MIT' spec.required_ruby_version = '>= 2.1' spec.metadata = { - "bug_tracker_uri" => "https://github.com/jwt/ruby-jwt/issues", - "changelog_uri" => "https://github.com/jwt/ruby-jwt/blob/master/CHANGELOG.md" + 'bug_tracker_uri' => 'https://github.com/jwt/ruby-jwt/issues', + 'changelog_uri' => 'https://github.com/jwt/ruby-jwt/blob/master/CHANGELOG.md' } spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|gemfiles|coverage|bin)/}) } From 25035a96b1d1516a9f457ba88a2fa2881e72981d Mon Sep 17 00:00:00 2001 From: Nick Hammond Date: Tue, 18 May 2021 07:28:09 -0700 Subject: [PATCH 3/3] Use JWT.gem_version in gemspec metadata for changelog Co-authored-by: Joakim Antman --- ruby-jwt.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby-jwt.gemspec b/ruby-jwt.gemspec index 71edc054..b983b83e 100644 --- a/ruby-jwt.gemspec +++ b/ruby-jwt.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.1' spec.metadata = { 'bug_tracker_uri' => 'https://github.com/jwt/ruby-jwt/issues', - 'changelog_uri' => 'https://github.com/jwt/ruby-jwt/blob/master/CHANGELOG.md' + 'changelog_uri' => "https://github.com/jwt/ruby-jwt/blob/v#{JWT.gem_version}/CHANGELOG.md" } spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|gemfiles|coverage|bin)/}) }