From 0b873d5a5ffbdc8eea728aa93c43790ebf7c63cd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 15 Aug 2020 10:53:10 +0200 Subject: [PATCH] include upstream patch to make test suite compatible with kramdown 2.2.0 --- README.md | 3 --- ad48572.patch | 24 ++++++++++++++++++++++++ rubygem-kramdown-parser-gfm.spec | 10 +++++++++- 3 files changed, 33 insertions(+), 4 deletions(-) delete mode 100644 README.md create mode 100644 ad48572.patch diff --git a/README.md b/README.md deleted file mode 100644 index 150fb65..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rubygem-kramdown-parser-gfm - -The rubygem-kramdown-parser-gfm package \ No newline at end of file diff --git a/ad48572.patch b/ad48572.patch new file mode 100644 index 0000000..5122139 --- /dev/null +++ b/ad48572.patch @@ -0,0 +1,24 @@ +From ad48572d75299355563fc20ba1dd90cbec35ba81 Mon Sep 17 00:00:00 2001 +From: Ashwin Maroli +Date: Wed, 22 Jul 2020 23:33:50 +0530 +Subject: [PATCH] Update test expectation to reflect current result + +The change in generated markup is external to the GFM Parser: +kramdown-2.2.0 changed output of MathJax math engine to be compatible with +MathJax v2 and v3. + +Resolves https://github.com/kramdown/parser-gfm/issues/19 +--- + test/testcases/header_ids.html | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/testcases/header_ids.html b/test/testcases/header_ids.html +index b45fe8f..f2fb65f 100644 +--- a/test/testcases/header_ids.html ++++ b/test/testcases/header_ids.html +@@ -24,4 +24,4 @@

With “smart” quotes

+ +

with — « typographic » … symbols

+ +-

with

++

with \(m=5\)

diff --git a/rubygem-kramdown-parser-gfm.spec b/rubygem-kramdown-parser-gfm.spec index 9de8a72..022c8e0 100644 --- a/rubygem-kramdown-parser-gfm.spec +++ b/rubygem-kramdown-parser-gfm.spec @@ -3,12 +3,15 @@ Name: rubygem-%{gem_name} Summary: Kramdown parser for GitHub-flavored markdown Version: 1.1.0 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://github.com/kramdown/parser-gfm Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# upstream patch to make test suite compatible with kramdown 2.2.0 +Patch0: %{url}/commit/ad48572.patch + BuildArch: noarch BuildRequires: ruby(release) @@ -36,6 +39,7 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} +%patch0 -p1 %build @@ -82,6 +86,10 @@ popd %changelog +* Sat Aug 15 2020 Fabio Valentini - 1.1.0-5 +- Include upstream patch to make test suite compatible with kramdown 2.2.0. +- Fixes RHBZ#1865414 + * Sat Aug 01 2020 Fedora Release Engineering - 1.1.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild