diff -Nru libpod-weaver-perl-4.015/Changes libpod-weaver-perl-4.018/Changes --- libpod-weaver-perl-4.015/Changes 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/Changes 2021-06-19 14:55:14.000000000 +0000 @@ -1,5 +1,18 @@ Revision history for Pod-Weaver +4.018 2021-06-19 10:55:10-04:00 America/New_York + - update author contact info + - use postfix dereferencing, since we already require v5.20.0 + - add perl support section to docs + +4.017 2021-04-17 17:51:31-04:00 America/New_York + - no changes from previous trial release + +4.016 2021-04-06 22:22:59-04:00 America/New_York (TRIAL RELEASE) + - GenerateSection by David Miguel Susano Pinto has been bundled with + Pod::Weaver. Although it has been fairly heavily edited, it should + be entirely compatible with previous versions. Thanks, David! + 4.015 2016-10-14 20:48:13-04:00 America/New_York - fix bugs introduced in 4.014 that would cause [Bugs] and [Legal] to run even when they should've skipped diff -Nru libpod-weaver-perl-4.015/debian/changelog libpod-weaver-perl-4.018/debian/changelog --- libpod-weaver-perl-4.015/debian/changelog 2016-10-22 21:38:32.000000000 +0000 +++ libpod-weaver-perl-4.018/debian/changelog 2021-08-17 10:39:00.000000000 +0000 @@ -1,3 +1,29 @@ +libpod-weaver-perl (4.018-1) unstable; urgency=medium + + [ Salvatore Bonaccorso ] + * Update Vcs-* headers for switch to salsa.debian.org + + [ gregor herrmann ] + * debian/*: update GitHub URLs to use HTTPS. + * debian/watch: use uscan version 4. + + [ Debian Janitor ] + * Remove constraints unnecessary since stretch: + + Build-Depends-Indep: Drop versioned constraint on libmixin-linewise-perl. + + libpod-weaver-perl: Drop versioned constraint on libmixin-linewise-perl in + Depends. + + [ Florian Schlichting ] + * Import upstream version 4.018. + * Update d/copyright: years, address. integration of GenerateSection + * Add new (build-)dependency on Text::Template + * Add Conflicts/Replaces/Provides libpod-weaver-section-generatesection-perl + * Bump dh compat to level 13 + * Add Rules-Requires-Root: no + * Declare compliance with Debian Policy 4.5.1 + + -- Florian Schlichting Tue, 17 Aug 2021 18:39:00 +0800 + libpod-weaver-perl (4.015-1) unstable; urgency=medium * Import upstream version 4.015. diff -Nru libpod-weaver-perl-4.015/debian/compat libpod-weaver-perl-4.018/debian/compat --- libpod-weaver-perl-4.015/debian/compat 2016-10-22 21:38:32.000000000 +0000 +++ libpod-weaver-perl-4.018/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -9 diff -Nru libpod-weaver-perl-4.015/debian/control libpod-weaver-perl-4.018/debian/control --- libpod-weaver-perl-4.015/debian/control 2016-10-22 21:38:32.000000000 +0000 +++ libpod-weaver-perl-4.018/debian/control 2021-08-17 10:39:00.000000000 +0000 @@ -5,14 +5,14 @@ Florian Schlichting Section: perl Priority: optional -Build-Depends: debhelper (>= 9) +Build-Depends: debhelper-compat (= 13) Build-Depends-Indep: perl, libconfig-mvp-perl, libconfig-mvp-reader-ini-perl, libdatetime-perl, liblist-moreutils-perl, liblog-dispatchouli-perl, - libmixin-linewise-perl (>= 0.103), + libmixin-linewise-perl, libmodule-runtime-perl, libmoose-perl, libnamespace-autoclean-perl, @@ -24,11 +24,13 @@ libstring-formatter-perl, libstring-rewriteprefix-perl, libtest-differences-perl, -Standards-Version: 3.9.8 -Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libpod-weaver-perl.git -Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libpod-weaver-perl.git + libtext-template-perl, +Standards-Version: 4.5.1 +Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libpod-weaver-perl +Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libpod-weaver-perl.git Homepage: https://metacpan.org/release/Pod-Weaver Testsuite: autopkgtest-pkg-perl +Rules-Requires-Root: no Package: libpod-weaver-perl Architecture: all @@ -39,7 +41,7 @@ libdatetime-perl, liblist-moreutils-perl, liblog-dispatchouli-perl, - libmixin-linewise-perl (>= 0.103), + libmixin-linewise-perl, libmodule-runtime-perl, libmoose-perl, libnamespace-autoclean-perl, @@ -47,7 +49,11 @@ libpod-elemental-perl, libstring-flogger-perl, libstring-formatter-perl, - libstring-rewriteprefix-perl + libstring-rewriteprefix-perl, + libtext-template-perl, +Conflicts: libpod-weaver-section-generatesection-perl +Replaces: libpod-weaver-section-generatesection-perl +Provides: libpod-weaver-section-generatesection-perl Description: Perl module to weave together a Pod document from an outline Pod::Weaver is a system for building Pod documents from templates. It doesn't perform simple text substitution, but instead builds a diff -Nru libpod-weaver-perl-4.015/debian/copyright libpod-weaver-perl-4.018/debian/copyright --- libpod-weaver-perl-4.015/debian/copyright 2016-10-22 21:38:32.000000000 +0000 +++ libpod-weaver-perl-4.018/debian/copyright 2021-08-17 10:13:01.000000000 +0000 @@ -1,18 +1,19 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Pod-Weaver -Upstream-Contact: Ricardo SIGNES +Upstream-Contact: Ricardo SIGNES Source: https://metacpan.org/release/Pod-Weaver - git://github.com/rjbs/Pod-Weaver.git + https://github.com/rjbs/Pod-Weaver.git Files: * -Copyright: 2016, Ricardo SIGNES +Copyright: 2021, Ricardo SIGNES + 2013-2017, Carnë Draug License: Artistic or GPL-1+ Files: debian/* Copyright: 2010-2013, Ansgar Burchardt 2012-2016, gregor herrmann - 2013-2016, Florian Schlichting + 2013-2021, Florian Schlichting License: Artistic or GPL-1+ License: Artistic diff -Nru libpod-weaver-perl-4.015/debian/upstream/metadata libpod-weaver-perl-4.018/debian/upstream/metadata --- libpod-weaver-perl-4.015/debian/upstream/metadata 2016-10-22 21:38:32.000000000 +0000 +++ libpod-weaver-perl-4.018/debian/upstream/metadata 2021-08-17 10:38:08.000000000 +0000 @@ -1,7 +1,6 @@ --- Archive: CPAN Bug-Database: https://github.com/rjbs/Pod-Weaver/issues -Contact: Ricardo SIGNES -Name: Pod-Weaver +Bug-Submit: https://github.com/rjbs/Pod-Weaver/issues/new Repository: https://github.com/rjbs/Pod-Weaver.git Repository-Browse: https://github.com/rjbs/Pod-Weaver diff -Nru libpod-weaver-perl-4.015/debian/watch libpod-weaver-perl-4.018/debian/watch --- libpod-weaver-perl-4.015/debian/watch 2016-10-22 21:38:32.000000000 +0000 +++ libpod-weaver-perl-4.018/debian/watch 2020-03-19 11:44:00.000000000 +0000 @@ -1,2 +1,2 @@ -version=3 -https://metacpan.org/release/Pod-Weaver .*/Pod-Weaver-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +version=4 +https://metacpan.org/release/Pod-Weaver .*/Pod-Weaver-v?@ANY_VERSION@@ARCHIVE_EXT@$ diff -Nru libpod-weaver-perl-4.015/dist.ini libpod-weaver-perl-4.018/dist.ini --- libpod-weaver-perl-4.015/dist.ini 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/dist.ini 2021-06-19 14:55:14.000000000 +0000 @@ -1,5 +1,5 @@ name = Pod-Weaver -author = Ricardo SIGNES +author = Ricardo SIGNES license = Perl_5 copyright_holder = Ricardo SIGNES @@ -8,4 +8,4 @@ Mixin::Linewise::Readers = 0.103 ; fixed string semantics [@RJBS] -version = 3 +perl-support = standard diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Config/Assembler.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Config/Assembler.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Config/Assembler.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Config/Assembler.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,6 +1,6 @@ -package Pod::Weaver::Config::Assembler; +package Pod::Weaver::Config::Assembler 4.018; # ABSTRACT: Pod::Weaver-specific subclass of Config::MVP::Assembler -$Pod::Weaver::Config::Assembler::VERSION = '4.015'; + use Moose; extends 'Config::MVP::Assembler'; with 'Config::MVP::Assembler::WithBundles'; @@ -38,15 +38,26 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Config/Finder.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Config/Finder.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Config/Finder.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Config/Finder.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,6 +1,6 @@ -package Pod::Weaver::Config::Finder; +package Pod::Weaver::Config::Finder 4.018; # ABSTRACT: the reader for weaver.ini files -$Pod::Weaver::Config::Finder::VERSION = '4.015'; + use Moose; extends 'Config::MVP::Reader::Finder'; with 'Pod::Weaver::Config'; @@ -26,15 +26,26 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Config.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Config.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Config.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Config.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,6 +1,6 @@ -package Pod::Weaver::Config; +package Pod::Weaver::Config 4.018; # ABSTRACT: stored configuration loader role -$Pod::Weaver::Config::VERSION = '4.015'; + use Moose::Role; use Config::MVP 2; @@ -47,13 +47,24 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 DESCRIPTION The config role provides some helpers for writing a configuration loader using the L system to load and validate its configuration. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 assembler @@ -64,11 +75,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Plugin/EnsurePod5.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Plugin/EnsurePod5.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Plugin/EnsurePod5.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Plugin/EnsurePod5.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Plugin::EnsurePod5; +package Pod::Weaver::Plugin::EnsurePod5 4.018; # ABSTRACT: ensure that the Pod5 translator has been run on this document -$Pod::Weaver::Plugin::EnsurePod5::VERSION = '4.015'; + use Moose; with 'Pod::Weaver::Role::Preparer'; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + use namespace::autoclean; use Pod::Elemental::Transformer::Pod5; @@ -21,12 +29,12 @@ # XXX: This is really stupid. -- rjbs, 2009-10-24 - foreach my $i (reverse 0 .. $#{ $node->children }) { + foreach my $i (reverse 0 .. $node->children->$#*) { my $para = $node->children->[$i]; if ($para->isa('Pod::Elemental::Element::Pod5::Nonpod')) { if ($para->content !~ /\S/) { - splice @{ $node->children }, $i, 1 + splice $node->children->@*, $i, 1 } else { confess "can't cope with a Nonpod element with non-whitespace content"; } @@ -62,7 +70,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -70,13 +78,24 @@ document and removes any leftover whitespace-only Nonpod elements. If non-whitespace-only Nonpod elements are found, an exception is raised. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Plugin/H1Nester.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Plugin/H1Nester.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Plugin/H1Nester.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Plugin/H1Nester.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Plugin::H1Nester; +package Pod::Weaver::Plugin::H1Nester 4.018; # ABSTRACT: structure the input pod document into head1-grouped sections -$Pod::Weaver::Plugin::H1Nester::VERSION = '4.015'; + use Moose; with 'Pod::Weaver::Role::Transformer'; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + use namespace::autoclean; use Pod::Elemental::Selectors -all; @@ -48,7 +56,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -56,13 +64,24 @@ L to restructure the document under its C<=head1> elements. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Plugin/SingleEncoding.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Plugin/SingleEncoding.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Plugin/SingleEncoding.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Plugin/SingleEncoding.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,12 +1,20 @@ -package Pod::Weaver::Plugin::SingleEncoding; +package Pod::Weaver::Plugin::SingleEncoding 4.018; # ABSTRACT: ensure that there is exactly one =encoding of known value -$Pod::Weaver::Plugin::SingleEncoding::VERSION = '4.015'; + use Moose; with( 'Pod::Weaver::Role::Dialect', 'Pod::Weaver::Role::Finalizer', ); +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + use namespace::autoclean; use Pod::Elemental::Selectors -all; @@ -108,7 +116,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -128,13 +136,24 @@ No actual validation of the encoding is done. Pod::Weaver, after all, deals in text rather than bytes. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Plugin/Transformer.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Plugin/Transformer.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Plugin/Transformer.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Plugin/Transformer.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Plugin::Transformer; +package Pod::Weaver::Plugin::Transformer 4.018; # ABSTRACT: apply arbitrary transformers -$Pod::Weaver::Plugin::Transformer::VERSION = '4.015'; + use Moose; with 'Pod::Weaver::Role::Dialect'; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + use namespace::autoclean; use Module::Runtime qw(use_module); @@ -34,12 +42,12 @@ sub BUILDARGS { my ($class, @arg) = @_; - my %copy = ref $arg[0] ? %{$arg[0]} : @arg; + my %copy = ref $arg[0] ? $arg[0]->%* : @arg; my @part = part { /\A\./ ? 0 : 1 } keys %copy; - my %class_args = map { s/\A\.//; $_ => $copy{ ".$_" } } @{ $part[0] }; - my %xform_args = map { $_ => $copy{ $_ } } @{ $part[1] }; + my %class_args = map { s/\A\.//; $_ => $copy{ ".$_" } } $part[0]->@*; + my %xform_args = map { $_ => $copy{ $_ } } $part[1]->@*; my $xform_class = String::RewritePrefix->rewrite( { '' => 'Pod::Elemental::Transformer::', '=' => '' }, @@ -83,7 +91,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -103,13 +111,24 @@ and that transformer will then be handed the entire input Pod document. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/PluginBundle/CorePrep.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/PluginBundle/CorePrep.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/PluginBundle/CorePrep.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/PluginBundle/CorePrep.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,8 +1,16 @@ use strict; use warnings; -package Pod::Weaver::PluginBundle::CorePrep; +package Pod::Weaver::PluginBundle::CorePrep 4.018; # ABSTRACT: a bundle for the most commonly-needed prep work for a pod document -$Pod::Weaver::PluginBundle::CorePrep::VERSION = '4.015'; + +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + use Pod::Weaver::Plugin::H1Nester; sub mvp_bundle_config { @@ -27,15 +35,26 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/PluginBundle/Default.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/PluginBundle/Default.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/PluginBundle/Default.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/PluginBundle/Default.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,8 +1,16 @@ use strict; use warnings; -package Pod::Weaver::PluginBundle::Default; +package Pod::Weaver::PluginBundle::Default 4.018; # ABSTRACT: a bundle for the most commonly-needed prep work for a pod document -$Pod::Weaver::PluginBundle::Default::VERSION = '4.015'; + +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + #pod =head1 OVERVIEW #pod #pod This is the bundle used by default (specifically by Pod::Weaver's @@ -12,7 +20,7 @@ #pod It is nearly equivalent to the following: #pod #pod [@CorePrep] -#pod +#pod #pod [-SingleEncoding] #pod #pod [Name] @@ -86,7 +94,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -97,7 +105,7 @@ It is nearly equivalent to the following: [@CorePrep] - + [-SingleEncoding] [Name] @@ -125,13 +133,24 @@ [Authors] [Legal] +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Dialect.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Dialect.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Dialect.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Dialect.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,6 +1,6 @@ -package Pod::Weaver::Role::Dialect; +package Pod::Weaver::Role::Dialect 4.018; # ABSTRACT: something that translates Pod subdialects to standard Pod5 -$Pod::Weaver::Role::Dialect::VERSION = '4.015'; + use Moose::Role; with 'Pod::Weaver::Role::Plugin'; @@ -31,7 +31,18 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 IMPLEMENTING @@ -42,11 +53,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Finalizer.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Finalizer.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Finalizer.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Finalizer.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,6 +1,6 @@ -package Pod::Weaver::Role::Finalizer; +package Pod::Weaver::Role::Finalizer 4.018; # ABSTRACT: something that goes back and finishes up after main weaving is over -$Pod::Weaver::Role::Finalizer::VERSION = '4.015'; + use Moose::Role; with 'Pod::Weaver::Role::Plugin'; @@ -32,7 +32,18 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 IMPLEMENTING @@ -44,11 +55,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Plugin.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Plugin.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Plugin.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Plugin.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,8 +1,16 @@ -package Pod::Weaver::Role::Plugin; +package Pod::Weaver::Role::Plugin 4.018; # ABSTRACT: a Pod::Weaver plugin -$Pod::Weaver::Role::Plugin::VERSION = '4.015'; + use Moose::Role; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + use Params::Util qw(_HASHLIKE); use namespace::autoclean; @@ -63,7 +71,18 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 ATTRIBUTES @@ -83,11 +102,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Preparer.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Preparer.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Preparer.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Preparer.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,6 +1,6 @@ -package Pod::Weaver::Role::Preparer; +package Pod::Weaver::Role::Preparer 4.018; # ABSTRACT: something that mucks about with the input before weaving begins -$Pod::Weaver::Role::Preparer::VERSION = '4.015'; + use Moose::Role; with 'Pod::Weaver::Role::Plugin'; @@ -31,7 +31,18 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 IMPLEMENTING @@ -42,11 +53,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Section.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Section.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Section.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Section.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,6 +1,6 @@ -package Pod::Weaver::Role::Section; +package Pod::Weaver::Role::Section 4.018; # ABSTRACT: a plugin that will get a section into a woven document -$Pod::Weaver::Role::Section::VERSION = '4.015'; + use Moose::Role; with 'Pod::Weaver::Role::Plugin'; @@ -34,7 +34,18 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 IMPLEMENTING @@ -48,11 +59,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/StringFromComment.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/StringFromComment.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/StringFromComment.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/StringFromComment.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,7 +1,16 @@ -package Pod::Weaver::Role::StringFromComment; +package Pod::Weaver::Role::StringFromComment 4.018; # ABSTRACT: Extract a string from a specially formatted comment -$Pod::Weaver::Role::StringFromComment::VERSION = '4.015'; + use Moose::Role; + +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + use namespace::autoclean; #pod =head1 OVERVIEW @@ -78,7 +87,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -96,6 +105,17 @@ It will extract these strings by inspecting the C which must be given. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 PRIVATE METHODS This role supplies only methods meant to be used internally by its consumer. @@ -119,11 +139,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Transformer.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Transformer.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Role/Transformer.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Role/Transformer.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,6 +1,6 @@ -package Pod::Weaver::Role::Transformer; +package Pod::Weaver::Role::Transformer 4.018; # ABSTRACT: something that restructures a Pod5 document -$Pod::Weaver::Role::Transformer::VERSION = '4.015'; + use Moose::Role; with 'Pod::Weaver::Role::Plugin'; @@ -31,7 +31,18 @@ =head1 VERSION -version 4.015 +version 4.018 + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. =head1 IMPLEMENTING @@ -42,11 +53,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Authors.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Authors.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Authors.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Authors.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Section::Authors; +package Pod::Weaver::Section::Authors 4.018; # ABSTRACT: a section listing authors -$Pod::Weaver::Section::Authors::VERSION = '4.015'; + use Moose; with 'Pod::Weaver::Role::Section'; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + use Pod::Elemental::Element::Nested; use Pod::Elemental::Element::Pod5::Verbatim; @@ -35,20 +43,20 @@ return unless $input->{authors}; - my $multiple_authors = @{ $input->{authors} } > 1; + my $multiple_authors = $input->{authors}->@* > 1; # I think I might like to have header be a callback or something, so that you # can get pluralization for your own custom header. -- rjbs, 2015-03-17 my $name = $self->header || ($multiple_authors ? 'AUTHORS' : 'AUTHOR'); $self->log_debug("adding $name section"); - $self->log_debug("author = $_") for @{ $input->{authors} }; + $self->log_debug("author = $_") for $input->{authors}->@*; my $authors = [ map { Pod::Elemental::Element::Pod5::Ordinary->new({ content => $_, }), - } @{ $input->{authors} } ]; + } $input->{authors}->@* ]; $authors = [ Pod::Elemental::Element::Pod5::Command->new({ @@ -65,7 +73,7 @@ }), ] if $multiple_authors; - push @{$document->children }, + push $document->children->@*, Pod::Elemental::Element::Nested->new({ type => 'command', command => 'head1', @@ -89,7 +97,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -102,6 +110,17 @@ Author One Author Two +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 header @@ -111,11 +130,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Bugs.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Bugs.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Bugs.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Bugs.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,10 +1,18 @@ -package Pod::Weaver::Section::Bugs; +package Pod::Weaver::Section::Bugs 4.018; # ABSTRACT: a section for bugtracker info -$Pod::Weaver::Section::Bugs::VERSION = '4.015'; + use Moose; use Text::Wrap (); with 'Pod::Weaver::Role::Section'; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + #pod =head1 OVERVIEW #pod #pod This section plugin will produce a hunk of Pod giving bug reporting @@ -64,7 +72,7 @@ return; } my $bugtracker = $input->{distmeta}{resources}{bugtracker}; - my ($web,$mailto) = @{$bugtracker}{qw/web mailto/}; + my ($web, $mailto) = $bugtracker->@{ qw(web mailto) }; unless (defined $web || defined $mailto) { $self->log_debug('skipping section because there is no web or mailto key under resources.bugtracker'); @@ -95,7 +103,7 @@ feature. HERE - push @{ $document->children }, + push $document->children->@*, Pod::Elemental::Element::Nested->new({ command => 'head1', content => $name, @@ -120,7 +128,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -160,6 +168,17 @@ [PodWeaver] +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 header @@ -169,11 +188,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Collect.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Collect.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Collect.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Collect.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Section::Collect; +package Pod::Weaver::Section::Collect 4.018; # ABSTRACT: a section that gathers up specific commands -$Pod::Weaver::Section::Collect::VERSION = '4.015'; + use Moose; -with 'Pod::Weaver::Role::Section'; -with 'Pod::Weaver::Role::Transformer'; +with 'Pod::Weaver::Role::Section', + 'Pod::Weaver::Role::Transformer'; + +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE #pod =head1 OVERVIEW #pod @@ -109,7 +117,7 @@ } 0 .. $#$children; my $container = $container_id - ? splice @{ $children }, $container_id, 1 # excise host + ? splice @$children, $container_id, 1 # excise host : Pod::Elemental::Element::Nested->new({ # synthesize new host command => $self->header_command, content => $self->header, @@ -123,12 +131,12 @@ }); $nester->transform_node($document); - my @children = @{$container->children}; # rescue children + my @children = $container->children->@*; # rescue children $gatherer->transform_node($document); # insert host at position of first adopt-child and inject it with adopt-children - foreach my $child (@{ $container->children }) { + foreach my $child ($container->children->@*) { $child->command( $self->new_command ) if $child->command eq $command; } - unshift @{$container->children}, @children; # give original children back to host + unshift $container->children->@*, @children; # give original children back to host } sub weave_section { @@ -141,10 +149,10 @@ my @found = grep { my ($i, $para) = ($_, $in_node->[$_]); ($para == $self->__used_container) - && @{ $self->__used_container->children }; + && $self->__used_container->children->@*; } (0 .. $#$in_node); - push @{ $document->children }, map { splice @$in_node, $_, 1 } reverse @found; + push $document->children->@*, map { splice @$in_node, $_, 1 } reverse @found; } __PACKAGE__->meta->make_immutable; @@ -162,7 +170,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -177,6 +185,17 @@ correct location in the output stream. Their order will be preserved as it was in the source document. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 command @@ -201,11 +220,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/GenerateSection.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/GenerateSection.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/GenerateSection.pm 1970-01-01 00:00:00.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/GenerateSection.pm 2021-06-19 14:55:14.000000000 +0000 @@ -0,0 +1,378 @@ +package Pod::Weaver::Section::GenerateSection 4.018; +# ABSTRACT: add pod section from an interpolated piece of text + +use Moose; +with 'Pod::Weaver::Role::Section'; + +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + +use Pod::Elemental::Element::Nested; +use Pod::Elemental::Element::Pod5::Ordinary; +use Text::Template; + +use namespace::autoclean; + +#pod =head1 SYNOPSIS +#pod +#pod In your F +#pod +#pod [GenerateSection] +#pod title = HOMEPAGE +#pod text = This is the POD for distribution {{$name}}. Check out what we have +#pod text = been up to at {{$homepage}} +#pod +#pod The title value can be omited if passed as the plugin name: +#pod +#pod [GenerateSection / HOMEPAGE] +#pod +#pod =head1 DESCRIPTION +#pod +#pod This plugin allows the creation of simple text sections, with or without the +#pod use of Text::Template for templated text. +#pod +#pod The C parameters become the lines of the template. +#pod +#pod The values of text are concatenated and variable names with matching values on +#pod the distribution are interpolated. Specifying the heading level allows one to +#pod write down a rather long section of POD text without need for extra files. For +#pod example: +#pod +#pod [GenerateSection / FEEDBACK] +#pod head = 1 +#pod [GenerateSection / Reporting bugs] +#pod head = 2 +#pod text = Please report bugs when you find them. While we do have a mailing +#pod text = list, please use the bug tracker at {{$bugtracker_web}} +#pod text = to report bugs +#pod [GenerateSection / Homegape] +#pod head = 2 +#pod text = Also, come check out our other projects at +#pod text = {{$homepage}} +#pod +#pod =head1 TEMPLATE RENDERING +#pod +#pod When rendering as a template, the variables C<$plugin>, C<$dist>, and +#pod C<$distmeta> will be provided, set to the GenerateSection plugin, +#pod C object, and the distribution metadata hash respectively. For +#pod convenience, the following variables are also set: +#pod +#pod =for :list +#pod * C<< $name >> +#pod * C<< $version >> +#pod * C<< $homepage >> +#pod * C<< $repository_web >> +#pod * C<< $repository_url >> +#pod * C<< $bugtracker_web >> +#pod * C<< $bugtracker_email >> +#pod +#pod =attr text +#pod +#pod The text to be added to the section. Multiple values are allowed and will be +#pod concatenated. Certain sequences on the text will be replaced (see below). +#pod +#pod =cut + +sub mvp_multivalue_args { return qw(text) } +has text => ( + is => 'ro', + isa => 'ArrayRef', + lazy => 1, + default => sub { [] }, +); + +#pod =attr head +#pod +#pod This is the I to use in the C<=headX> that's created. If it's C<0> then no +#pod heading is added. It defaults to C<1>. +#pod +#pod =cut + +has head => ( + is => 'ro', + isa => 'Int', + lazy => 1, + default => 1, +); + +#pod =attr title +#pod +#pod The title for this section. If none is given, the plugin's name is used. +#pod +#pod =cut + +has title => ( + is => 'ro', + isa => 'Str', + lazy => 1, + default => sub { $_[0]->plugin_name }, +); + +#pod =attr main_module_only +#pod +#pod If true, this attribute indicates that only the main module's Pod should be +#pod altered. By default, it is false. +#pod +#pod =cut + +has main_module_only => ( + is => 'ro', + isa => 'Bool', + lazy => 1, + default => 0, +); + +#pod =attr +#pod +#pod If true, the text is treated as a L template and rendered. +#pod This attribute B. +#pod +#pod =cut + +has is_template => ( + is => 'ro', + isa => 'Bool', + lazy => 1, + default => 1, +); + +sub weave_section { + my ($self, $document, $input) = @_; + + if ($self->main_module_only) { + return if $input->{zilla}->main_module->name ne $input->{filename}; + } + + my $text = join ("\n", $self->text->@*); + + if ($self->is_template) { + my %stash; + + if ($input->{zilla}) { + %stash = ( + dist => \($input->{zilla}), + distmeta => \($input->{distmeta}), + plugin => \($self), + + name => $input->{distmeta}{name}, + version => $input->{distmeta}{version}, + homepage => $input->{distmeta}{resources}{homepage}, + repository_web => $input->{distmeta}{resources}{repository}{web}, + repository_url => $input->{distmeta}{resources}{repository}{url}, + bugtracker_web => $input->{distmeta}{resources}{bugtracker}{web}, + bugtracker_email => $input->{distmeta}{resources}{bugtracker}{mailto}, + ); + } + + $text = $self->fill_in_string($text, \%stash); + } + + my $element = Pod::Elemental::Element::Pod5::Ordinary->new({ content => $text }); + + if ($self->head) { + $element = Pod::Elemental::Element::Nested->new({ + command => "head" . $self->head, + content => $self->title, + children => [ $element ], + }); + } + + push $document->children->@*, $element; +} + +# BEGIN CODE IMPORTED FROM Dist::Zilla::Role::TextTemplate +#pod =attr delim +#pod +#pod If given, this must be an arrayref with two elements. These will be the +#pod opening and closing delimiters of template variable sections. By default they +#pod are C<{{> and C<}}>. +#pod +#pod =cut + +has delim => ( + is => 'ro', + isa => 'ArrayRef', + lazy => 1, + init_arg => undef, + default => sub { [ qw( {{ }} ) ] }, +); + +sub fill_in_string { + my ($self, $string, $stash, $arg) = @_; + + $self->log_fatal("Cannot use undef as a template string") + unless defined $string; + + my $tmpl = Text::Template->new( + TYPE => 'STRING', + SOURCE => $string, + DELIMITERS => $self->delim, + BROKEN => sub { my %hash = @_; die $hash{error}; }, + %$arg, + ); + + $self->log_fatal("Could not create a Text::Template object from:\n$string") + unless $tmpl; + + my $content = $tmpl->fill_in(%$arg, HASH => $stash); + + $self->log_fatal("Filling in the template returned undef for:\n$string") + unless defined $content; + + return $content; +} +# END CODE IMPORTED FROM Dist::Zilla::Role::TextTemplate + +__PACKAGE__->meta->make_immutable; +1; + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +Pod::Weaver::Section::GenerateSection - add pod section from an interpolated piece of text + +=head1 VERSION + +version 4.018 + +=head1 SYNOPSIS + +In your F + + [GenerateSection] + title = HOMEPAGE + text = This is the POD for distribution {{$name}}. Check out what we have + text = been up to at {{$homepage}} + +The title value can be omited if passed as the plugin name: + + [GenerateSection / HOMEPAGE] + +=head1 DESCRIPTION + +This plugin allows the creation of simple text sections, with or without the +use of Text::Template for templated text. + +The C parameters become the lines of the template. + +The values of text are concatenated and variable names with matching values on +the distribution are interpolated. Specifying the heading level allows one to +write down a rather long section of POD text without need for extra files. For +example: + + [GenerateSection / FEEDBACK] + head = 1 + [GenerateSection / Reporting bugs] + head = 2 + text = Please report bugs when you find them. While we do have a mailing + text = list, please use the bug tracker at {{$bugtracker_web}} + text = to report bugs + [GenerateSection / Homegape] + head = 2 + text = Also, come check out our other projects at + text = {{$homepage}} + +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + +=head1 ATTRIBUTES + +=head2 text + +The text to be added to the section. Multiple values are allowed and will be +concatenated. Certain sequences on the text will be replaced (see below). + +=head2 head + +This is the I to use in the C<=headX> that's created. If it's C<0> then no +heading is added. It defaults to C<1>. + +=head2 title + +The title for this section. If none is given, the plugin's name is used. + +=head2 main_module_only + +If true, this attribute indicates that only the main module's Pod should be +altered. By default, it is false. + +=head2 + +If true, the text is treated as a L template and rendered. +This attribute B. + +=head2 delim + +If given, this must be an arrayref with two elements. These will be the +opening and closing delimiters of template variable sections. By default they +are C<{{> and C<}}>. + +=head1 TEMPLATE RENDERING + +When rendering as a template, the variables C<$plugin>, C<$dist>, and +C<$distmeta> will be provided, set to the GenerateSection plugin, +C object, and the distribution metadata hash respectively. For +convenience, the following variables are also set: + +=over 4 + +=item * + +C<< $name >> + +=item * + +C<< $version >> + +=item * + +C<< $homepage >> + +=item * + +C<< $repository_web >> + +=item * + +C<< $repository_url >> + +=item * + +C<< $bugtracker_web >> + +=item * + +C<< $bugtracker_email >> + +=back + +=head1 AUTHOR + +Ricardo SIGNES + +=head1 COPYRIGHT AND LICENSE + +This software is copyright (c) 2021 by Ricardo SIGNES. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Generic.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Generic.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Generic.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Generic.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,12 @@ -package Pod::Weaver::Section::Generic; +package Pod::Weaver::Section::Generic 4.018; # ABSTRACT: a generic section, found by lifting sections -$Pod::Weaver::Section::Generic::VERSION = '4.015'; + use Moose; with 'Pod::Weaver::Role::Section'; +use v5.20.0; +use experimental 'postderef'; # this experiment succeeded -- rjbs, 2021-04-02 + #pod =head1 OVERVIEW #pod #pod This section will find and include a located hunk of Pod. In general, it will @@ -87,7 +90,7 @@ $self->log_debug('adding ' . $self->header . ' back into pod'); - push @{ $document->children }, map { splice @$in_node, $_, 1 } reverse @found; + push $document->children->@*, map { splice @$in_node, $_, 1 } reverse @found; } __PACKAGE__->meta->make_immutable; @@ -105,7 +108,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -130,6 +133,17 @@ If the C attribute is given, and true, then an exception will be raised if this section can't be found. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 required @@ -145,11 +159,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Leftovers.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Leftovers.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Leftovers.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Leftovers.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,11 +1,17 @@ -package Pod::Weaver::Section::Leftovers; +package Pod::Weaver::Section::Leftovers 4.018; # ABSTRACT: a place to put everything that nothing else used -$Pod::Weaver::Section::Leftovers::VERSION = '4.015'; + use Moose; -with( - 'Pod::Weaver::Role::Section', - 'Pod::Weaver::Role::Finalizer', -); +with 'Pod::Weaver::Role::Section', + 'Pod::Weaver::Role::Finalizer'; + +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE #pod =head1 OVERVIEW #pod @@ -44,7 +50,7 @@ content => '', }); - push @{ $document->children }, $placeholder; + push $document->children->@*, $placeholder; } sub finalize_document { @@ -53,13 +59,13 @@ my $children = $input->{pod_document}->children; $input->{pod_document}->children([]); - INDEX: for my $i (0 .. @{ $document->children } - 1) { + INDEX: for my $i (0 .. $document->children->$#*) { my $para = $document->children->[$i]; next unless $para->isa('Pod::Elemental::Element::Pod5::Region') and $para->format_name eq $self->_marker; $self->log_debug('splicing leftovers back into pod'); - splice @{ $document->children }, $i, 1, @$children; + splice $document->children->@*, $i, 1, @$children; last INDEX; } } @@ -79,7 +85,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -91,13 +97,24 @@ section will inject any leftover input Pod into its position in the output document. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Legal.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Legal.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Legal.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Legal.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Section::Legal; +package Pod::Weaver::Section::Legal 4.018; # ABSTRACT: a section for the copyright and license -$Pod::Weaver::Section::Legal::VERSION = '4.015'; + use Moose; with 'Pod::Weaver::Role::Section'; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + #pod =head1 OVERVIEW #pod #pod This section plugin will produce a hunk of Pod giving the copyright and license @@ -64,7 +72,7 @@ $self->log_debug('adding ' . $self->header . ' section'); - push @{ $document->children }, + push $document->children->@*, Pod::Elemental::Element::Nested->new({ command => 'head1', content => $self->header, @@ -89,7 +97,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -105,6 +113,17 @@ This plugin will do nothing if no C input parameter is available. The C is expected to be a L object. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 license_file @@ -121,11 +140,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Name.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Name.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Name.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Name.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Section::Name; +package Pod::Weaver::Section::Name 4.018; # ABSTRACT: add a NAME section with abstract (for your Perl module) -$Pod::Weaver::Section::Name::VERSION = '4.015'; + use Moose; -with 'Pod::Weaver::Role::Section'; -with 'Pod::Weaver::Role::StringFromComment'; +with 'Pod::Weaver::Role::Section', + 'Pod::Weaver::Role::StringFromComment'; + +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE #pod =head1 OVERVIEW #pod @@ -106,7 +114,7 @@ ], }); - push @{ $document->children }, $name_para; + push $document->children->@*, $name_para; } __PACKAGE__->meta->make_immutable; @@ -124,7 +132,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -144,6 +152,17 @@ If no C comment is present, but a package declaration can be found, the package name will be used as the document name. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 header @@ -153,11 +172,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Region.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Region.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Region.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Region.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Section::Region; +package Pod::Weaver::Section::Region 4.018; # ABSTRACT: find a region and put its contents in place where desired -$Pod::Weaver::Section::Region::VERSION = '4.015'; + use Moose; with 'Pod::Weaver::Role::Section'; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + #pod =head1 OVERVIEW #pod #pod This section will find and include a located hunk of Pod. In general, it will @@ -126,7 +134,7 @@ next if !$self->allow_nonpod and !$para->is_pod; if ( $self->flatten ) { - push @to_insert, @{ $para->children }; + push @to_insert, $para->children->@*; } else { push @to_insert, $para; } @@ -141,7 +149,7 @@ my $verb = $self->flatten ? 'flattening' : 'inserting'; $self->log_debug($verb . q{ } . $self->region_name . ' into pod'); - push @{ $document->children }, @to_insert; + push $document->children->@*, @to_insert; } __PACKAGE__->meta->make_immutable; @@ -159,7 +167,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -190,6 +198,17 @@ If the C attribute is given, and true, then an exception will be raised if this region can't be found. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 required @@ -234,11 +253,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Version.pm libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Version.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver/Section/Version.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver/Section/Version.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver::Section::Version; +package Pod::Weaver::Section::Version 4.018; # ABSTRACT: add a VERSION pod section -$Pod::Weaver::Section::Version::VERSION = '4.015'; + use Moose; -with 'Pod::Weaver::Role::Section'; -with 'Pod::Weaver::Role::StringFromComment'; +with 'Pod::Weaver::Role::Section', + 'Pod::Weaver::Role::StringFromComment'; + +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE use Module::Runtime qw(use_module); use namespace::autoclean; @@ -202,7 +210,7 @@ } my $content = q{}; - LINE: for my $format (@{ $self->format }) { + LINE: for my $format ($self->format->@*) { my $line = _format_version($format, \%args); next if $line =~ s/^$MARKER\s*// and ! $args{is_trial}; @@ -232,7 +240,7 @@ $self->log_debug('adding ' . $self->header . ' section to pod'); - push @{ $document->children }, + push $document->children->@*, Pod::Elemental::Element::Nested->new({ command => 'head1', content => $self->header, @@ -255,7 +263,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 OVERVIEW @@ -268,6 +276,17 @@ It will do nothing if there is no C entry in the input. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 header @@ -363,11 +382,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/lib/Pod/Weaver.pm libpod-weaver-perl-4.018/lib/Pod/Weaver.pm --- libpod-weaver-perl-4.015/lib/Pod/Weaver.pm 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/lib/Pod/Weaver.pm 2021-06-19 14:55:14.000000000 +0000 @@ -1,9 +1,17 @@ -package Pod::Weaver; +package Pod::Weaver 4.018; # ABSTRACT: weave together a Pod document from an outline -$Pod::Weaver::VERSION = '4.015'; + use Moose; use namespace::autoclean; +# BEGIN BOILERPLATE +use v5.20.0; +use warnings; +use utf8; +no feature 'switch'; +use experimental qw(postderef postderef_qq); # This experiment gets mainlined. +# END BOILERPLATE + #pod =head1 SYNOPSIS #pod #pod my $weaver = Pod::Weaver->new_with_default_config; @@ -86,7 +94,7 @@ my ($self, $role) = @_; $role =~ s/^-/Pod::Weaver::Role::/; - my @plugins = grep { $_->does($role) } @{ $self->plugins }; + my @plugins = grep { $_->does($role) } $self->plugins->@*; return \@plugins; } @@ -119,23 +127,23 @@ my $document = Pod::Elemental::Document->new; - for (@{ $self->plugins_with(-Preparer) }) { + for ($self->plugins_with(-Preparer)->@*) { $_->prepare_input($input); } - for (@{ $self->plugins_with(-Dialect) }) { + for ($self->plugins_with(-Dialect)->@*) { $_->translate_dialect($input->{pod_document}); } - for (@{ $self->plugins_with(-Transformer) }) { + for ($self->plugins_with(-Transformer)->@*) { $_->transform_document($input->{pod_document}); } - for (@{ $self->plugins_with(-Section) }) { + for ($self->plugins_with(-Section)->@*) { $_->weave_section($document, $input); } - for (@{ $self->plugins_with(-Finalizer) }) { + for ($self->plugins_with(-Finalizer)->@*) { $_->finalize_document($document, $input); } @@ -165,7 +173,7 @@ sub new_from_config { my ($class, $arg, $new_arg) = @_; - + my $root = $arg->{root} || '.'; my $name = File::Spec->catfile($root, 'weaver'); my ($sequence) = Pod::Weaver::Config::Finder->new->read_config($name); @@ -206,7 +214,7 @@ confess "arguments attempted to override 'weaver'" if defined $arg->{weaver}; - push @{ $self->plugins }, + push $self->plugins->@*, $plugin_class->new({ %$arg, plugin_name => $name, @@ -232,7 +240,7 @@ =head1 VERSION -version 4.015 +version 4.018 =head1 SYNOPSIS @@ -255,6 +263,17 @@ that will be produced based on an existing Pod document or other provided information. +=head1 PERL VERSION SUPPORT + +This module has the same support period as perl itself: it supports the two +most recent versions of perl. (That is, if the most recently released version +is v5.40, then this module should work on both v5.40 and v5.38.) + +Although it may work on older versions of perl, no guarantee is made that the +minimum required version will not be increased. The version may be increased +for any reason, and there is no promise that patches will be accepted to lower +the minimum required perl. + =head1 ATTRIBUTES =head2 logger @@ -306,11 +325,11 @@ =head1 AUTHOR -Ricardo SIGNES +Ricardo SIGNES =head1 CONTRIBUTORS -=for stopwords Alex Peters Apocalypse Blabos de Blebe Caleb Cushing Christian Walde Christopher J. Madsen Chris Weyl Dave Houston Rolsky David E. Wheeler Golden Zurborg Doug Bell Florian Ragwitz Jonathan "Duke" Leto Joshua Keroes Karen Etheridge Kent Fredric Marcel Gruenauer Randy Stauner Sam Graham Shlomi Fish +=for stopwords Alex Peters Apocalypse Blabos de Blebe Caleb Cushing Christian Walde Christopher J. Madsen Chris Weyl Dave Houston Rolsky David E. Wheeler Golden Miguel Susano Pinto Zurborg Doug Bell Florian Ragwitz Jonathan "Duke" Leto Joshua Keroes Karen Etheridge Kent Fredric Kivanc Yazan Marcel Gruenauer Randy Stauner Sam Graham Shlomi Fish =over 4 @@ -360,6 +379,10 @@ =item * +David Miguel Susano Pinto + +=item * + David Zurborg =item * @@ -388,6 +411,10 @@ =item * +Kivanc Yazan + +=item * + Marcel Gruenauer =item * @@ -406,7 +433,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libpod-weaver-perl-4.015/LICENSE libpod-weaver-perl-4.018/LICENSE --- libpod-weaver-perl-4.015/LICENSE 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/LICENSE 2021-06-19 14:55:14.000000000 +0000 @@ -1,4 +1,4 @@ -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2016 by Ricardo SIGNES. +This software is Copyright (c) 2021 by Ricardo SIGNES. This is free software, licensed under: @@ -272,7 +272,7 @@ --- The Artistic License 1.0 --- -This software is Copyright (c) 2016 by Ricardo SIGNES. +This software is Copyright (c) 2021 by Ricardo SIGNES. This is free software, licensed under: diff -Nru libpod-weaver-perl-4.015/Makefile.PL libpod-weaver-perl-4.018/Makefile.PL --- libpod-weaver-perl-4.015/Makefile.PL 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/Makefile.PL 2021-06-19 14:55:14.000000000 +0000 @@ -1,19 +1,20 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.021. use strict; use warnings; +use 5.020000; - -use ExtUtils::MakeMaker; +use ExtUtils::MakeMaker 6.78; my %WriteMakefileArgs = ( "ABSTRACT" => "weave together a Pod document from an outline", - "AUTHOR" => "Ricardo SIGNES ", + "AUTHOR" => "Ricardo SIGNES ", "CONFIGURE_REQUIRES" => { - "ExtUtils::MakeMaker" => 0 + "ExtUtils::MakeMaker" => "6.78" }, "DISTNAME" => "Pod-Weaver", "LICENSE" => "perl", + "MIN_PERL_VERSION" => "5.020000", "NAME" => "Pod::Weaver", "PREREQ_PM" => { "Config::MVP" => 2, @@ -47,9 +48,13 @@ "String::Flogger" => 1, "String::Formatter" => "0.100680", "String::RewritePrefix" => 0, + "Text::Template" => 0, "Text::Wrap" => 0, + "experimental" => 0, + "feature" => 0, "namespace::autoclean" => 0, "strict" => 0, + "utf8" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { @@ -59,10 +64,9 @@ "Software::License::Artistic_1_0" => 0, "Software::License::Perl_5" => 0, "Test::Differences" => 0, - "Test::More" => "0.96", - "utf8" => 0 + "Test::More" => "0.96" }, - "VERSION" => "4.015", + "VERSION" => "4.018", "test" => { "TESTS" => "t/*.t" } @@ -107,7 +111,10 @@ "String::RewritePrefix" => 0, "Test::Differences" => 0, "Test::More" => "0.96", + "Text::Template" => 0, "Text::Wrap" => 0, + "experimental" => 0, + "feature" => 0, "namespace::autoclean" => 0, "strict" => 0, "utf8" => 0, diff -Nru libpod-weaver-perl-4.015/MANIFEST libpod-weaver-perl-4.018/MANIFEST --- libpod-weaver-perl-4.015/MANIFEST 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/MANIFEST 2021-06-19 14:55:14.000000000 +0000 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.021. Changes LICENSE MANIFEST @@ -27,6 +27,7 @@ lib/Pod/Weaver/Section/Authors.pm lib/Pod/Weaver/Section/Bugs.pm lib/Pod/Weaver/Section/Collect.pm +lib/Pod/Weaver/Section/GenerateSection.pm lib/Pod/Weaver/Section/Generic.pm lib/Pod/Weaver/Section/Leftovers.pm lib/Pod/Weaver/Section/Legal.pm @@ -69,6 +70,7 @@ t/eg/version_without_package.out.pod t/eg/weaver.ini t/encoding.t +t/generate-section.t t/ini-config.t t/legal_section.t t/region_options.t diff -Nru libpod-weaver-perl-4.015/META.json libpod-weaver-perl-4.018/META.json --- libpod-weaver-perl-4.015/META.json 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/META.json 2021-06-19 14:55:14.000000000 +0000 @@ -1,10 +1,10 @@ { "abstract" : "weave together a Pod document from an outline", "author" : [ - "Ricardo SIGNES " + "Ricardo SIGNES " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005", + "generated_by" : "Dist::Zilla version 6.021, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -16,11 +16,12 @@ "prereqs" : { "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "0" + "ExtUtils::MakeMaker" : "6.78" } }, "develop" : { "requires" : { + "Encode" : "0", "Test::More" : "0", "Test::Pod" : "1.41" } @@ -58,9 +59,14 @@ "String::Flogger" : "1", "String::Formatter" : "0.100680", "String::RewritePrefix" : "0", + "Text::Template" : "0", "Text::Wrap" : "0", + "experimental" : "0", + "feature" : "0", "namespace::autoclean" : "0", + "perl" : "v5.20.0", "strict" : "0", + "utf8" : "0", "warnings" : "0" } }, @@ -75,8 +81,7 @@ "Software::License::Artistic_1_0" : "0", "Software::License::Perl_5" : "0", "Test::Differences" : "0", - "Test::More" : "0.96", - "utf8" : "0" + "Test::More" : "0.96" } } }, @@ -92,10 +97,10 @@ "web" : "https://github.com/rjbs/Pod-Weaver" } }, - "version" : "4.015", + "version" : "4.018", "x_Dist_Zilla" : { "perl" : { - "version" : "5.024000" + "version" : "5.034000" }, "plugins" : [ { @@ -107,7 +112,7 @@ } }, "name" : "Prereqs", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", @@ -126,7 +131,7 @@ } }, "name" : "@RJBS/Git::GatherDir", - "version" : "2.039" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", @@ -153,7 +158,7 @@ } }, "name" : "@RJBS/RJBS-Outdated", - "version" : "0.051" + "version" : "0.057" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", @@ -164,66 +169,68 @@ "modules" : [], "phase" : "release", "run_under_travis" : 0, - "skip" : [] + "skip" : [ + "Dist::Zilla::Plugin::RJBSMisc" + ] } }, "name" : "@RJBS/CPAN-Outdated", - "version" : "0.051" + "version" : "0.057" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@RJBS/@Filter/PruneCruft", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@RJBS/@Filter/ManifestSkip", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@RJBS/@Filter/MetaYAML", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@RJBS/@Filter/License", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@RJBS/@Filter/Readme", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@RJBS/@Filter/ExecDir", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@RJBS/@Filter/ShareDir", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@RJBS/@Filter/Manifest", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@RJBS/@Filter/TestRelease", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@RJBS/@Filter/ConfirmRelease", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@RJBS/@Filter/UploadToCPAN", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", @@ -233,12 +240,12 @@ } }, "name" : "@RJBS/MakeMaker", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", @@ -249,46 +256,47 @@ "version_regexp" : "(?^:^([0-9]+\\.[0-9]+)$)" }, "Dist::Zilla::Role::Git::Repo" : { + "git_version" : "2.30.1 (Apple Git-130)", "repo_root" : "." } }, "name" : "@RJBS/Git::NextVersion", - "version" : "2.039" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", "name" : "@RJBS/Test::ChangesHasContent", - "version" : "0.010" + "version" : "0.011" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@RJBS/Test::ReportPrereqs", - "version" : "0.025" + "version" : "0.028" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -299,7 +307,7 @@ } }, "name" : "@RJBS/TestMoreWithSubtests", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", @@ -316,82 +324,87 @@ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "@RJBS/SingleEncoding", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Name", "name" : "@RJBS/Name", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Version", "name" : "@RJBS/Version", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@RJBS/Prelude", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Synopsis", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Description", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Overview", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Stability", - "version" : "4.013" + "version" : "4.018" + }, + { + "class" : "Pod::Weaver::Section::GenerateSection", + "name" : "@RJBS/PerlSupport", + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Attributes", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Methods", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Functions", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "@RJBS/Leftovers", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@RJBS/postlude", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "@RJBS/Authors", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Contributors", @@ -401,12 +414,12 @@ { "class" : "Pod::Weaver::Section::Legal", "name" : "@RJBS/Legal", - "version" : "4.013" + "version" : "4.018" }, { "class" : "Pod::Weaver::Plugin::Transformer", "name" : "@RJBS/List", - "version" : "4.013" + "version" : "4.018" } ] } @@ -415,9 +428,14 @@ "version" : "4.008" }, { + "class" : "Dist::Zilla::Plugin::RJBSMisc", + "name" : "@RJBS/RJBSMisc", + "version" : "5.019" + }, + { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@RJBS/GithubMeta", - "version" : "0.54" + "version" : "0.58" }, { "class" : "Dist::Zilla::Plugin::Git::Check", @@ -434,18 +452,20 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { + "git_version" : "2.30.1 (Apple Git-130)", "repo_root" : "." } }, "name" : "@RJBS/@Git/Check", - "version" : "2.039" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], - "commit_msg" : "v%v%n%n%c" + "commit_msg" : "v%V%n%n%c", + "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ @@ -456,6 +476,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { + "git_version" : "2.30.1 (Apple Git-130)", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -463,7 +484,7 @@ } }, "name" : "@RJBS/@Git/Commit", - "version" : "2.039" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", @@ -472,11 +493,12 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "4.015", + "tag" : "4.018", "tag_format" : "%v", - "tag_message" : "v%v" + "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { + "git_version" : "2.30.1 (Apple Git-130)", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -484,30 +506,30 @@ } }, "name" : "@RJBS/@Git/Tag", - "version" : "2.039" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ - "origin :", "github :" ], "remotes_must_exist" : 0 }, "Dist::Zilla::Role::Git::Repo" : { + "git_version" : "2.30.1 (Apple Git-130)", "repo_root" : "." } }, "name" : "@RJBS/@Git/Push", - "version" : "2.039" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { - "git --version" : "2.10.0", + "git_version" : "2.30.1 (Apple Git-130)", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", @@ -515,65 +537,65 @@ } }, "name" : "@RJBS/Git::Contributors", - "version" : "0.029" + "version" : "0.036" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "6.008" + "version" : "6.021" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "6.008" + "version" : "6.021" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { - "is_trial" : "0" + "is_trial" : 0 }, - "version" : "6.008" + "version" : "6.021" } }, "x_contributors" : [ @@ -588,6 +610,7 @@ "Dave Rolsky ", "David E. Wheeler ", "David Golden ", + "David Miguel Susano Pinto ", "David Zurborg ", "Doug Bell ", "Florian Ragwitz ", @@ -595,11 +618,15 @@ "Joshua Keroes ", "Karen Etheridge ", "Kent Fredric ", + "Kivanc Yazan ", "Marcel Gruenauer ", "Randy Stauner ", "Sam Graham ", "Shlomi Fish " ], - "x_serialization_backend" : "Cpanel::JSON::XS version 3.0213" + "x_generated_by_perl" : "v5.34.0", + "x_rjbs_perl_support" : "standard", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.26", + "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } diff -Nru libpod-weaver-perl-4.015/META.yml libpod-weaver-perl-4.018/META.yml --- libpod-weaver-perl-4.015/META.yml 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/META.yml 2021-06-19 14:55:14.000000000 +0000 @@ -1,7 +1,7 @@ --- abstract: 'weave together a Pod document from an outline' author: - - 'Ricardo SIGNES ' + - 'Ricardo SIGNES ' build_requires: ExtUtils::MakeMaker: '0' File::Spec: '0' @@ -10,11 +10,10 @@ Software::License::Perl_5: '0' Test::Differences: '0' Test::More: '0.96' - utf8: '0' configure_requires: - ExtUtils::MakeMaker: '0' + ExtUtils::MakeMaker: '6.78' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005' +generated_by: 'Dist::Zilla version 6.021, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -52,18 +51,23 @@ String::Flogger: '1' String::Formatter: '0.100680' String::RewritePrefix: '0' + Text::Template: '0' Text::Wrap: '0' + experimental: '0' + feature: '0' namespace::autoclean: '0' + perl: v5.20.0 strict: '0' + utf8: '0' warnings: '0' resources: bugtracker: https://github.com/rjbs/Pod-Weaver/issues homepage: https://github.com/rjbs/Pod-Weaver repository: https://github.com/rjbs/Pod-Weaver.git -version: '4.015' +version: '4.018' x_Dist_Zilla: perl: - version: '5.024000' + version: '5.034000' plugins: - class: Dist::Zilla::Plugin::Prereqs @@ -72,7 +76,7 @@ phase: runtime type: requires name: Prereqs - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::Git::GatherDir config: @@ -87,7 +91,7 @@ Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: '@RJBS/Git::GatherDir' - version: '2.039' + version: '2.047' - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@RJBS/CheckPrereqsIndexed' @@ -108,7 +112,7 @@ run_under_travis: 0 skip: [] name: '@RJBS/RJBS-Outdated' - version: '0.051' + version: '0.057' - class: Dist::Zilla::Plugin::PromptIfStale config: @@ -118,64 +122,65 @@ modules: [] phase: release run_under_travis: 0 - skip: [] + skip: + - Dist::Zilla::Plugin::RJBSMisc name: '@RJBS/CPAN-Outdated' - version: '0.051' + version: '0.057' - class: Dist::Zilla::Plugin::PruneCruft name: '@RJBS/@Filter/PruneCruft' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::ManifestSkip name: '@RJBS/@Filter/ManifestSkip' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::MetaYAML name: '@RJBS/@Filter/MetaYAML' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::License name: '@RJBS/@Filter/License' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::Readme name: '@RJBS/@Filter/Readme' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::ExecDir name: '@RJBS/@Filter/ExecDir' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::ShareDir name: '@RJBS/@Filter/ShareDir' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::Manifest name: '@RJBS/@Filter/Manifest' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::TestRelease name: '@RJBS/@Filter/TestRelease' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@RJBS/@Filter/ConfirmRelease' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@RJBS/@Filter/UploadToCPAN' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: 9 name: '@RJBS/MakeMaker' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::Git::NextVersion config: @@ -184,37 +189,38 @@ version_by_branch: 1 version_regexp: (?^:^([0-9]+\.[0-9]+)$) Dist::Zilla::Role::Git::Repo: + git_version: '2.30.1 (Apple Git-130)' repo_root: . name: '@RJBS/Git::NextVersion' - version: '2.039' + version: '2.047' - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::Test::ChangesHasContent name: '@RJBS/Test::ChangesHasContent' - version: '0.010' + version: '0.011' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@RJBS/Test::ReportPrereqs' - version: '0.025' + version: '0.028' - class: Dist::Zilla::Plugin::Prereqs config: @@ -222,7 +228,7 @@ phase: test type: requires name: '@RJBS/TestMoreWithSubtests' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::PodWeaver config: @@ -236,67 +242,71 @@ - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Plugin::SingleEncoding name: '@RJBS/SingleEncoding' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Name name: '@RJBS/Name' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Version name: '@RJBS/Version' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Region name: '@RJBS/Prelude' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Generic name: '@RJBS/Synopsis' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Generic name: '@RJBS/Description' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Generic name: '@RJBS/Overview' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Generic name: '@RJBS/Stability' - version: '4.013' + version: '4.018' + - + class: Pod::Weaver::Section::GenerateSection + name: '@RJBS/PerlSupport' + version: '4.018' - class: Pod::Weaver::Section::Collect name: Attributes - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Collect name: Methods - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Collect name: Functions - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Leftovers name: '@RJBS/Leftovers' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Region name: '@RJBS/postlude' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Authors name: '@RJBS/Authors' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Section::Contributors name: '@RJBS/Contributors' @@ -304,17 +314,21 @@ - class: Pod::Weaver::Section::Legal name: '@RJBS/Legal' - version: '4.013' + version: '4.018' - class: Pod::Weaver::Plugin::Transformer name: '@RJBS/List' - version: '4.013' + version: '4.018' name: '@RJBS/PodWeaver' version: '4.008' - + class: Dist::Zilla::Plugin::RJBSMisc + name: '@RJBS/RJBSMisc' + version: '5.019' + - class: Dist::Zilla::Plugin::GithubMeta name: '@RJBS/GithubMeta' - version: '0.54' + version: '0.58' - class: Dist::Zilla::Plugin::Git::Check config: @@ -327,15 +341,17 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: + git_version: '2.30.1 (Apple Git-130)' repo_root: . name: '@RJBS/@Git/Check' - version: '2.039' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] - commit_msg: v%v%n%n%c + commit_msg: v%V%n%n%c + signoff: '0' Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes @@ -343,11 +359,12 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: + git_version: '2.30.1 (Apple Git-130)' repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@RJBS/@Git/Commit' - version: '2.039' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Tag config: @@ -355,83 +372,84 @@ branch: ~ changelog: Changes signed: 0 - tag: '4.015' + tag: '4.018' tag_format: '%v' - tag_message: v%v + tag_message: v%V Dist::Zilla::Role::Git::Repo: + git_version: '2.30.1 (Apple Git-130)' repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@RJBS/@Git/Tag' - version: '2.039' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Push config: Dist::Zilla::Plugin::Git::Push: push_to: - - 'origin :' - 'github :' remotes_must_exist: 0 Dist::Zilla::Role::Git::Repo: + git_version: '2.30.1 (Apple Git-130)' repo_root: . name: '@RJBS/@Git/Push' - version: '2.039' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: - 'git --version': 2.10.0 + git_version: '2.30.1 (Apple Git-130)' include_authors: 0 include_releaser: 1 order_by: name paths: [] name: '@RJBS/Git::Contributors' - version: '0.029' + version: '0.036' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: '6.008' + version: '6.021' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: '6.008' + version: '6.021' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' - version: '6.008' + version: '6.021' x_contributors: - 'Alex Peters ' - 'Apocalypse ' @@ -444,6 +462,7 @@ - 'Dave Rolsky ' - 'David E. Wheeler ' - 'David Golden ' + - 'David Miguel Susano Pinto ' - 'David Zurborg ' - 'Doug Bell ' - 'Florian Ragwitz ' @@ -451,8 +470,12 @@ - 'Joshua Keroes ' - 'Karen Etheridge ' - 'Kent Fredric ' + - 'Kivanc Yazan ' - 'Marcel Gruenauer ' - 'Randy Stauner ' - 'Sam Graham ' - 'Shlomi Fish ' -x_serialization_backend: 'YAML::Tiny version 1.69' +x_generated_by_perl: v5.34.0 +x_rjbs_perl_support: standard +x_serialization_backend: 'YAML::Tiny version 1.73' +x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' diff -Nru libpod-weaver-perl-4.015/README libpod-weaver-perl-4.018/README --- libpod-weaver-perl-4.015/README 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/README 2021-06-19 14:55:14.000000000 +0000 @@ -1,15 +1,12 @@ - - This archive contains the distribution Pod-Weaver, -version 4.015: +version 4.018: weave together a Pod document from an outline -This software is copyright (c) 2016 by Ricardo SIGNES. +This software is copyright (c) 2021 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. -This README file was generated by Dist::Zilla::Plugin::Readme v6.008. - +This README file was generated by Dist::Zilla::Plugin::Readme v6.021. diff -Nru libpod-weaver-perl-4.015/t/00-report-prereqs.dd libpod-weaver-perl-4.018/t/00-report-prereqs.dd --- libpod-weaver-perl-4.015/t/00-report-prereqs.dd 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/t/00-report-prereqs.dd 2021-06-19 14:55:14.000000000 +0000 @@ -1,11 +1,12 @@ do { my $x = { 'configure' => { 'requires' => { - 'ExtUtils::MakeMaker' => '0' + 'ExtUtils::MakeMaker' => '6.78' } }, 'develop' => { 'requires' => { + 'Encode' => '0', 'Test::More' => '0', 'Test::Pod' => '1.41' } @@ -43,9 +44,14 @@ 'String::Flogger' => '1', 'String::Formatter' => '0.100680', 'String::RewritePrefix' => '0', + 'Text::Template' => '0', 'Text::Wrap' => '0', + 'experimental' => '0', + 'feature' => '0', 'namespace::autoclean' => '0', + 'perl' => 'v5.20.0', 'strict' => '0', + 'utf8' => '0', 'warnings' => '0' } }, @@ -60,8 +66,7 @@ 'Software::License::Artistic_1_0' => '0', 'Software::License::Perl_5' => '0', 'Test::Differences' => '0', - 'Test::More' => '0.96', - 'utf8' => '0' + 'Test::More' => '0.96' } } }; diff -Nru libpod-weaver-perl-4.015/t/00-report-prereqs.t libpod-weaver-perl-4.018/t/00-report-prereqs.t --- libpod-weaver-perl-4.015/t/00-report-prereqs.t 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/t/00-report-prereqs.t 2021-06-19 14:55:14.000000000 +0000 @@ -3,7 +3,7 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.025 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028 use Test::More tests => 1; @@ -68,7 +68,7 @@ ); # Add static prereqs to the included modules list -my $static_prereqs = do 't/00-report-prereqs.dd'; +my $static_prereqs = do './t/00-report-prereqs.dd'; # Merge all prereqs (either with ::Prereqs or a hashref) my $full_prereqs = _merge_prereqs( @@ -78,12 +78,14 @@ # Add dynamic prereqs to the included modules list (if we can) my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; +my $cpan_meta_error; if ( $source && $HAS_CPAN_META && (my $meta = eval { CPAN::Meta->load_file($source) } ) ) { $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } else { + $cpan_meta_error = $@; # capture error from CPAN::Meta->load_file($source) $source = 'static metadata'; } @@ -169,15 +171,23 @@ diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; } +if ( $cpan_meta_error || @dep_errors ) { + diag "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n"; +} + +if ( $cpan_meta_error ) { + my ($orig_source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; + diag "\nCPAN::Meta->load_file('$orig_source') failed with: $cpan_meta_error\n"; +} + if ( @dep_errors ) { diag join("\n", - "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n", - "The following REQUIRED prerequisites were not satisfied:\n", + "\nThe following REQUIRED prerequisites were not satisfied:\n", @dep_errors, "\n" ); } -pass; +pass('Reported prereqs'); # vim: ts=4 sts=4 sw=4 et: diff -Nru libpod-weaver-perl-4.015/t/generate-section.t libpod-weaver-perl-4.018/t/generate-section.t --- libpod-weaver-perl-4.015/t/generate-section.t 1970-01-01 00:00:00.000000000 +0000 +++ libpod-weaver-perl-4.018/t/generate-section.t 2021-06-19 14:55:14.000000000 +0000 @@ -0,0 +1,184 @@ +#!perl +use strict; +use warnings; +use utf8; + +use Test::More; + +use Pod::Elemental; +use Pod::Weaver; +use Pod::Weaver::Config::Assembler; +use PPI; + +sub make_weaver { + my ($config) = @_; + + my $assembler = Pod::Weaver::Config::Assembler->new; + + my $root = $assembler->section_class->new({ name => '_' }); + $assembler->sequence->add_section($root); + + $assembler->change_section('GenerateSection'); + + # XXX This is junky. -- rjbs, 2021-04-05 + for my $key (keys %$config) { + if ($key eq 'text') { + my @lines = split /\n/, $config->{$key}; + $assembler->add_value($key => $_) for @lines; + } else { + $assembler->add_value($key => $config->{$key}); + } + } + + $assembler->end_section; + + return Pod::Weaver->new_from_config_sequence($assembler->sequence, {}); +} + +sub weave_ok { + my ($section_config, $extra_input, $expect) = @_; + + my $in_pod = q{}; + my $document = Pod::Elemental->read_string($in_pod); # wants octets + + my $ppi_document = PPI::Document->new(\""); + + my $weaver = make_weaver($section_config); + + my $woven = $weaver->weave_document({ + pod_document => $document, + ppi_document => $ppi_document, + + %$extra_input, + }); + + my $pod_string = $woven->as_pod_string; + + local $Test::Builder::Level = $Test::Builder::Level + 1; + + if (ref $expect) { + return like($pod_string, $expect, "woven document is okay"); + } + + $pod_string =~ s/\A=pod\v+//; + + return is( + $pod_string, + $expect, + "woven document contains expected substring", + ); +} + +weave_ok( + { title => 'Header Title' }, + {}, + "=head1 Header Title\n\n=cut\n", +); + +weave_ok( + { + title => 'Whatever', + text => 'This is package {{$name}} v{{$version}}', + }, + { + zilla => 1, # to trigger zilla-like operation + distmeta => { name => "Foo", version => "1.2.3" }, + }, + "=head1 Whatever\n\nThis is package Foo v1.2.3\n\n=cut\n", +); + +{ + my $template = <<'END'; +Name {{$name}} +v{{$version}} +Homepage {{$homepage}} +repo web {{$repository_web}} +repo url {{$repository_url}} +bugtracker url {{$bugtracker_web}} +bugtracker email {{$bugtracker_email}} +END + + my $expect = <<'END'; +=head1 Gorp + +Name Foo-Bar +v0.010 +Homepage https://foo-bar.xyz/ +repo web https://hg.xyz.com/hgweb/pro +repo url https://there.com/dude/project +bugtracker url https://foo-bar.xyz/bugs/ +bugtracker email bug-project@foo-bar-example + +=cut +END + + weave_ok( + { + title => 'Gorp', + text => $template, + }, + { + zilla => 1, # to trigger zilla-like operation + distmeta => { + name => 'Foo-Bar', + version => '0.010', + resources => { + homepage => 'https://foo-bar.xyz/', + repository => { + url => 'https://there.com/dude/project', + web => 'https://hg.xyz.com/hgweb/pro', + }, + bugtracker => { + web => 'https://foo-bar.xyz/bugs/', + mailto => 'bug-project@foo-bar-example', + }, + }, + }, + }, + $expect, + ); +} + +weave_ok( + { + title => 'Whatever', + text => 'This is package {{$name}} v{{$version}}', + is_template => 0, + }, + { + zilla => 1, # to trigger zilla-like operation + distmeta => { name => "Foo", version => "1.2.3" }, + }, + "=head1 Whatever\n\nThis is package {{\$name}} v{{\$version}}\n\n=cut\n", +); + +weave_ok( + { + head => 2, + title => 'Whatever', + text => 'Xyz', + }, + {}, + "=head2 Whatever\n\nXyz\n\n=cut\n", +); + +weave_ok( + { + head => 0, + title => 'Whatever', + text => 'Xyz', + }, + {}, + "Xyz\n\n=cut\n", +); + +weave_ok( + { + title => 'Foo', + text => "This\n\n\nrocks.", + }, + {}, + "=head1 Foo\n\nThis\n\n\nrocks.\n\n=cut\n", +); + +done_testing; diff -Nru libpod-weaver-perl-4.015/xt/release/changes_has_content.t libpod-weaver-perl-4.018/xt/release/changes_has_content.t --- libpod-weaver-perl-4.015/xt/release/changes_has_content.t 2016-10-15 00:48:18.000000000 +0000 +++ libpod-weaver-perl-4.018/xt/release/changes_has_content.t 2021-06-19 14:55:14.000000000 +0000 @@ -1,11 +1,10 @@ -#!perl - use Test::More tests => 2; note 'Checking Changes'; my $changes_file = 'Changes'; -my $newver = '4.015'; +my $newver = '4.018'; my $trial_token = '-TRIAL'; +my $encoding = 'UTF-8'; SKIP: { ok(-e $changes_file, "$changes_file file exists") @@ -16,8 +15,6 @@ done_testing; -# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit -# by Jerome Quelin sub _get_changes { my $newver = shift; @@ -25,6 +22,10 @@ # parse changelog to find commit message open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!"; my $changelog = join('', <$fh>); + if ($encoding) { + require Encode; + $changelog = Encode::decode($encoding, $changelog, Encode::FB_CROAK()); + } close $fh; my @content =