From 76251a81509dda4df0301209780f5b2bc75048d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohni=C4=87?= Date: Wed, 25 Dec 2024 21:27:03 +0100 Subject: [PATCH] Fix Ruby 3.4 tests on older Rails versions The mutex_m standard library seems to have been extracted into a separate gem in Ruby 3.4. --- gemfiles/Gemfile.rails-6.0 | 4 ++++ gemfiles/Gemfile.rails-6.1 | 4 ++++ gemfiles/Gemfile.rails-7.0 | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/gemfiles/Gemfile.rails-6.0 b/gemfiles/Gemfile.rails-6.0 index 1e7b440..63ca66f 100644 --- a/gemfiles/Gemfile.rails-6.0 +++ b/gemfiles/Gemfile.rails-6.0 @@ -24,3 +24,7 @@ if RUBY_VERSION >= "3.1.0" # rake gem dependency on Ruby 3.1+ gem "matrix" end + +if RUBY_VERSION >= "3.4.0" + gem "mutex_m" +end diff --git a/gemfiles/Gemfile.rails-6.1 b/gemfiles/Gemfile.rails-6.1 index e5731df..72585bf 100644 --- a/gemfiles/Gemfile.rails-6.1 +++ b/gemfiles/Gemfile.rails-6.1 @@ -24,3 +24,7 @@ if RUBY_VERSION >= "3.1.0" # rake gem dependency on Ruby 3.1+ gem "matrix" end + +if RUBY_VERSION >= "3.4.0" + gem "mutex_m" +end diff --git a/gemfiles/Gemfile.rails-7.0 b/gemfiles/Gemfile.rails-7.0 index 8ec21ac..1919cbc 100644 --- a/gemfiles/Gemfile.rails-7.0 +++ b/gemfiles/Gemfile.rails-7.0 @@ -24,3 +24,7 @@ if RUBY_VERSION >= "3.1.0" # rake gem dependency on Ruby 3.1+ gem "matrix" end + +if RUBY_VERSION >= "3.4.0" + gem "mutex_m" +end