public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-kramdown] rawhide: 2.6.1
@ 2026-11-19 5:51 Mamoru TASAKA
0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-11-19 5:51 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rubygem-kramdown
Branch : rawhide
Commit : c0b29978253eb86968c42a01e1e6980d34e001b2
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date : 2026-11-19T14:51:45+09:00
Stats : +6/-113 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rubygem-kramdown/c/c0b29978253eb86968c42a01e1e6980d34e001b2?branch=rawhide
Log:
2.6.1
---
diff --git a/kramdown-9ebfac6-ruby41-stringscanner-impl-change.patch b/kramdown-9ebfac6-ruby41-stringscanner-impl-change.patch
deleted file mode 100644
index cb6786f..0000000
--- a/kramdown-9ebfac6-ruby41-stringscanner-impl-change.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 9ebfac62754434c7472dd8d0255bd8564f629e37 Mon Sep 17 00:00:00 2001
-From: Thomas Leitner <t_leitner@gmx.at>
-Date: Sat, 7 Nov 2026 00:21:41 +0100
-Subject: [PATCH] Increase performance of
- Utils::StringScanner#current_line_number
-
-Instead of creating a new StringScanner on each invocation and searching
-for each newline separately, the newlines are now counted with
-String#count on a byte slice.
----
- lib/kramdown/utils/string_scanner.rb | 15 +++++++--------
- 1 file changed, 7 insertions(+), 8 deletions(-)
-
-diff --git a/lib/kramdown/utils/string_scanner.rb b/lib/kramdown/utils/string_scanner.rb
-index de076903..44899e13 100644
---- a/lib/kramdown/utils/string_scanner.rb
-+++ b/lib/kramdown/utils/string_scanner.rb
-@@ -65,14 +65,13 @@ def revert_pos(data)
- # NOTE: Normally we'd have to add one to the count of newlines to get the correct line number.
- # However we add the one indirectly by using a one-based start_line_number.
- def current_line_number
-- # Not using string[@previous_pos..best_pos].count('\n') because it is slower
-- strscan = ::StringScanner.new(string)
-- strscan.pos = @previous_pos
-- old_pos = pos + 1
-- @previous_line_number += 1 while strscan.skip_until(/\n/) && strscan.pos <= old_pos
--
-- @previous_pos = (eos? ? pos : pos + 1)
-- @previous_line_number
-+ cur_pos = pos
-+ if cur_pos > @previous_pos
-+ @previous_line_number += string.byteslice(@previous_pos, cur_pos - @previous_pos).
-+ force_encoding(Encoding::BINARY).count("\n")
-+ @previous_pos = cur_pos
-+ end
-+ string.getbyte(cur_pos) == 10 ? @previous_line_number + 1 : @previous_line_number
- end
-
- end
diff --git a/kramdown-ad36bb9-suppress-rouge-formatter-deprecation-warning.patch b/kramdown-ad36bb9-suppress-rouge-formatter-deprecation-warning.patch
deleted file mode 100644
index a5d988d..0000000
--- a/kramdown-ad36bb9-suppress-rouge-formatter-deprecation-warning.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From ad36bb92474232832af484b3751bde90912b580b Mon Sep 17 00:00:00 2001
-From: Thomas Leitner <t_leitner@gmx.at>
-Date: Sun, 1 Nov 2026 15:27:29 +0100
-Subject: [PATCH] Fix warning related to deprecated HTMLLegacy formatter of
- Rouge
-
----
- doc/syntax_highlighter/rouge.page | 8 ++---
- .../converter/syntax_highlighter/rouge.rb | 33 +++++++++++++++++--
- 2 files changed, 35 insertions(+), 6 deletions(-)
-
-diff --git a/lib/kramdown/converter/syntax_highlighter/rouge.rb b/lib/kramdown/converter/syntax_highlighter/rouge.rb
-index a286c4d9..b9c21e2d 100644
---- a/lib/kramdown/converter/syntax_highlighter/rouge.rb
-+++ b/lib/kramdown/converter/syntax_highlighter/rouge.rb
-@@ -17,6 +17,36 @@ module Rouge
-
- # Highlighting via Rouge is available if this constant is +true+.
- AVAILABLE = true
-+
-+ # This is the HTMLLegacy implementation from Rouge that is deprecated. Therefore it is
-+ # reproduced here and only adapted as needed.
-+ class HTMLLegacy < ::Rouge::Formatter
-+ def initialize(opts = {})
-+ @formatter = if opts[:inline_theme]
-+ ::Rouge::Formatters::HTMLInline.new(opts[:inline_theme])
-+ else
-+ ::Rouge::Formatters::HTML.new
-+ end
-+ @formatter = ::Rouge::Formatters::HTMLTable.new(@formatter, opts) if opts[:line_numbers]
-+
-+ if opts.fetch(:wrap, true)
-+ @pygments_wrap = opts.fetch(:css_class, 'codehilite')
-+ end
-+ end
-+
-+ def stream(tokens, &b)
-+ if @pygments_wrap
-+ yield %(<div class="highlight"><pre class="#{@pygments_wrap}"><code>)
-+ end
-+
-+ @formatter.stream(tokens, &b)
-+
-+ if @pygments_wrap
-+ yield "</code></pre></div>"
-+ end
-+ end
-+ end
-+
- rescue LoadError, SyntaxError
- AVAILABLE = false # :nodoc:
- end
-@@ -72,8 +102,7 @@ def self.formatter_class(opts = {})
- when /\A[[:upper:]][[:alnum:]_]*\z/
- ::Rouge::Formatters.const_get(formatter, false)
- else
-- # Available in Rouge 2.0 or later
-- ::Rouge::Formatters::HTMLLegacy
-+ HTMLLegacy
- end
- rescue NameError
- # Fallback to Rouge 1.x
diff --git a/rubygem-kramdown.spec b/rubygem-kramdown.spec
index e844806..aa17271 100644
--- a/rubygem-kramdown.spec
+++ b/rubygem-kramdown.spec
@@ -2,20 +2,14 @@
%global gem_name kramdown
Name: rubygem-%{gem_name}
-Version: 2.5.2
-Release: 5%{?dist}
+Version: 2.6.1
+Release: 1%{?dist}
Summary: Fast, pure-Ruby Markdown-superset converter
# SPDX confirmed
License: MIT
URL: http://kramdown.gettalong.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-# https://github.com/gettalong/kramdown/commit/ad36bb92474232832af484b3751bde90912b580b
-# Suppress Rouge formatter deprecation warning
-Patch0: kramdown-ad36bb9-suppress-rouge-formatter-deprecation-warning.patch
-# https://github.com/gettalong/kramdown/commit/9ebfac62754434c7472dd8d0255bd8564f629e37
-# Utils::StringScanner#current_line_number implementation change, needed for ruby41
-Patch1: kramdown-9ebfac6-ruby41-stringscanner-impl-change.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest) >= 5
@@ -67,9 +61,6 @@ Documentation for %{name}
%setup -q -n %{gem_name}-%{version}
mv ../%{gem_name}-%{version}.gemspec .
-%patch -P0 -p1
-%patch -P1 -p1
-
%build
gem build %{gem_name}-%{version}.gemspec
%gem_install
@@ -139,6 +130,9 @@ popd
%doc %{gem_docdir}
%changelog
+* Thu Nov 19 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.6.1-1
+- 2.6.1
+
* Sun Nov 15 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.5.2-5
- Backport upstream change for StringScanner implementation needed for ruby4.1
- Backport upstream change to suppress warnings for new Rouge
diff --git a/sources b/sources
index 69efbf5..a764249 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (kramdown-2.5.2.gem) = 7ff759509579fd3ff68cf634a5469ad8a3113b22e6e50c308b8074461ea588f7533ee298ae75f100e2ad2bcd33eaef289298a788faca6219667424f83123e06e
+SHA512 (kramdown-2.6.1.gem) = befee1a190e7ae7aeae0de9708b98303e31c2111539689f2e3b48c013c227fbef57a2e3531d09018677f1398e5e4089f2ff1f2b8ef2cffcb66b14357104bc78d
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 5:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 5:51 [rpms/rubygem-kramdown] rawhide: 2.6.1 Mamoru TASAKA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox