From 81e42e5a7b8a9286ff9e67428cb443d73fd7e8f6 Mon Sep 17 00:00:00 2001 From: Nick Hammond Date: Thu, 6 May 2021 15:45:35 -0700 Subject: [PATCH 1/3] Add metadata for RubyGems to gemspec Add a direct link to the Changelog from RubyGems to help with upgrading Reference: https://guides.rubygems.org/specification-reference/#metadata --- rqrcode.gemspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rqrcode.gemspec b/rqrcode.gemspec index d1dbc33..27e6414 100644 --- a/rqrcode.gemspec +++ b/rqrcode.gemspec @@ -17,6 +17,10 @@ Gem::Specification.new do |spec| EOF spec.homepage = "https://github.com/whomwah/rqrcode" spec.license = "MIT" + spec.metadata = { + "bug_tracker_uri" => "https://github.com/whomwah/rqrcode/issues", + "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/master/CHANGELOG.md" + } spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } From d5e5df1ec8adcff6f7167d80ba3aab5db1a27525 Mon Sep 17 00:00:00 2001 From: Duncan Robertson Date: Thu, 20 May 2021 11:14:44 +0100 Subject: [PATCH 2/3] Update rqrcode.gemspec to fix linting --- rqrcode.gemspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rqrcode.gemspec b/rqrcode.gemspec index 27e6414..d23482f 100644 --- a/rqrcode.gemspec +++ b/rqrcode.gemspec @@ -21,7 +21,10 @@ Gem::Specification.new do |spec| "bug_tracker_uri" => "https://github.com/whomwah/rqrcode/issues", "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/master/CHANGELOG.md" } - +spec.metadata = { + "bug_tracker_uri" => "https://github.com/whomwah/rqrcode/issues", + "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/master/CHANGELOG.md" +} spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end From c2c4c35dca63fac4ec094bc0342a8f8e3fcce2a9 Mon Sep 17 00:00:00 2001 From: Duncan Robertson Date: Thu, 20 May 2021 11:18:39 +0100 Subject: [PATCH 3/3] Fix my previous commit! Tried to be smart and used Github `suggested change` which was not as expected. --- rqrcode.gemspec | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rqrcode.gemspec b/rqrcode.gemspec index d23482f..58d7012 100644 --- a/rqrcode.gemspec +++ b/rqrcode.gemspec @@ -19,12 +19,9 @@ Gem::Specification.new do |spec| spec.license = "MIT" spec.metadata = { "bug_tracker_uri" => "https://github.com/whomwah/rqrcode/issues", - "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/master/CHANGELOG.md" + "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/master/CHANGELOG.md" } -spec.metadata = { - "bug_tracker_uri" => "https://github.com/whomwah/rqrcode/issues", - "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/master/CHANGELOG.md" -} + spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end