From f98519df32d0bd0acf46f97b9d2cdc0cee05cbab Mon Sep 17 00:00:00 2001 From: Watson Date: Fri, 31 May 2024 14:34:33 +0900 Subject: [PATCH 1/3] CI: Use `bundle exe` to run each test files in order to solve CI error --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 25f3003a..eb5fc173 100644 --- a/Rakefile +++ b/Rakefile @@ -13,7 +13,7 @@ task test_all: [:clean, :compile] do exitcode = 0 status = 0 - cmds = 'ruby test/tests.rb -v' + cmds = 'bundle exec ruby test/tests.rb -v' $stdout.syswrite "\n#{'#' * 90}\n#{cmds}\n" Bundler.with_original_env do From af0fd60e3fd7d79ed88d8d01d625ed3707dc5860 Mon Sep 17 00:00:00 2001 From: Watson Date: Fri, 31 May 2024 14:39:51 +0900 Subject: [PATCH 2/3] Add test-unit gem --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index d6260cbe..43fb699b 100644 --- a/Gemfile +++ b/Gemfile @@ -5,4 +5,5 @@ gemspec group :development do gem 'rake-compiler', '>= 1.2', '< 2.0' gem 'rubocop', '~> 1.47', require: false + gem 'test-unit', '~> 3.0' end From 8735f5b69ad01f0396f0484f2a05c073b19b8598 Mon Sep 17 00:00:00 2001 From: Watson Date: Fri, 31 May 2024 14:42:29 +0900 Subject: [PATCH 3/3] Add bigdecimal as dependency gem --- ox.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ox.gemspec b/ox.gemspec index 1524c9b3..b510a4f7 100644 --- a/ox.gemspec +++ b/ox.gemspec @@ -37,4 +37,6 @@ serialization. } s.required_ruby_version = '>= 2.7.0' s.metadata['rubygems_mfa_required'] = 'true' + + s.add_runtime_dependency 'bigdecimal', '>= 3.0' end