Subject: [bug#78826] [PATCH 76/88] gnu: ruby-nokogiri: Update to 1.16.8.

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

* gnu/packages/patches/ruby-nokogiri.patch: Refresh patch.
* gnu/packages/ruby-xyz.scm (ruby-nokogiri): Update to 1.16.8.
---
 gnu/packages/patches/ruby-nokogiri.patch | 29 ++++++++----------------
 gnu/packages/ruby-xyz.scm                |  6 ++---
 2 files changed, 13 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/patches/ruby-nokogiri.patch b/gnu/packages/patches/ruby-nokogiri.patch
index b55b430234..957d56eede 100644
--- a/gnu/packages/patches/ruby-nokogiri.patch
+++ b/gnu/packages/patches/ruby-nokogiri.patch
@@ -1,29 +1,20 @@
-Description: Removed some unnecessary test setup such as SimpleCov and
-  minitest-reporters.
+Description: Removed some unnecessary test setup such as SimpleCov.
 diff --git a/test/helper.rb b/test/helper.rb
-index ed3133c6..4f5d4f1b 100644
+index c84c6f06..9f8022c0 100644
 --- a/test/helper.rb
 +++ b/test/helper.rb
-@@ -13,22 +13,10 @@
- # - NOKOGIRI_GC: read more in test/test_memory_leak.rb
+@@ -12,14 +12,6 @@
+ # - NOKOGIRI_MEMORY_SUITE: read more in test/test_memory_usage.rb
  #
  
--require "simplecov"
--SimpleCov.start do
--  add_filter "/test/"
--  enable_coverage :branch
+-unless ENV["RUBY_MEMCHECK_RUNNING"]
+-  require "simplecov"
+-  SimpleCov.start do
+-    add_filter "/test/"
+-    enable_coverage :branch
+-  end
 -end
 -
  $VERBOSE = true
  
- require "minitest/autorun"
- require "minitest/benchmark"
--require "minitest/reporters"
--
--nokogiri_minitest_reporters_options = { color: true, slow_count: 10, detailed_skip: false }
--nokogiri_minitest_reporters_options[:fast_fail] = true if ENV["NOKOGIRI_TEST_FAIL_FAST"]
--puts "Minitest::Reporters options: #{nokogiri_minitest_reporters_options}"
--Minitest::Reporters.use!(Minitest::Reporters::DefaultReporter.new(nokogiri_minitest_reporters_options))
- 
  require "fileutils"
- require "tempfile"
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 133c134149..2691f5823b 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -6062,16 +6062,16 @@ (define-public ruby-minitar
 (define-public ruby-nokogiri
   (package
     (name "ruby-nokogiri")
-    (version "1.15.2")
+    (version "1.16.8")
     (source (origin
               (method git-fetch)
               (uri (git-reference
                     (url "https://github.com/sparklemotion/nokogiri")
-                    (commit "a6ad20b3edc8f020043ccfe5d9ec6ae9af103720")))
+                    (commit (string-append "v" version))))
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1n0vlg6v58jw3qzgyihz1dh5fvp4js1qgdh75j0kn47nvyiw3jxj"))
+                "09fkjvs4n9n0k0b2qyiq5pxrzidb5a7xaklpckslbcm9fb2gvsq9"))
               (patches (search-patches "ruby-nokogiri.patch"))))
     (build-system ruby-build-system)
     (arguments
-- 
2.49.0