commit:     4ef83c2df8638a5fd99cdd7571ec56ca7e3ba279
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 26 06:18:52 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Jul 26 06:34:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ef83c2d

dev-ruby/asciidoctor: enable ruby34

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/asciidoctor/asciidoctor-2.0.23.ebuild     |  6 ++--
 .../files/asciidoctor-2.0.23-ruby34.patch          | 42 ++++++++++++++++++++++
 2 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/asciidoctor/asciidoctor-2.0.23.ebuild 
b/dev-ruby/asciidoctor/asciidoctor-2.0.23.ebuild
index 0feddc4709fd..1d6942c3a110 100644
--- a/dev-ruby/asciidoctor/asciidoctor-2.0.23.ebuild
+++ b/dev-ruby/asciidoctor/asciidoctor-2.0.23.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-USE_RUBY="ruby31 ruby32 ruby33"
+USE_RUBY="ruby32 ruby33 ruby34"
 
 RUBY_FAKEGEM_TASK_TEST="CUCUMBER_PUBLISH_QUIET=true test features"
 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc README.adoc"
@@ -23,6 +23,8 @@ SLOT="0"
 KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86"
 IUSE="test"
 
+PATCHES=( "${FILESDIR}/${P}-ruby34.patch" )
+
 ruby_add_bdepend "test? (
        dev-util/cucumber
        dev-ruby/rspec-expectations:*

diff --git a/dev-ruby/asciidoctor/files/asciidoctor-2.0.23-ruby34.patch 
b/dev-ruby/asciidoctor/files/asciidoctor-2.0.23-ruby34.patch
new file mode 100644
index 000000000000..ae17d9992585
--- /dev/null
+++ b/dev-ruby/asciidoctor/files/asciidoctor-2.0.23-ruby34.patch
@@ -0,0 +1,42 @@
+From e5442fc2848680eada862841b0e92dc9265e1a29 Mon Sep 17 00:00:00 2001
+From: Dan Allen <[email protected]>
+Date: Thu, 31 Oct 2024 04:20:33 -0600
+Subject: [PATCH] resolves #4634 normalize output from inspect when comparing
+ to fixture
+
+---
+ test/extensions_test.rb | 20 ++++++++++----------
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/test/extensions_test.rb b/test/extensions_test.rb
+index 93c475a070..20df46cb34 100644
+--- a/test/extensions_test.rb
++++ b/test/extensions_test.rb
+@@ -1468,17 +1468,17 @@ def process parent, reader, attributes
+         ++++
+         EOS
+         expected = <<~'EOS'.chop
+-        target="", attributes={}
+-        target="value,key=val", attributes={1=>"value", "key"=>"val", 
"name"=>"value"}
+-        target="", attributes={"text"=>""}
+-        target="[text]", attributes={"text"=>"[text]"}
+-        target="target", attributes={}
+-        target="target", attributes={1=>"value", "key"=>"val", 
"name"=>"value"}
+-        target="target", attributes={"text"=>""}
+-        target="target", attributes={"text"=>"[text]"}
+-        target="target", attributes={}
++        target="",attributes={}
++        
target="value,key=val",attributes={1=>"value","key"=>"val","name"=>"value"}
++        target="",attributes={"text"=>""}
++        target="[text]",attributes={"text"=>"[text]"}
++        target="target",attributes={}
++        target="target",attributes={1=>"value","key"=>"val","name"=>"value"}
++        target="target",attributes={"text"=>""}
++        target="target",attributes={"text"=>"[text]"}
++        target="target",attributes={}
+         EOS
+-        output = convert_string_to_embedded input
++        output = ((convert_string_to_embedded input).gsub ' => ', '=>').gsub 
', ', ','
+         assert_equal expected, output
+       ensure
+         Asciidoctor::Extensions.unregister_all

Reply via email to