Subject: [bug#78826] [PATCH 09/88] gnu: ruby-m: Update to 1.6.2.

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

* gnu/packages/ruby-xyz.scm (ruby-m): Update to 1.6.2.
  [arguments]{phases}: Adapt phase 'sanitize-dependencies accordingly.
---
 gnu/packages/ruby-xyz.scm | 23 ++++++-----------------
 1 file changed, 6 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 6c36d55af4..5bc8ca59d8 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -13377,7 +13377,7 @@ (define-public ruby-matrix
 (define-public ruby-m
   (package
     (name "ruby-m")
-    (version "1.6.1")
+    (version "1.6.2")
     (source (origin
               (method git-fetch)        ;for tests
               (uri (git-reference
@@ -13386,7 +13386,7 @@ (define-public ruby-m
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1aycfc8l1bsln1y300fv75fknn4amjcvc4rm2kd8hb6cqivjq5rg"))))
+                "0za9jsq341xyqjaswx2wrd4x42w9a2xygarh9spsvsxaxf5b1sz3"))))
     (build-system ruby-build-system)
     (arguments
      (list
@@ -13395,24 +13395,13 @@ (define-public ruby-m
           (add-after 'unpack 'sanitize-dependencies
             (lambda _
               (delete-file "Gemfile")
-              (delete-file "Gemfile.lock")
-              ;; Rocco is unmaintained as of 2023/01/08; avoid depending on
-              ;; it.
               (substitute* "m.gemspec"
-                ;; The rdiscount and rocco dependencies are used for
-                ;; generating the documentation.
-                ((".*rdiscount.*") "")
-                ((".*rocco.*") "")
-                ((".*appraisal.*") "")
                 ((".*coveralls.*") ""))
               (substitute* "Rakefile"
-                ;; ruby-appraisal is not packaged, and is used to test against
-                ;; various dependencies; circumvent its use.
-                ((".*require 'appraisal'.*") "")
-                ((".*require 'coveralls'.*") "")
-                (("appraisal [:graphic:]+ rake")
-                 "rake")
-                (("Coveralls.push!") ""))))
+                ((".*require \"coveralls\".*") "")
+                ((".*require \"standard/rake\".*") "")
+                (("Coveralls.push!") "")
+                (("\"standard:fix\"") ""))))
           (add-before 'replace-git-ls-files 'pre-replace-git-ls-files
             (lambda _
               (substitute* "m.gemspec"
-- 
2.49.0