From 98ded6d7649b30533ab6f2b5f115802e14c8fa76 Mon Sep 17 00:00:00 2001 From: Yuji Yaginuma Date: Tue, 14 Jan 2025 11:07:39 +0900 Subject: [PATCH 1/2] CI against Ruby 3.4 This commit adds Ruby 3.4 to the test matrix to ensure to work the gem with it. --- .github/workflows/ruby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index eae00ea..6b9d143 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -26,7 +26,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3'] + ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4'] steps: - uses: actions/checkout@v3 From 7cd69a72e89be91b5b981f146e67b5f273906d80 Mon Sep 17 00:00:00 2001 From: Yuji Yaginuma Date: Tue, 14 Jan 2025 12:35:33 +0900 Subject: [PATCH 2/2] Make `ostruct` an explicit dependency `ostruct` will no longer be part of the default gems since Ruby 3.5.0. So we need to add `ostruct` to the gemspec. Ref: https://bugs.ruby-lang.org/issues/20309 --- gmo.gemspec | 1 + spec/gmo/remittance_api_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/gmo.gemspec b/gmo.gemspec index fb30dc2..bfc75dd 100644 --- a/gmo.gemspec +++ b/gmo.gemspec @@ -28,4 +28,5 @@ Gem::Specification.new do |gem| gem.add_development_dependency "rake" gem.add_development_dependency "vcr" gem.add_development_dependency "webmock" + gem.add_development_dependency "ostruct" end diff --git a/spec/gmo/remittance_api_spec.rb b/spec/gmo/remittance_api_spec.rb index 641cb7f..1cda601 100644 --- a/spec/gmo/remittance_api_spec.rb +++ b/spec/gmo/remittance_api_spec.rb @@ -1,6 +1,7 @@ # Encoding: UTF-8 require "spec_helper" +require "ostruct" describe "GMO::Payment::RemittanceAPI" do