mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-ruby/kramdown-parser-gfm: enable ruby30, fix tests
Closes: https://bugs.gentoo.org/733922 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
USE_RUBY="ruby25 ruby26 ruby27"
|
||||
USE_RUBY="ruby26 ruby27 ruby30"
|
||||
|
||||
inherit ruby-fakegem
|
||||
inherit edo ruby-fakegem
|
||||
|
||||
DESCRIPTION="A kramdown parser for the GFM dialect of Markdown"
|
||||
HOMEPAGE="https://github.com/kramdown/parser-gfm"
|
||||
@@ -20,8 +20,11 @@ ruby_add_bdepend "test? ( dev-ruby/kramdown[latex] )"
|
||||
all_ruby_prepare() {
|
||||
# Avoid testcase which is no longer compatible with newer rouge
|
||||
rm -f test/testcases/codeblock_fenced.text || die
|
||||
|
||||
# Avoid test broken with current kramdown versions
|
||||
rm -r test/testcases/header_ids.text || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
|
||||
edo ${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user