From 3cb0106a239cb327f44bdb377c22e4f68220425b Mon Sep 17 00:00:00 2001 From: Artem Chubchenko Date: Wed, 18 Feb 2026 23:42:16 +0200 Subject: [PATCH 1/3] Add Ruby 4.0 to CI --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af7939e6..cb122b62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,7 @@ jobs: fail-fast: false matrix: ruby: + - '4.0' - 3.4 - 3.3 - 3.2 From 1a6427fb3ff6019320672b682583f252651c8382 Mon Sep 17 00:00:00 2001 From: chubchenko Date: Wed, 18 Feb 2026 23:46:36 +0200 Subject: [PATCH 2/3] Add ostruct for Ruby 4+ --- Gemfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index 4ad94689..2c18837b 100644 --- a/Gemfile +++ b/Gemfile @@ -56,3 +56,7 @@ end if rails_version.to_s >= '8.1' gem 'mongoid', github: 'mongodb/mongoid', ref: 'eac49f0' end + +if RUBY_VERSION > '4.0.0' + gem 'ostruct' +end From 59945d65e4d30ea1b417e2884888df2fec412a8b Mon Sep 17 00:00:00 2001 From: chubchenko Date: Thu, 19 Feb 2026 12:12:32 +0200 Subject: [PATCH 3/3] Add note about ostruct dependency --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 2c18837b..75f10ade 100644 --- a/Gemfile +++ b/Gemfile @@ -57,6 +57,7 @@ if rails_version.to_s >= '8.1' gem 'mongoid', github: 'mongodb/mongoid', ref: 'eac49f0' end +# FIXME: Remove after the next mongoid release (will include ostruct dependency) if RUBY_VERSION > '4.0.0' gem 'ostruct' end