public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-tilt] rawhide: Backport upstream patch to support RDoc 8 template in ruby41
@ 2026-10-29 14:57 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-10-29 14:57 UTC (permalink / raw)
  To: git-commits

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:

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-29 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29 14:57 [rpms/rubygem-tilt] rawhide: Backport upstream patch to support RDoc 8 template in ruby41 Mamoru TASAKA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox