From eb6f7b1d6cf0e9fba339c892596dbd134a6674dc Mon Sep 17 00:00:00 2001 From: Justin Case Date: Sun, 29 Sep 2024 01:44:42 +0200 Subject: [PATCH 1/3] Fix ostruct dependency warning warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. Requires Ruby >= 2.5.0 Resolves GH-175 --- mollie-api-ruby.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mollie-api-ruby.gemspec b/mollie-api-ruby.gemspec index 4f8b5bd..ab0c5fb 100644 --- a/mollie-api-ruby.gemspec +++ b/mollie-api-ruby.gemspec @@ -16,11 +16,13 @@ Gem::Specification.new do |s| s.email = ['info@mollie.com'] s.homepage = 'https://github.com/mollie/mollie-api-ruby' s.license = 'BSD' - s.required_ruby_version = '>= 2.3.8' + s.required_ruby_version = '>= 2.5' s.files = `git ls-files`.split("\n") s.test_files = Dir['test/**/*'] + s.add_dependency('ostruct', '~> 0.6.0') + s.add_development_dependency('rake') s.add_development_dependency('rubocop', '~> 0.57.2') s.add_development_dependency('test-unit') From 73d1817632a5bd6fa2aa8aec452d7651b5b466cc Mon Sep 17 00:00:00 2001 From: Justin Case Date: Mon, 30 Sep 2024 23:50:57 +0200 Subject: [PATCH 2/3] Fix bigdecimal dependency warning warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. --- mollie-api-ruby.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/mollie-api-ruby.gemspec b/mollie-api-ruby.gemspec index ab0c5fb..9b5b1df 100644 --- a/mollie-api-ruby.gemspec +++ b/mollie-api-ruby.gemspec @@ -22,6 +22,7 @@ Gem::Specification.new do |s| s.test_files = Dir['test/**/*'] s.add_dependency('ostruct', '~> 0.6.0') + s.add_dependency('bigdecimal', '~> 3.1', '>= 3.1.8') s.add_development_dependency('rake') s.add_development_dependency('rubocop', '~> 0.57.2') From 07256c3d6937fb8c4fb9ab3cb4875078bde29ab3 Mon Sep 17 00:00:00 2001 From: Justin Case Date: Mon, 30 Sep 2024 23:53:19 +0200 Subject: [PATCH 3/3] Test with Ruby >= 2.5 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ac3dc8..e7d176f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0'] + ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3'] name: Ruby (${{ matrix.ruby-version }}) steps: