Update to Asciidoctor 2.0.13

Release notes:
https://github.com/asciidoctor/asciidoctor/releases/tag/v2.0.13
This commit is contained in:
Todd Zullinger 2021-04-10 19:54:40 -04:00
parent 00da97c840
commit 614cb70e6d
3 changed files with 6 additions and 41 deletions

View File

@ -1,37 +0,0 @@
From 62014851b087071339d19b5313e5676766aabe90 Mon Sep 17 00:00:00 2001
From: Dan Allen <dan.j.allen@gmail.com>
Date: Fri, 22 Jan 2021 03:18:10 -0700
Subject: [PATCH] resolves #3916 upgrade rouge and fix test assertion (PR
#3920)
---
asciidoctor.gemspec | 2 +-
test/syntax_highlighter_test.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/asciidoctor.gemspec b/asciidoctor.gemspec
index 66d70eb25..d12c24614 100644
--- a/asciidoctor.gemspec
+++ b/asciidoctor.gemspec
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'nokogiri', '~> 1.10.0'
s.add_development_dependency 'rake', '~> 12.3.0'
# Asciidoctor supports Rouge >= 2
- s.add_development_dependency 'rouge', '~> 3.15.0'
+ s.add_development_dependency 'rouge', '~> 3.26.0'
s.add_development_dependency 'rspec-expectations', '~> 3.8.0'
s.add_development_dependency 'slim', '~> 4.0.0'
s.add_development_dependency 'tilt', '~> 2.0.0'
diff --git a/test/syntax_highlighter_test.rb b/test/syntax_highlighter_test.rb
index 0a96ee96b..7b8502b1e 100644
--- a/test/syntax_highlighter_test.rb
+++ b/test/syntax_highlighter_test.rb
@@ -758,7 +758,7 @@ def highlight?
output = convert_string_to_embedded input, safe: :safe, attributes: { 'source-highlighter' => 'rouge' }
assert_css 'pre.rouge > code[data-lang="php"]', output, 1
# if class is "nb", then the funcnamehighlighting option is not honored
- assert_include '<span class="nx">cal_days_in_month</span>', output
+ refute_include '<span class="nb">cal_days_in_month</span>', output
assert_include '<span class="mi">2019</span>', output
end

View File

@ -6,14 +6,11 @@
Summary: A fast, open source AsciiDoc implementation in Ruby
Name: rubygem-%{gem_name}
Version: 2.0.12
Version: 2.0.13
Release: 1%{?dist}
License: MIT
URL: https://asciidoctor.org
Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz
# Fix test failure
# https://github.com/asciidoctor/asciidoctor/issues/3916
Patch0: https://github.com/asciidoctor/asciidoctor/commit/62014851b.patch#/0001-resolves-3916-upgrade-rouge-and-fix-test-assertion-P.patch
%if 0%{?el7}
Requires: ruby(release)
BuildRequires: ruby(release)
@ -128,6 +125,10 @@ cp -a .%{gem_instdir}/man/*.1 \
%doc %{gem_docdir}
%changelog
* Sat Apr 10 2021 Todd Zullinger <tmz@pobox.com> - 2.0.13-1
- Update to asciidoctor 2.0.13
Resolves: rhbz#1948231
* Wed Jan 27 2021 Pavel Valena <pvalena@redhat.com> - 2.0.12-1
- Update to asciidoctor 2.0.12.
Resolves: rhbz#1893940

View File

@ -1 +1,2 @@
SHA512 (asciidoctor-2.0.12.tar.gz) = b1fdfd8907d19943bebc9040e3e541df81eb874bf9d53a174e5be8a804e117e7ee3cd21046a4a4142cdc285e6269796d06915b0f42f4f16ae1e8975e444a8a76
SHA512 (asciidoctor-2.0.13.tar.gz) = 952f628b274b5115a57974e1a8dbde2bae6aeed08d3ef9cafac09875b7fa7440c2b34ed956b5497746a1d2d5932cd346b552f9b50817055e88565c8d15ba0881