Workaround for libxml2 2.10.3+ test compatibility

Namespace handling has become stricter, and these foo: namespaces are
now being preserved, and perhaps correctly so.

https://github.com/apjanke/ronn-ng/issues/102
This commit is contained in:
Yaakov Selkowitz 2023-12-26 23:12:52 -05:00
parent eea1a36cae
commit b8ee1ea249
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Backport of https://github.com/apjanke/ronn-ng/commit/c4459d4fc7fed5f0c3512a3751e1d13072dd5d3a
diff --git a/test/angle_bracket_syntax.html b/test/angle_bracket_syntax.html
index e10241b..8567d2e 100644
--- a/test/angle_bracket_syntax.html
+++ b/test/angle_bracket_syntax.html
@@ -13,5 +13,5 @@ code block,
<p>or when <code>&lt;WORD&gt;</code> is enclosed in backticks.</p>
-<p>or when <var>WORD</var> has a <dot.> or <colon>.</colon></dot.></p>
+<p>or when <var>WORD</var> has a <dot.> or <foo:colon>.</foo:colon></dot.></p>
</div>

View File

@ -12,6 +12,9 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# https://github.com/apjanke/ronn-ng/issues/80
# https://github.com/apjanke/ronn-ng/pull/81
Patch0: rubygem-ronn-ng-0.9.1-Permit-Time-class-loading-from-YAML.patch
# Workaround for libxml2 2.10.3+ test compatibility
# https://github.com/apjanke/ronn-ng/issues/102
Patch1: rubygem-ronn-ng-0.9.1-libxml2-namespace.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
@ -45,6 +48,7 @@ Documentation for %{name}.
%setup -q -n %{gem_name}-%{version}
%patch0 -p1
%patch -P1 -p1
# Upstream specifies mustache==0.7, but we have 1.1 and it seems to work fine...
%gemspec_remove_dep -g mustache "~> 0.7"