Skip to content

Conversation

@aspeer
Copy link
Contributor

@aspeer aspeer commented May 16, 2022

… (e.g. 5.16 on RHEL 7.9)

Fix for #12

@aspeer
Copy link
Contributor Author

aspeer commented May 16, 2022

Poor spelling - should be "Workaround to enable Markdown::Pod to test OK on older Perl versions". Bless GLOB as IO::File file handle. I'm not across the vagaries of Moose but presumably something to do with type checking in that module - error on older Perl versions (e.g. 5.16 in RHEL 7.9) without fix is:

$ perl -Ilib -It/lib t/001-line-break.t
1..1
Attribute (_output) does not pass the type constraint because: The output stream must be a Perl file handle or an object with a print method at constructor Markdown::Pod::Handler::new (defined at lib/Markdown/Pod/Handler.pm line 476) line 59
Markdown::Pod::Handler::new('Markdown::Pod::Handler', 'encoding', 'utf8', 'output', 'GLOB(0xd11ba0)') called at lib/Markdown/Pod.pm line 43
Markdown::Pod::markdown_to_pod(undef, 'encoding', 'utf8', 'markdown', 'NAME^J-----^J^JMarkdown::Pod - Convert Markdown to POD^J^J^JVERSION^J--------^J^Jversion 0.003^J^J^JSYNOPSIS^J---------^J^J use Markdown::Pod;^J ^J my $m2p = Markdown::Pod->new;^J my $pod = $m2p->markdown_to_pod(^J markdown => $markdown,^J );^J^J^JDESCRIPTION^J------------^J^JThis module parses Markdown text and return POD text.^JIt uses Markdent module to parse Markdown. ^JDue to POD doesn't support blockquoted HTML tag,^Jso quoted text of Markdown will not be handled properly. ^JQuoted text will be converted to POD verbatim section.^J') called at t/lib/Markdown/Pod/Test.pm line 30
Markdown::Pod::Test::markdown_to_pod('t/mkd/001-line-break.mkd') called at t/001-line-break.t line 8

Looks like your test exited with 255 before it could output anything.

@aspeer aspeer changed the title Workaround to endable Markdown::Pod to test OK on older Perl cersions… Workaround to enable Markdown::Pod to test OK on older Perl versions… May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant