From 26fd1942ee2c8556f2fbfffccedcdb299608f60a Mon Sep 17 00:00:00 2001 From: Orien Madgwick <_@orien.io> Date: Fri, 13 Dec 2019 10:24:41 +1100 Subject: [PATCH 1/2] 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/redis-namespace and be available via the Rubygems API after the next release. --- redis-namespace.gemspec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/redis-namespace.gemspec b/redis-namespace.gemspec index 03188a7..47d5dae 100644 --- a/redis-namespace.gemspec +++ b/redis-namespace.gemspec @@ -12,6 +12,13 @@ Gem::Specification.new do |s| s.authors = ["Chris Wanstrath", "Terence Lee", "Steve Klabnik", "Ryan Biesemeyer"] s.license = 'MIT' + s.metadata = { + "bug_tracker_uri" => "https://github.com/resque/redis-namespace/issues", + "changelog_uri" => "https://github.com/resque/redis-namespace/blob/master/CHANGELOG.md", + "documentation_uri" => "https://www.rubydoc.info/gems/redis-namespace/#{s.version}", + "source_code_uri" => "https://github.com/resque/redis-namespace/tree/v#{s.version}", + } + s.files = %w( README.md Rakefile LICENSE ) s.files += Dir.glob("lib/**/*") s.files += Dir.glob("test/**/*") From 0c45707d97e3f9a9af8f5e39c7e1cf9fbce58f8c Mon Sep 17 00:00:00 2001 From: Orien Madgwick <_@orien.io> Date: Fri, 13 Dec 2019 10:26:52 +1100 Subject: [PATCH 2/2] Use TLS in homepage URI --- redis-namespace.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis-namespace.gemspec b/redis-namespace.gemspec index 47d5dae..ba64d82 100644 --- a/redis-namespace.gemspec +++ b/redis-namespace.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |s| s.version = Redis::Namespace::VERSION s.date = Time.now.strftime('%Y-%m-%d') s.summary = "Namespaces Redis commands." - s.homepage = "http://github.com/resque/redis-namespace" + s.homepage = "https://github.com/resque/redis-namespace" s.email = ["chris@ozmm.org", "hone02@gmail.com", "steve@steveklabnik.com", "me@yaauie.com"] s.authors = ["Chris Wanstrath", "Terence Lee", "Steve Klabnik", "Ryan Biesemeyer"] s.license = 'MIT'