maintainer-feedback requested: [Bug 294765] textproc/rubygem-asciidoctor: make it usable with ruby 4.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Apr 2026 00:57:45 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-ruby (Nobody)
<ruby@FreeBSD.org> for maintainer-feedback:
Bug 294765: textproc/rubygem-asciidoctor: make it usable with ruby 4.0
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294765



--- Description ---
I had to set ruby default version to 4.0.  This results in broken asciidoctor,
even the --version option does not work:

/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidoctor/logging.rb
:
5:in 'Kernel#require': cannot load such file -- logger (LoadError)
	from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidocto
r/logging.rb:5:in 'block in <top (required)>'
	from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidocto
r/logging.rb:7:in '<top (required)>'
	from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidocto
r.rb:549:in 'Kernel#require_relative'
	from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidocto
r.rb:549:in '<top (required)>'
	from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/bin/asciidocto
r:6:in 'Kernel#require'
	from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/bin/asciidocto
r:6:in '<top (required)>'
	from /usr/local/lib/ruby/site_ruby/4.0/rubygems.rb:305:in 'Kernel#load'
	from /usr/local/lib/ruby/site_ruby/4.0/rubygems.rb:305:in
'Gem.activate_
and_load_bin_path'
	from /usr/local/bin/asciidoctor:25:in '<main>'

Apparently all it needs is rubygem-logger.  Adding it to runtime dependency
fixes the problem.  In particular, wireshark doc build, which needs
asciidoctor,
worked.