From 485a8aa636d1b9eb53d3bd6d12bbb3498a8bfabb Mon Sep 17 00:00:00 2001 From: Miguel Botelho <9268166+miguel-botelho@users.noreply.github.com> Date: Thu, 7 Jul 2022 14:17:40 +0100 Subject: [PATCH 1/3] Add double splat operator to Link initialize Add double splat operator on post_initialize call to support Ruby 3 versions --- lib/hal_client/link.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hal_client/link.rb b/lib/hal_client/link.rb index 64becb9..21e0db0 100644 --- a/lib/hal_client/link.rb +++ b/lib/hal_client/link.rb @@ -8,7 +8,7 @@ class Link @literal_rel = rel @curie_resolver = curie_resolver - post_initialize(opts) + post_initialize(**opts) end def raw_href From 075095eb382efebf95ad408c443cfbd023b1cb38 Mon Sep 17 00:00:00 2001 From: Miguel Botelho <9268166+miguel-botelho@users.noreply.github.com> Date: Thu, 7 Jul 2022 14:19:38 +0100 Subject: [PATCH 2/3] Update version from 6.0.1 to 6.0.2 --- lib/hal_client/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hal_client/version.rb b/lib/hal_client/version.rb index 14de090..cb959bc 100644 --- a/lib/hal_client/version.rb +++ b/lib/hal_client/version.rb @@ -1,3 +1,3 @@ class HalClient - VERSION = "6.0.1" + VERSION = "6.0.2" end From a4623b8f0ea83fb81b79f395d6ccc80d543b0260 Mon Sep 17 00:00:00 2001 From: Miguel Botelho <9268166+miguel-botelho@users.noreply.github.com> Date: Thu, 7 Jul 2022 14:25:01 +0100 Subject: [PATCH 3/3] Update minimum Ruby version --- hal-client.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal-client.gemspec b/hal-client.gemspec index 70081ca..ef390a8 100644 --- a/hal-client.gemspec +++ b/hal-client.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.description = %q{An easy to use interface for REST APIs that use HAL.} spec.homepage = "https://github.com/pezra/hal-client" spec.license = "MIT" - spec.required_ruby_version = '~> 2.3' + spec.required_ruby_version = '>= 2.4' spec.files = `git ls-files`.split($/) spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }