Subject: [bug#78826] [PATCH 61/88] gnu: ruby-maxitest: Update to 6.0.0.

From: Nicolas Graves <[email-masked]>
Date: Wed, 18 Jun 2025 16:27:48 +0200

* gnu/packages/ruby-xyz.scm (ruby-maxitest): Update to 6.0.0.
  [arguments]{phases}: Add phase 'add-mutex-m.
  [native-inputs]: Add ruby-mutex-m.
---
 gnu/packages/ruby-xyz.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index bd9a7021ff..fd068ce27d 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -5131,7 +5131,7 @@ (define-public ruby-rerun
 (define-public ruby-maxitest
   (package
     (name "ruby-maxitest")
-    (version "5.1.0")
+    (version "6.0.0")
     (home-page "https://github.com/grosser/maxitest")
     (source (origin
               ;; Pull from git because the gem does not contain tests.
@@ -5142,13 +5142,19 @@ (define-public ruby-maxitest
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0qj410krfm497ggmf71xpnabbb6814y0585by4nlzyjvg9hpgg3m"))))
+                "08wwcjlq0gnzfpmf9jxs28x31d62xvx0gbvwrfr923mcn30myxrd"))))
     (build-system ruby-build-system)
     (arguments
      (list
       #:test-target "default"
       #:phases
       #~(modify-phases %standard-phases
+          ;; Warnings make 2 tests fail. Add mutex-m in Gemfile to avoid them.
+          (add-after 'unpack 'add-mutex-m
+            (lambda _
+              (substitute* "Gemfile"
+                (("^gem \"bump\".*" all)
+                 (string-append all "gem \"mutex_m\"\n")))))
           (replace 'replace-git-ls-files
             (lambda _
               (substitute* "maxitest.gemspec"
@@ -5168,6 +5174,7 @@ (define-public ruby-maxitest
     (native-inputs
      (list procps
            ruby-bump
+           ruby-mutex-m
            ruby-rspec
            ruby-wwtd))
     (propagated-inputs
-- 
2.49.0