public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rubygem-tilt] rawhide: Backport upstream patch to support RDoc 8 template in ruby41
Date: Thu, 29 Oct 2026 14:57:43 GMT	[thread overview]
Message-ID: <179328586342.1.2861682912632121371.rpms-rubygem-tilt-72f8463c0bd8@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rubygem-tilt
Branch : rawhide
Commit : 72f8463c0bd869d21e83cbe14fd9810674520b64
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-10-29T23:57:22+09:00
Stats  : +42/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rubygem-tilt/c/72f8463c0bd869d21e83cbe14fd9810674520b64?branch=rawhide

Log:
Backport upstream patch to support RDoc 8 template in ruby41

---
diff --git a/rubygem-tilt.spec b/rubygem-tilt.spec
index 1b90505..5d69511 100644
--- a/rubygem-tilt.spec
+++ b/rubygem-tilt.spec
@@ -5,7 +5,7 @@
 
 Name: rubygem-%{gem_name}
 Version: 2.2.0
-Release: 9%{?dist}
+Release: 10%{?dist}
 Summary: Generic interface to multiple Ruby template engines
 License: MIT
 URL: https://github.com/jeremyevans/tilt
@@ -19,6 +19,9 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
 # git clone https://github.com/jeremyevans/tilt.git && cd tilt
 # git archive -v -o tilt-2.2.0-test.tar.gz v2.2.0 test/
 Source2: %{gem_name}-%{version}-test.tar.gz
+# https://github.com/jeremyevans/tilt/commit/95afeb0633746455b10778967c9ea95c06daa506
+# Support rdoc 8 template
+Patch0: %{gem_name}-95afeb0-support-rdoc8-template.patch
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
@@ -63,6 +66,7 @@ Documentation for %{name}.
 
 %prep
 %setup -q -n %{gem_name}-%{version} -b 2
+%patch -P0 -p1
 
 %build
 # Create the gem as gem install only works on a gem file
@@ -119,6 +123,9 @@ popd
 
 
 %changelog
+* Thu Oct 29 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.0-10
+- Backport upstream patch to support RDoc 8 template in ruby41
+
 * Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/tilt-95afeb0-support-rdoc8-template.patch b/tilt-95afeb0-support-rdoc8-template.patch
new file mode 100644
index 0000000..109d990
--- /dev/null
+++ b/tilt-95afeb0-support-rdoc8-template.patch
@@ -0,0 +1,34 @@
+From 95afeb0633746455b10778967c9ea95c06daa506 Mon Sep 17 00:00:00 2001
+From: Jeremy Evans <code@jeremyevans.net>
+Date: Mon, 6 Jul 2026 14:39:38 -0700
+Subject: [PATCH] Support rdoc 8 in the rdoc template
+
+rdoc 8 made backwards incompatible changes to RDoc::Markup::ToHtml
+initialization (which is OK for a major version bump, but a
+deprecation message in advance would have been nice).
+---
+ CHANGELOG.md     |  1 +
+ lib/tilt/rdoc.rb | 12 ++++++++++--
+ 2 files changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/lib/tilt/rdoc.rb b/lib/tilt/rdoc.rb
+index 2842eb4..e56ec06 100644
+--- a/lib/tilt/rdoc.rb
++++ b/lib/tilt/rdoc.rb
+@@ -14,6 +14,14 @@
+ #   require 'rdoc/markup'
+ #   require 'rdoc/markup/to_html'
+ #   require 'rdoc/options'
+-Tilt::RDocTemplate = Tilt::StaticTemplate.subclass do
+-  RDoc::Markup::ToHtml.new(RDoc::Options.new, nil).convert(@data).to_s
++Tilt::RDocTemplate = if defined?(RDoc::VERSION) && RDoc::VERSION >= "8"
++  Tilt::StaticTemplate.subclass do
++    RDoc::Markup::ToHtml.new.convert(@data).to_s
++  end
++# :nocov:
++else
++  Tilt::StaticTemplate.subclass do
++    RDoc::Markup::ToHtml.new(RDoc::Options.new, nil).convert(@data).to_s
++  end
+ end
++# :nocov:

                 reply	other threads:[~2026-10-29 14:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179328586342.1.2861682912632121371.rpms-rubygem-tilt-72f8463c0bd8@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox