From 40dc00ee515fd2ca4e718445e865c4533007c5f3 Mon Sep 17 00:00:00 2001 From: Watson Date: Sat, 1 Jun 2024 09:40:36 +0900 Subject: [PATCH] CI: Fix CI error (#357) * CI: Use `bundle exe` to run each test files in order to solve CI error * Add test-unit gem * Add bigdecimal as dependency gem --- Gemfile | 1 + Rakefile | 2 +- ox.gemspec | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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 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 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