diff options
author | gregor herrmann <gregoa@debian.org> | 2021-09-29 17:44:49 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2021-09-29 17:44:49 +0200 |
commit | e5fd9a81e5f54f23ecd7e0555aa948bb02803a9a (patch) | |
tree | 569037099c8138295fc892da260e2b555b96783e | |
parent | 4bf6b8c932ee5ed74670befd95f2e49918fbc8a9 (diff) |
New upstream version 0.131
-rw-r--r-- | Changes | 7 | ||||
-rw-r--r-- | MANIFEST | 2 | ||||
-rw-r--r-- | META.json | 162 | ||||
-rw-r--r-- | META.yml | 148 | ||||
-rw-r--r-- | Makefile.PL | 4 | ||||
-rw-r--r-- | README | 36 | ||||
-rw-r--r-- | dist.ini | 4 | ||||
-rw-r--r-- | lib/Array/Iterator.pm | 65 | ||||
-rw-r--r-- | lib/Array/Iterator/BiDirectional.pm | 59 | ||||
-rw-r--r-- | lib/Array/Iterator/Circular.pm | 45 | ||||
-rw-r--r-- | lib/Array/Iterator/Reusable.pm | 47 |
11 files changed, 393 insertions, 186 deletions
@@ -1,3 +1,10 @@ +0.131 2021-09-26 Released-By: PERLANCAR; Urgency: low + + - No functional changes. + + - [doc] Fix a few minor typos in POD (committer: Florian Schlichting). + + 0.130 2021-08-09 Released-By: PERLANCAR; Urgency: medium - Remove requirement of input list must not be of length 1 (GH#4). @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.017. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.023. Changes LICENSE MANIFEST @@ -4,7 +4,7 @@ "perlancar <perlancar@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.017, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.023, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -43,6 +43,24 @@ } } }, + "provides" : { + "Array::Iterator" : { + "file" : "lib/Array/Iterator.pm", + "version" : "0.131" + }, + "Array::Iterator::BiDirectional" : { + "file" : "lib/Array/Iterator/BiDirectional.pm", + "version" : "0.131" + }, + "Array::Iterator::Circular" : { + "file" : "lib/Array/Iterator/Circular.pm", + "version" : "0.131" + }, + "Array::Iterator::Reusable" : { + "file" : "lib/Array/Iterator/Reusable.pm", + "version" : "0.131" + } + }, "release_status" : "stable", "resources" : { "bugtracker" : { @@ -55,7 +73,7 @@ "web" : "https://github.com/perlancar/perl-Array-Iterator" } }, - "version" : "0.130", + "version" : "0.131", "x_Dist_Zilla" : { "perl" : { "version" : "5.034000" @@ -80,52 +98,52 @@ } }, "name" : "@Author::PERLANCAR/@Filter/GatherDir", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@Author::PERLANCAR/@Filter/PruneCruft", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::PERLANCAR/@Filter/ManifestSkip", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::PERLANCAR/@Filter/MetaYAML", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::PERLANCAR/@Filter/License", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@Author::PERLANCAR/@Filter/PodCoverageTests", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::PERLANCAR/@Filter/PodSyntaxTests", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::ExtraTests", "name" : "@Author::PERLANCAR/@Filter/ExtraTests", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@Author::PERLANCAR/@Filter/ExecDir", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@Author::PERLANCAR/@Filter/ShareDir", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", @@ -135,27 +153,27 @@ } }, "name" : "@Author::PERLANCAR/@Filter/MakeMaker", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::PERLANCAR/@Filter/Manifest", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::PERLANCAR/@Filter/ConfirmRelease", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@Author::PERLANCAR/ExecDir script", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::PERLANCAR::BeforeBuild", "name" : "@Author::PERLANCAR/PERLANCAR::BeforeBuild", - "version" : "0.604" + "version" : "0.605" }, { "class" : "Dist::Zilla::Plugin::Rinci::AbstractFromMeta", @@ -207,7 +225,7 @@ "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { - "git_version" : "2.25.1", + "git_version" : "2.17.1", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", @@ -225,17 +243,44 @@ { "class" : "Dist::Zilla::Plugin::IfBuilt", "name" : "@Author::PERLANCAR/IfBuilt", - "version" : "0.02" + "version" : "0.03" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::PERLANCAR/MetaJSON", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::PERLANCAR/MetaConfig", - "version" : "6.017" + "version" : "6.023" + }, + { + "class" : "Dist::Zilla::Plugin::MetaProvides::Package", + "config" : { + "Dist::Zilla::Plugin::MetaProvides::Package" : { + "finder_objects" : [ + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : "@Author::PERLANCAR/MetaProvides::Package/AUTOVIV/:InstallModulesPM", + "version" : "6.023" + } + ], + "include_underscores" : 0 + }, + "Dist::Zilla::Role::MetaProvider::Provider" : { + "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", + "inherit_missing" : 1, + "inherit_version" : 1, + "meta_noindex" : 1 + }, + "Dist::Zilla::Role::ModuleMetadata" : { + "Module::Metadata" : "1.000037", + "version" : "0.006" + } + }, + "name" : "@Author::PERLANCAR/MetaProvides::Package", + "version" : "2.004003" }, { "class" : "Dist::Zilla::Plugin::PERLANCAR::Authority", @@ -269,67 +314,67 @@ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Name", "name" : "@Author::PERLANCAR/Name", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Version", "name" : "@Author::PERLANCAR/Version", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Author::PERLANCAR/prelude", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "OVERVIEW", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "ATTRIBUTES", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "METHODS", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "FUNCTIONS", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "@Author::PERLANCAR/Leftovers", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Author::PERLANCAR/postlude", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Completion::GetoptLongComplete", @@ -364,7 +409,7 @@ { "class" : "Pod::Weaver::Section::Authors", "name" : "@Author::PERLANCAR/Authors", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Section::Contributors", @@ -372,9 +417,14 @@ "version" : "0.009" }, { + "class" : "Pod::Weaver::Section::PERLANCAR::Contributing", + "name" : "@Author::PERLANCAR/PERLANCAR/Contributing", + "version" : "0.292" + }, + { "class" : "Pod::Weaver::Section::Legal", "name" : "@Author::PERLANCAR/Legal", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Plugin::Rinci", @@ -394,7 +444,7 @@ { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "@Author::PERLANCAR/SingleEncoding", - "version" : "4.017" + "version" : "4.018" }, { "class" : "Pod::Weaver::Plugin::PERLANCAR::SortSections", @@ -405,12 +455,12 @@ } }, "name" : "@Author::PERLANCAR/PodWeaver", - "version" : "4.008" + "version" : "4.009" }, { "class" : "Dist::Zilla::Plugin::PruneFiles", "name" : "@Author::PERLANCAR/PruneFiles", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::Pod2Readme", @@ -508,7 +558,7 @@ { "class" : "Dist::Zilla::Plugin::Prereqs::CheckCircular", "name" : "@Author::PERLANCAR/Prereqs::CheckCircular", - "version" : "0.006" + "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN::WWWPAUSESimple", @@ -524,7 +574,7 @@ } }, "name" : "TestRequires", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -535,57 +585,62 @@ } }, "name" : "Prereqs", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "6.017" + "version" : "6.023" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "6.017" + "version" : "6.023" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : "@Author::PERLANCAR/MetaProvides::Package/AUTOVIV/:InstallModulesPM", + "version" : "6.023" } ], "zilla" : { @@ -593,12 +648,13 @@ "config" : { "is_trial" : 0 }, - "version" : "6.017" + "version" : "6.023" } }, "x_authority" : "cpan:PERLANCAR", "x_contributors" : [ "Alexey Surikov <ksurent@gmail.com>", + "Florian Schlichting <fsfs@debian.org>", "Mohammad S Anwar <mohammad.anwar@yahoo.com>", "Neil Bowers <neil@bowers.com>", "Steven Haryanto (on PC) <stevenharyanto@gmail.com>" @@ -11,12 +11,25 @@ build_requires: configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.017, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.023, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Array-Iterator +provides: + Array::Iterator: + file: lib/Array/Iterator.pm + version: '0.131' + Array::Iterator::BiDirectional: + file: lib/Array/Iterator/BiDirectional.pm + version: '0.131' + Array::Iterator::Circular: + file: lib/Array/Iterator/Circular.pm + version: '0.131' + Array::Iterator::Reusable: + file: lib/Array/Iterator/Reusable.pm + version: '0.131' requires: strict: '0' warnings: '0' @@ -24,7 +37,7 @@ resources: bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator homepage: https://metacpan.org/release/Array-Iterator repository: git://github.com/perlancar/perl-Array-Iterator.git -version: '0.130' +version: '0.131' x_Dist_Zilla: perl: version: '5.034000' @@ -45,66 +58,66 @@ x_Dist_Zilla: prune_directory: [] root: . name: '@Author::PERLANCAR/@Filter/GatherDir' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::PruneCruft name: '@Author::PERLANCAR/@Filter/PruneCruft' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::ManifestSkip name: '@Author::PERLANCAR/@Filter/ManifestSkip' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::PERLANCAR/@Filter/MetaYAML' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::License name: '@Author::PERLANCAR/@Filter/License' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::PodCoverageTests name: '@Author::PERLANCAR/@Filter/PodCoverageTests' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::PERLANCAR/@Filter/PodSyntaxTests' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::ExtraTests name: '@Author::PERLANCAR/@Filter/ExtraTests' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::ExecDir name: '@Author::PERLANCAR/@Filter/ExecDir' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::ShareDir name: '@Author::PERLANCAR/@Filter/ShareDir' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: 1 name: '@Author::PERLANCAR/@Filter/MakeMaker' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::Manifest name: '@Author::PERLANCAR/@Filter/Manifest' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::PERLANCAR/@Filter/ConfirmRelease' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::ExecDir name: '@Author::PERLANCAR/ExecDir script' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::PERLANCAR::BeforeBuild name: '@Author::PERLANCAR/PERLANCAR::BeforeBuild' - version: '0.604' + version: '0.605' - class: Dist::Zilla::Plugin::Rinci::AbstractFromMeta name: '@Author::PERLANCAR/Rinci::AbstractFromMeta' @@ -144,7 +157,7 @@ x_Dist_Zilla: class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: - git_version: 2.25.1 + git_version: 2.17.1 include_authors: 0 include_releaser: 1 order_by: name @@ -158,15 +171,35 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::IfBuilt name: '@Author::PERLANCAR/IfBuilt' - version: '0.02' + version: '0.03' - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::PERLANCAR/MetaJSON' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::PERLANCAR/MetaConfig' - version: '6.017' + version: '6.023' + - + class: Dist::Zilla::Plugin::MetaProvides::Package + config: + Dist::Zilla::Plugin::MetaProvides::Package: + finder_objects: + - + class: Dist::Zilla::Plugin::FinderCode + name: '@Author::PERLANCAR/MetaProvides::Package/AUTOVIV/:InstallModulesPM' + version: '6.023' + include_underscores: 0 + Dist::Zilla::Role::MetaProvider::Provider: + $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002004' + inherit_missing: '1' + inherit_version: '1' + meta_noindex: '1' + Dist::Zilla::Role::ModuleMetadata: + Module::Metadata: '1.000037' + version: '0.006' + name: '@Author::PERLANCAR/MetaProvides::Package' + version: '2.004003' - class: Dist::Zilla::Plugin::PERLANCAR::Authority name: '@Author::PERLANCAR/PERLANCAR::Authority' @@ -194,55 +227,55 @@ x_Dist_Zilla: - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Name name: '@Author::PERLANCAR/Name' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Version name: '@Author::PERLANCAR/Version' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Region name: '@Author::PERLANCAR/prelude' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Generic name: SYNOPSIS - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Generic name: DESCRIPTION - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Generic name: OVERVIEW - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Collect name: ATTRIBUTES - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Collect name: METHODS - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Collect name: FUNCTIONS - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Leftovers name: '@Author::PERLANCAR/Leftovers' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Region name: '@Author::PERLANCAR/postlude' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Completion::GetoptLongComplete name: '@Author::PERLANCAR/Completion::GetoptLongComplete' @@ -270,15 +303,19 @@ x_Dist_Zilla: - class: Pod::Weaver::Section::Authors name: '@Author::PERLANCAR/Authors' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Section::Contributors name: '@Author::PERLANCAR/Contributors' version: '0.009' - + class: Pod::Weaver::Section::PERLANCAR::Contributing + name: '@Author::PERLANCAR/PERLANCAR/Contributing' + version: '0.292' + - class: Pod::Weaver::Section::Legal name: '@Author::PERLANCAR/Legal' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Plugin::Rinci name: '@Author::PERLANCAR/Rinci' @@ -294,17 +331,17 @@ x_Dist_Zilla: - class: Pod::Weaver::Plugin::SingleEncoding name: '@Author::PERLANCAR/SingleEncoding' - version: '4.017' + version: '4.018' - class: Pod::Weaver::Plugin::PERLANCAR::SortSections name: '@Author::PERLANCAR/PERLANCAR::SortSections' version: '0.082' name: '@Author::PERLANCAR/PodWeaver' - version: '4.008' + version: '4.009' - class: Dist::Zilla::Plugin::PruneFiles name: '@Author::PERLANCAR/PruneFiles' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::Pod2Readme name: '@Author::PERLANCAR/Pod2Readme' @@ -380,7 +417,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::Prereqs::CheckCircular name: '@Author::PERLANCAR/Prereqs::CheckCircular' - version: '0.006' + version: '0.007' - class: Dist::Zilla::Plugin::UploadToCPAN::WWWPAUSESimple name: '@Author::PERLANCAR/UploadToCPAN::WWWPAUSESimple' @@ -392,7 +429,7 @@ x_Dist_Zilla: phase: test type: requires name: TestRequires - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::Prereqs config: @@ -400,55 +437,60 @@ x_Dist_Zilla: phase: runtime type: requires name: Prereqs - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: '6.017' + version: '6.023' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: '6.017' + version: '6.023' + - + class: Dist::Zilla::Plugin::FinderCode + name: '@Author::PERLANCAR/MetaProvides::Package/AUTOVIV/:InstallModulesPM' + version: '6.023' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' - version: '6.017' + version: '6.023' x_authority: cpan:PERLANCAR x_contributors: - 'Alexey Surikov <ksurent@gmail.com>' + - 'Florian Schlichting <fsfs@debian.org>' - 'Mohammad S Anwar <mohammad.anwar@yahoo.com>' - 'Neil Bowers <neil@bowers.com>' - 'Steven Haryanto (on PC) <stevenharyanto@gmail.com>' diff --git a/Makefile.PL b/Makefile.PL index de91dac..6e290fe 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.017. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.023. use strict; use warnings; @@ -26,7 +26,7 @@ my %WriteMakefileArgs = ( "Test::Exception" => 0, "Test::More" => "0.98" }, - "VERSION" => "0.130", + "VERSION" => "0.131", "test" => { "TESTS" => "t/*.t" } @@ -2,8 +2,8 @@ NAME Array::Iterator - A simple class for iterating over Perl arrays VERSION - This document describes version 0.130 of Array::Iterator (from Perl - distribution Array-Iterator), released on 2021-08-09. + This document describes version 0.131 of Array::Iterator (from Perl + distribution Array-Iterator), released on 2021-09-26. SYNOPSIS use Array::Iterator; @@ -236,13 +236,6 @@ SOURCE Source repository is at <https://github.com/perlancar/perl-Array-Iterator>. -BUGS - Please report any bugs or feature requests on the bugtracker website - <https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> - - When submitting a bug or request, please include a test-file or a patch - to an existing test-file that illustrates the bug or desired feature. - SEE ALSO This module now includes several subclasses of Array::Iterator which add certain behaviors to Array::Iterator, they are: @@ -272,12 +265,30 @@ ORIGINAL AUTHOR CONTRIBUTORS * Alexey Surikov <ksurent@gmail.com> + * Florian Schlichting <fsfs@debian.org> + * Mohammad S Anwar <mohammad.anwar@yahoo.com> * Neil Bowers <neil@bowers.com> * Steven Haryanto (on PC) <stevenharyanto@gmail.com> +CONTRIBUTING + To contribute, you can send patches by email/via RT, or send pull + requests on GitHub. + + Most of the time, you don't need to build the distribution yourself. You + can simply modify the code, then test via: + + % prove -l + + If you want to build the distribution (e.g. to try to install it locally + on your system), you can install Dist::Zilla, + Dist::Zilla::PluginBundle::Author::PERLANCAR, and sometimes one or two + other Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional + steps required beyond that are considered a bug and can be reported to + me. + COPYRIGHT AND LICENSE This software is copyright (c) 2021, 2017, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>. @@ -293,3 +304,10 @@ ORIGINAL COPYRIGHT AND LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. +BUGS + Please report any bugs or feature requests on the bugtracker website + <https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> + + When submitting a bug or request, please include a test-file or a patch + to an existing test-file that illustrates the bug or desired feature. + @@ -4,12 +4,12 @@ copyright_holder = perlancar <perlancar@cpan.org> license = Perl_5 ;--------------------------------- -version = 0.130 +version = 0.131 name = Array-Iterator [@Author::PERLANCAR] -:version=0.604 +:version=0.605 [Prereqs / TestRequires] Test::Exception=0 diff --git a/lib/Array/Iterator.pm b/lib/Array/Iterator.pm index af5b721..4003b95 100644 --- a/lib/Array/Iterator.pm +++ b/lib/Array/Iterator.pm @@ -1,13 +1,13 @@ package Array::Iterator; -our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY -our $DATE = '2021-08-09'; # DATE -our $DIST = 'Array-Iterator'; # DIST -our $VERSION = '0.130'; # VERSION - use strict; use warnings; +our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY +our $DATE = '2021-09-26'; # DATE +our $DIST = 'Array-Iterator'; # DIST +our $VERSION = '0.131'; # VERSION + ### constructor sub new { @@ -126,16 +126,16 @@ sub next { } sub get_next { - my ($self) = @_; - $self->{_iterated} = 1; - return undef unless ($self->{_current_index} < $self->{_length}); - return $self->_getItem($self->{_iteratee}, $self->{_current_index}++); + my ($self) = @_; + $self->{_iterated} = 1; + return undef unless ($self->{_current_index} < $self->{_length}); ## no critic: Subroutines::ProhibitExplicitReturnUndef + return $self->_getItem($self->{_iteratee}, $self->{_current_index}++); } sub getNext { my $self = shift; $self->get_next(@_) } sub peek { - my ($self, $n) = @_; + my ($self, $n) = @_; if(not defined $n) { $n = 1 } elsif(not $n) { die "peek(0) doesn't make sense, did you mean get_next()?" } @@ -143,8 +143,8 @@ sub peek { my $idx = $self->{_current_index} + ($n - 1); - return undef unless ($idx < $self->{_length}); - return $self->_getItem($self->{_iteratee}, $idx); + return undef unless ($idx < $self->{_length}); ## no critic: Subroutines::ProhibitExplicitReturnUndef + return $self->_getItem($self->{_iteratee}, $idx); } sub current { @@ -181,7 +181,7 @@ Array::Iterator - A simple class for iterating over Perl arrays =head1 VERSION -This document describes version 0.130 of Array::Iterator (from Perl distribution Array-Iterator), released on 2021-08-09. +This document describes version 0.131 of Array::Iterator (from Perl distribution Array-Iterator), released on 2021-09-26. =head1 SYNOPSIS @@ -445,14 +445,6 @@ Please visit the project's homepage at L<https://metacpan.org/release/Array-Iter Source repository is at L<https://github.com/perlancar/perl-Array-Iterator>. -=head1 BUGS - -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> - -When submitting a bug or request, please include a test-file or a -patch to an existing test-file that illustrates the bug or desired -feature. - =head1 SEE ALSO This module now includes several subclasses of Array::Iterator which add certain behaviors @@ -488,7 +480,7 @@ stevan little, E<lt>stevan@iinteractive.comE<gt> =head1 CONTRIBUTORS -=for stopwords Alexey Surikov Mohammad S Anwar Neil Bowers Steven Haryanto (on PC) +=for stopwords Alexey Surikov Florian Schlichting Mohammad S Anwar Neil Bowers Steven Haryanto (on PC) =over 4 @@ -498,6 +490,10 @@ Alexey Surikov <ksurent@gmail.com> =item * +Florian Schlichting <fsfs@debian.org> + +=item * + Mohammad S Anwar <mohammad.anwar@yahoo.com> =item * @@ -510,6 +506,23 @@ Steven Haryanto (on PC) <stevenharyanto@gmail.com> =back +=head1 CONTRIBUTING + + +To contribute, you can send patches by email/via RT, or send pull requests on +GitHub. + +Most of the time, you don't need to build the distribution yourself. You can +simply modify the code, then test via: + + % prove -l + +If you want to build the distribution (e.g. to try to install it locally on your +system), you can install L<Dist::Zilla>, +L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other +Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required +beyond that are considered a bug and can be reported to me. + =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021, 2017, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>. @@ -526,4 +539,12 @@ L<http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. +=head1 BUGS + +Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> + +When submitting a bug or request, please include a test-file or a +patch to an existing test-file that illustrates the bug or desired +feature. + =cut diff --git a/lib/Array/Iterator/BiDirectional.pm b/lib/Array/Iterator/BiDirectional.pm index ea231c7..83242a2 100644 --- a/lib/Array/Iterator/BiDirectional.pm +++ b/lib/Array/Iterator/BiDirectional.pm @@ -4,9 +4,13 @@ package Array::Iterator::BiDirectional; use strict; use warnings; -our $VERSION = '0.130'; # VERSION - use Array::Iterator; + +our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY +our $DATE = '2021-09-26'; # DATE +our $DIST = 'Array-Iterator'; # DIST +our $VERSION = '0.131'; # VERSION + our @ISA = qw(Array::Iterator); sub has_previous { @@ -32,16 +36,16 @@ sub previous { } sub get_previous { - my ($self) = @_; - return undef unless (($self->_current_index - 1) > 0); - $self->_iterated = 1; - return $self->_getItem($self->_iteratee, --$self->_current_index); + my ($self) = @_; + return undef unless (($self->_current_index - 1) > 0); ## no critic: Subroutines::ProhibitExplicitReturnUndef + $self->_iterated = 1; + return $self->_getItem($self->_iteratee, --$self->_current_index); } sub getPrevious { my $self = shift; $self->get_previous(@_) } sub look_back { - my ($self, $n) = @_; + my ($self, $n) = @_; if(not defined $n) { $n = 1 } elsif(not $n) { die "look_back(0) doesn't make sense, did you mean get_previous()?" } @@ -49,9 +53,9 @@ sub look_back { my $idx = $self->_current_index - ($n + 1); - return undef unless ($idx > 0); + return undef unless ($idx > 0); ## no critic: Subroutines::ProhibitExplicitReturnUndef $self->_iterated = 1; - return $self->_getItem($self->_iteratee, $idx); + return $self->_getItem($self->_iteratee, $idx); } sub lookBack { my $self = shift; $self->look_back(@_) } @@ -71,7 +75,7 @@ Array::Iterator::BiDirectional - A subclass of Array::Iterator to allow forwards =head1 VERSION -This document describes version 0.130 of Array::Iterator::BiDirectional (from Perl distribution Array-Iterator), released on 2021-08-09. +This document describes version 0.131 of Array::Iterator::BiDirectional (from Perl distribution Array-Iterator), released on 2021-09-26. =head1 SYNOPSIS @@ -133,17 +137,9 @@ Please visit the project's homepage at L<https://metacpan.org/release/Array-Iter Source repository is at L<https://github.com/perlancar/perl-Array-Iterator>. -=head1 BUGS - -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> - -When submitting a bug or request, please include a test-file or a -patch to an existing test-file that illustrates the bug or desired -feature. - =head1 SEE ALSO -This is a subclass of B<Array::Iterator>, please refer to it for more documenation. +This is a subclass of B<Array::Iterator>, please refer to it for more documentation. =head1 AUTHOR @@ -153,6 +149,23 @@ perlancar <perlancar@cpan.org> stevan little, E<lt>stevan@iinteractive.comE<gt> +=head1 CONTRIBUTING + + +To contribute, you can send patches by email/via RT, or send pull requests on +GitHub. + +Most of the time, you don't need to build the distribution yourself. You can +simply modify the code, then test via: + + % prove -l + +If you want to build the distribution (e.g. to try to install it locally on your +system), you can install L<Dist::Zilla>, +L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other +Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required +beyond that are considered a bug and can be reported to me. + =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021, 2017, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>. @@ -169,4 +182,12 @@ L<http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. +=head1 BUGS + +Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> + +When submitting a bug or request, please include a test-file or a +patch to an existing test-file that illustrates the bug or desired +feature. + =cut diff --git a/lib/Array/Iterator/Circular.pm b/lib/Array/Iterator/Circular.pm index 833e329..0e36f15 100644 --- a/lib/Array/Iterator/Circular.pm +++ b/lib/Array/Iterator/Circular.pm @@ -4,9 +4,13 @@ package Array::Iterator::Circular; use strict; use warnings; -our $VERSION = '0.130'; # VERSION - use Array::Iterator; + +our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY +our $DATE = '2021-09-26'; # DATE +our $DIST = 'Array-Iterator'; # DIST +our $VERSION = '0.131'; # VERSION + our @ISA = qw(Array::Iterator); sub _init { @@ -71,7 +75,7 @@ Array::Iterator::Circular - A subclass of Array::Iterator to allow circular iter =head1 VERSION -This document describes version 0.130 of Array::Iterator::Circular (from Perl distribution Array-Iterator), released on 2021-08-09. +This document describes version 0.131 of Array::Iterator::Circular (from Perl distribution Array-Iterator), released on 2021-09-26. =head1 SYNOPSIS @@ -143,17 +147,9 @@ Please visit the project's homepage at L<https://metacpan.org/release/Array-Iter Source repository is at L<https://github.com/perlancar/perl-Array-Iterator>. -=head1 BUGS - -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> - -When submitting a bug or request, please include a test-file or a -patch to an existing test-file that illustrates the bug or desired -feature. - =head1 SEE ALSO -This is a subclass of B<Array::Iterator>, please refer to it for more documenation. +This is a subclass of B<Array::Iterator>, please refer to it for more documentation. =head1 AUTHOR @@ -163,6 +159,23 @@ perlancar <perlancar@cpan.org> stevan little, E<lt>stevan@iinteractive.comE<gt> +=head1 CONTRIBUTING + + +To contribute, you can send patches by email/via RT, or send pull requests on +GitHub. + +Most of the time, you don't need to build the distribution yourself. You can +simply modify the code, then test via: + + % prove -l + +If you want to build the distribution (e.g. to try to install it locally on your +system), you can install L<Dist::Zilla>, +L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other +Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required +beyond that are considered a bug and can be reported to me. + =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021, 2017, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>. @@ -179,4 +192,12 @@ L<http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. +=head1 BUGS + +Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> + +When submitting a bug or request, please include a test-file or a +patch to an existing test-file that illustrates the bug or desired +feature. + =cut diff --git a/lib/Array/Iterator/Reusable.pm b/lib/Array/Iterator/Reusable.pm index 516d5df..0082d0d 100644 --- a/lib/Array/Iterator/Reusable.pm +++ b/lib/Array/Iterator/Reusable.pm @@ -4,9 +4,13 @@ package Array::Iterator::Reusable; use strict; use warnings; -our $VERSION = '0.130'; # VERSION - use Array::Iterator; + +our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY +our $DATE = '2021-09-26'; # DATE +our $DIST = 'Array-Iterator'; # DIST +our $VERSION = '0.131'; # VERSION + our @ISA = qw(Array::Iterator); sub reset { @@ -30,7 +34,7 @@ Array::Iterator::Reusable - A subclass of Array::Iterator to allow reuse of iter =head1 VERSION -This document describes version 0.130 of Array::Iterator::Reusable (from Perl distribution Array-Iterator), released on 2021-08-09. +This document describes version 0.131 of Array::Iterator::Reusable (from Perl distribution Array-Iterator), released on 2021-09-26. =head1 SYNOPSIS @@ -60,7 +64,7 @@ This is a subclass of Array::Iterator, only those methods that have been added a =item B<reset> -This resets the interal counter of the iterator back to the start of the array. +This resets the internal counter of the iterator back to the start of the array. =back @@ -72,17 +76,9 @@ Please visit the project's homepage at L<https://metacpan.org/release/Array-Iter Source repository is at L<https://github.com/perlancar/perl-Array-Iterator>. -=head1 BUGS - -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> - -When submitting a bug or request, please include a test-file or a -patch to an existing test-file that illustrates the bug or desired -feature. - =head1 SEE ALSO -This is a subclass of B<Array::Iterator>, please refer to it for more documenation. +This is a subclass of B<Array::Iterator>, please refer to it for more documentation. =head1 AUTHOR @@ -92,6 +88,23 @@ perlancar <perlancar@cpan.org> stevan little, E<lt>stevan@iinteractive.comE<gt> +=head1 CONTRIBUTING + + +To contribute, you can send patches by email/via RT, or send pull requests on +GitHub. + +Most of the time, you don't need to build the distribution yourself. You can +simply modify the code, then test via: + + % prove -l + +If you want to build the distribution (e.g. to try to install it locally on your +system), you can install L<Dist::Zilla>, +L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other +Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required +beyond that are considered a bug and can be reported to me. + =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021, 2017, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>. @@ -108,4 +121,12 @@ L<http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. +=head1 BUGS + +Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Array-Iterator> + +When submitting a bug or request, please include a test-file or a +patch to an existing test-file that illustrates the bug or desired +feature. + =cut |