From 98020848e39aad6bc52dc03a5824675effe67837 Mon Sep 17 00:00:00 2001 From: Masato Ikeda Date: Thu, 1 Jan 2026 17:36:32 +0900 Subject: [PATCH 1/2] Remove `if RUBY_VERSION` from gemspec The gemspec is evaluated during `rake release`, so the `if RUBY_VERSION` condition does not depend on the user's Ruby version. See: https://docs.rubocop.org/rubocop/cops_gemspec.html --- bson.gemspec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bson.gemspec b/bson.gemspec index a2171047e..e7bc0120d 100644 --- a/bson.gemspec +++ b/bson.gemspec @@ -34,11 +34,9 @@ Gem::Specification.new do |s| s.platform = 'java' end - if RUBY_VERSION > '3.2.99' - s.add_dependency 'base64' - s.add_dependency 'bigdecimal' - s.add_dependency 'ostruct' - end + s.add_dependency 'base64' + s.add_dependency 'bigdecimal' + s.add_dependency 'ostruct' s.test_files = Dir.glob('spec/**/*') From e3511e68ef4bf3cb3d20e8038ff9db3ce9053e39 Mon Sep 17 00:00:00 2001 From: Kyle Burgess Date: Wed, 7 Jan 2026 14:37:55 -0500 Subject: [PATCH 2/2] Updating config to allow tests to pass --- .evergreen/config.yml | 1 + .evergreen/config/functions.yml.erb | 1 + 2 files changed, 2 insertions(+) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index f352e9495..205495f79 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -50,6 +50,7 @@ functions: # Make an evergreen exapanstion file with dynamic values - command: shell.exec params: + shell: bash working_dir: "src" script: | # Get the current unique version of this checkout diff --git a/.evergreen/config/functions.yml.erb b/.evergreen/config/functions.yml.erb index 5629d2a54..ebb8f41a7 100644 --- a/.evergreen/config/functions.yml.erb +++ b/.evergreen/config/functions.yml.erb @@ -15,6 +15,7 @@ functions: # Make an evergreen exapanstion file with dynamic values - command: shell.exec params: + shell: bash working_dir: "src" script: | # Get the current unique version of this checkout