diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-01-04 23:18:18 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-01-04 23:18:18 +0100 |
commit | e1005ae83928397c41dfd48264dd7086624d9393 (patch) | |
tree | 9240f81171fcbfbead30b61f99ebef8d691ced17 | |
parent | 62aa4679751038c7fc56a8df6902fd4e3d82c9cc (diff) | |
parent | 3e2b10852db259b3b477c1f468cb498e450cba70 (diff) |
Update upstream source from tag 'upstream/0.005'
Update to upstream version '0.005'
with Debian dir 5c560947ea3c4b78b29d70d8ed7465c34ca88a48
-rw-r--r-- | Changes | 13 | ||||
-rw-r--r-- | LICENSE | 6 | ||||
-rw-r--r-- | MANIFEST | 2 | ||||
-rw-r--r-- | META.json | 125 | ||||
-rw-r--r-- | META.yml | 121 | ||||
-rw-r--r-- | Makefile.PL | 8 | ||||
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | dist.ini | 5 | ||||
-rw-r--r-- | lib/Test/Regexp/Pattern.pm | 14 | ||||
-rwxr-xr-x | script/test-regexp-pattern | 8 | ||||
-rw-r--r-- | t/author-critic.t | 12 |
11 files changed, 180 insertions, 140 deletions
@@ -1,4 +1,9 @@ -0.004 2018-09-12 (PERLANCAR) +0.005 2020-01-02 Released-By: PERLANCAR; Urgency: medium + + - Generate anchored regex pattern if anchor=>1 in example. + + +0.004 2018-09-12 Released-By: PERLANCAR - No functional changes. @@ -7,20 +12,20 @@ [CT]. -0.003 2018-09-10 (PERLANCAR) +0.003 2018-09-10 Released-By: PERLANCAR - Use re() to retrieve the patterns. - [dist] Bump prereq to Regexp::Pattern 0.2.7. -0.002 2018-09-10 (PERLANCAR) +0.002 2018-09-10 Released-By: PERLANCAR - Fix test-regexp-pattern. - [bugfix] Forgot to require Test::More. -0.001 2018-09-10 (PERLANCAR) +0.001 2018-09-10 Released-By: PERLANCAR - First release. @@ -1,4 +1,4 @@ -This software is copyright (c) 2018 by perlancar@cpan.org. +This software is copyright (c) 2020, 2018 by perlancar@cpan.org. 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 @@ b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2018 by perlancar@cpan.org. +This software is Copyright (c) 2020, 2018 by perlancar@cpan.org. This is free software, licensed under: @@ -272,7 +272,7 @@ That's all there is to it! --- The Artistic License 1.0 --- -This software is Copyright (c) 2018 by perlancar@cpan.org. +This software is Copyright (c) 2020, 2018 by perlancar@cpan.org. This is free software, licensed under: @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012. Changes LICENSE MANIFEST @@ -4,7 +4,7 @@ "perlancar <perlancar@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -33,7 +33,7 @@ "runtime" : { "requires" : { "File::Spec" : "0", - "Getopt::Long" : "0", + "Getopt::Long" : "2.50", "Regexp::Pattern" : "v0.2.7", "Test::Builder" : "0", "Test::More" : "0", @@ -63,10 +63,10 @@ "web" : "https://github.com/perlancar/perl-Test-Regexp-Pattern" } }, - "version" : "0.004", + "version" : "0.005", "x_Dist_Zilla" : { "perl" : { - "version" : "5.026001" + "version" : "5.030000" }, "plugins" : [ { @@ -83,52 +83,52 @@ } }, "name" : "@Author::PERLANCAR/@Filter/GatherDir", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@Author::PERLANCAR/@Filter/PruneCruft", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::PERLANCAR/@Filter/ManifestSkip", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::PERLANCAR/@Filter/MetaYAML", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::PERLANCAR/@Filter/License", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@Author::PERLANCAR/@Filter/PodCoverageTests", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::PERLANCAR/@Filter/PodSyntaxTests", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ExtraTests", "name" : "@Author::PERLANCAR/@Filter/ExtraTests", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@Author::PERLANCAR/@Filter/ExecDir", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@Author::PERLANCAR/@Filter/ShareDir", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", @@ -138,27 +138,32 @@ } }, "name" : "@Author::PERLANCAR/@Filter/MakeMaker", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::PERLANCAR/@Filter/Manifest", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::PERLANCAR/@Filter/ConfirmRelease", - "version" : "6.010" + "version" : "6.012" + }, + { + "class" : "Dist::Zilla::Plugin::FileFinder::ByName", + "name" : "@Author::PERLANCAR/FileFinder::ByName PERLANCAR", + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@Author::PERLANCAR/ExecDir script", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::PERLANCAR::BeforeBuild", "name" : "@Author::PERLANCAR/PERLANCAR::BeforeBuild", - "version" : "0.593" + "version" : "0.599" }, { "class" : "Dist::Zilla::Plugin::Rinci::AbstractFromMeta", @@ -173,7 +178,7 @@ { "class" : "Dist::Zilla::Plugin::PERLANCAR::EnsurePrereqToSpec", "name" : "@Author::PERLANCAR/PERLANCAR::EnsurePrereqToSpec", - "version" : "0.05" + "version" : "0.060" }, { "class" : "Dist::Zilla::Plugin::PERLANCAR::MetaResources", @@ -199,7 +204,7 @@ ] }, "Dist::Zilla::Role::ModuleMetadata" : { - "Module::Metadata" : "1.000033", + "Module::Metadata" : "1.000036", "version" : "0.006" } }, @@ -209,22 +214,22 @@ { "class" : "Dist::Zilla::Plugin::CopyrightYearFromGit", "name" : "@Author::PERLANCAR/CopyrightYearFromGit", - "version" : "0.003" + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::IfBuilt", "name" : "@Author::PERLANCAR/IfBuilt", - "version" : "0.03" + "version" : "0.02" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::PERLANCAR/MetaJSON", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::PERLANCAR/MetaConfig", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Authority", @@ -242,9 +247,9 @@ "version" : "0.02" }, { - "class" : "Dist::Zilla::Plugin::PERLANCAR::OurPkgVersion", - "name" : "@Author::PERLANCAR/PERLANCAR::OurPkgVersion", - "version" : "0.04" + "class" : "Dist::Zilla::Plugin::OurPkgVersion", + "name" : "@Author::PERLANCAR/OurPkgVersion", + "version" : "0.21" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", @@ -363,7 +368,7 @@ { "class" : "Pod::Weaver::Plugin::Rinci", "name" : "@Author::PERLANCAR/Rinci", - "version" : "0.77" + "version" : "0.780" }, { "class" : "Pod::Weaver::Plugin::AppendPrepend", @@ -383,7 +388,7 @@ { "class" : "Pod::Weaver::Plugin::PERLANCAR::SortSections", "name" : "@Author::PERLANCAR/PERLANCAR::SortSections", - "version" : "0.06" + "version" : "0.07" } ] } @@ -394,7 +399,7 @@ { "class" : "Dist::Zilla::Plugin::PruneFiles", "name" : "@Author::PERLANCAR/PruneFiles", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Pod2Readme", @@ -404,17 +409,17 @@ { "class" : "Dist::Zilla::Plugin::Rinci::AddPrereqs", "name" : "@Author::PERLANCAR/Rinci::AddPrereqs", - "version" : "0.142" + "version" : "0.144" }, { "class" : "Dist::Zilla::Plugin::Rinci::AddToDb", "name" : "@Author::PERLANCAR/Rinci::AddToDb", - "version" : "0.01" + "version" : "0.020" }, { - "class" : "Dist::Zilla::Plugin::Rinci::Validate", - "name" : "@Author::PERLANCAR/Rinci::Validate", - "version" : "0.24" + "class" : "Dist::Zilla::Plugin::Rinci::EmbedValidator", + "name" : "@Author::PERLANCAR/Rinci::EmbedValidator", + "version" : "0.250" }, { "class" : "Dist::Zilla::Plugin::SetScriptShebang", @@ -445,14 +450,21 @@ "version" : "2.058" }, { - "class" : "Dist::Zilla::Plugin::Test::Perl::Critic", - "name" : "@Author::PERLANCAR/Test::Perl::Critic", - "version" : "3.001" + "class" : "Dist::Zilla::Plugin::Test::Perl::Critic::Subset", + "config" : { + "Dist::Zilla::Plugin::Test::Perl::Critic::Subset" : { + "finder" : [ + "@Author::PERLANCAR/FileFinder::ByName PERLANCAR" + ] + } + }, + "name" : "@Author::PERLANCAR/Test::Perl::Critic::Subset", + "version" : "3.001.003" }, { "class" : "Dist::Zilla::Plugin::Test::Rinci", "name" : "@Author::PERLANCAR/Test::Rinci", - "version" : "0.03" + "version" : "0.040" }, { "class" : "Dist::Zilla::Plugin::StaticInstall", @@ -463,7 +475,7 @@ } }, "name" : "@Author::PERLANCAR/StaticInstall", - "version" : "0.011" + "version" : "0.012" }, { "class" : "Dist::Zilla::Plugin::EnsureSQLSchemaVersionedTest", @@ -499,7 +511,7 @@ } }, "name" : "TestRequires", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -510,7 +522,7 @@ } }, "name" : "Prereqs", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -521,57 +533,57 @@ } }, "name" : "DevelopX_spec", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "6.010" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "6.010" + "version" : "6.012" } ], "zilla" : { @@ -579,11 +591,12 @@ "config" : { "is_trial" : 0 }, - "version" : "6.010" + "version" : "6.012" } }, "x_authority" : "cpan:PERLANCAR", - "x_serialization_backend" : "Cpanel::JSON::XS version 3.0239", + "x_generated_by_perl" : "v5.30.0", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.12", "x_static_install" : 1 } @@ -10,7 +10,7 @@ build_requires: configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -18,7 +18,7 @@ meta-spec: name: Test-Regexp-Pattern requires: File::Spec: '0' - Getopt::Long: '0' + Getopt::Long: '2.50' Regexp::Pattern: v0.2.7 Test::Builder: '0' Test::More: '0' @@ -29,10 +29,10 @@ resources: bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Regexp-Pattern homepage: https://metacpan.org/release/Test-Regexp-Pattern repository: git://github.com/perlancar/perl-Test-Regexp-Pattern.git -version: '0.004' +version: '0.005' x_Dist_Zilla: perl: - version: '5.026001' + version: '5.030000' plugins: - class: Dist::Zilla::Plugin::GatherDir @@ -46,66 +46,70 @@ x_Dist_Zilla: prune_directory: [] root: . name: '@Author::PERLANCAR/@Filter/GatherDir' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::PruneCruft name: '@Author::PERLANCAR/@Filter/PruneCruft' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::ManifestSkip name: '@Author::PERLANCAR/@Filter/ManifestSkip' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::PERLANCAR/@Filter/MetaYAML' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::License name: '@Author::PERLANCAR/@Filter/License' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::PodCoverageTests name: '@Author::PERLANCAR/@Filter/PodCoverageTests' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::PERLANCAR/@Filter/PodSyntaxTests' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::ExtraTests name: '@Author::PERLANCAR/@Filter/ExtraTests' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::ExecDir name: '@Author::PERLANCAR/@Filter/ExecDir' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::ShareDir name: '@Author::PERLANCAR/@Filter/ShareDir' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: 1 name: '@Author::PERLANCAR/@Filter/MakeMaker' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::Manifest name: '@Author::PERLANCAR/@Filter/Manifest' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::PERLANCAR/@Filter/ConfirmRelease' - version: '6.010' + version: '6.012' + - + class: Dist::Zilla::Plugin::FileFinder::ByName + name: '@Author::PERLANCAR/FileFinder::ByName PERLANCAR' + version: '6.012' - class: Dist::Zilla::Plugin::ExecDir name: '@Author::PERLANCAR/ExecDir script' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::PERLANCAR::BeforeBuild name: '@Author::PERLANCAR/PERLANCAR::BeforeBuild' - version: '0.593' + version: '0.599' - class: Dist::Zilla::Plugin::Rinci::AbstractFromMeta name: '@Author::PERLANCAR/Rinci::AbstractFromMeta' @@ -117,7 +121,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::PERLANCAR::EnsurePrereqToSpec name: '@Author::PERLANCAR/PERLANCAR::EnsurePrereqToSpec' - version: '0.05' + version: '0.060' - class: Dist::Zilla::Plugin::PERLANCAR::MetaResources name: '@Author::PERLANCAR/PERLANCAR::MetaResources' @@ -137,26 +141,26 @@ x_Dist_Zilla: finder: - ':InstallModules' Dist::Zilla::Role::ModuleMetadata: - Module::Metadata: '1.000033' + Module::Metadata: '1.000036' version: '0.006' name: '@Author::PERLANCAR/CheckSelfDependency' version: '0.011' - class: Dist::Zilla::Plugin::CopyrightYearFromGit name: '@Author::PERLANCAR/CopyrightYearFromGit' - version: '0.003' + version: '0.006' - class: Dist::Zilla::Plugin::IfBuilt name: '@Author::PERLANCAR/IfBuilt' - version: '0.03' + version: '0.02' - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::PERLANCAR/MetaJSON' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::PERLANCAR/MetaConfig' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::Authority name: '@Author::PERLANCAR/Authority' @@ -170,9 +174,9 @@ x_Dist_Zilla: name: '@Author::PERLANCAR/OurDist' version: '0.02' - - class: Dist::Zilla::Plugin::PERLANCAR::OurPkgVersion - name: '@Author::PERLANCAR/PERLANCAR::OurPkgVersion' - version: '0.04' + class: Dist::Zilla::Plugin::OurPkgVersion + name: '@Author::PERLANCAR/OurPkgVersion' + version: '0.21' - class: Dist::Zilla::Plugin::PodWeaver config: @@ -268,7 +272,7 @@ x_Dist_Zilla: - class: Pod::Weaver::Plugin::Rinci name: '@Author::PERLANCAR/Rinci' - version: '0.77' + version: '0.780' - class: Pod::Weaver::Plugin::AppendPrepend name: '@Author::PERLANCAR/AppendPrepend' @@ -284,13 +288,13 @@ x_Dist_Zilla: - class: Pod::Weaver::Plugin::PERLANCAR::SortSections name: '@Author::PERLANCAR/PERLANCAR::SortSections' - version: '0.06' + version: '0.07' name: '@Author::PERLANCAR/PodWeaver' version: '4.008' - class: Dist::Zilla::Plugin::PruneFiles name: '@Author::PERLANCAR/PruneFiles' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::Pod2Readme name: '@Author::PERLANCAR/Pod2Readme' @@ -298,15 +302,15 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::Rinci::AddPrereqs name: '@Author::PERLANCAR/Rinci::AddPrereqs' - version: '0.142' + version: '0.144' - class: Dist::Zilla::Plugin::Rinci::AddToDb name: '@Author::PERLANCAR/Rinci::AddToDb' - version: '0.01' + version: '0.020' - - class: Dist::Zilla::Plugin::Rinci::Validate - name: '@Author::PERLANCAR/Rinci::Validate' - version: '0.24' + class: Dist::Zilla::Plugin::Rinci::EmbedValidator + name: '@Author::PERLANCAR/Rinci::EmbedValidator' + version: '0.250' - class: Dist::Zilla::Plugin::SetScriptShebang name: '@Author::PERLANCAR/SetScriptShebang' @@ -330,13 +334,17 @@ x_Dist_Zilla: name: '@Author::PERLANCAR/Test::Compile' version: '2.058' - - class: Dist::Zilla::Plugin::Test::Perl::Critic - name: '@Author::PERLANCAR/Test::Perl::Critic' - version: '3.001' + class: Dist::Zilla::Plugin::Test::Perl::Critic::Subset + config: + Dist::Zilla::Plugin::Test::Perl::Critic::Subset: + finder: + - '@Author::PERLANCAR/FileFinder::ByName PERLANCAR' + name: '@Author::PERLANCAR/Test::Perl::Critic::Subset' + version: 3.001.003 - class: Dist::Zilla::Plugin::Test::Rinci name: '@Author::PERLANCAR/Test::Rinci' - version: '0.03' + version: '0.040' - class: Dist::Zilla::Plugin::StaticInstall config: @@ -344,7 +352,7 @@ x_Dist_Zilla: dry_run: 0 mode: on name: '@Author::PERLANCAR/StaticInstall' - version: '0.011' + version: '0.012' - class: Dist::Zilla::Plugin::EnsureSQLSchemaVersionedTest name: '@Author::PERLANCAR/EnsureSQLSchemaVersionedTest' @@ -372,7 +380,7 @@ x_Dist_Zilla: phase: test type: requires name: TestRequires - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::Prereqs config: @@ -380,7 +388,7 @@ x_Dist_Zilla: phase: runtime type: requires name: Prereqs - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::Prereqs config: @@ -388,52 +396,53 @@ x_Dist_Zilla: phase: develop type: x_spec name: DevelopX_spec - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: '6.010' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: '6.010' + version: '6.012' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' - version: '6.010' + version: '6.012' x_authority: cpan:PERLANCAR -x_serialization_backend: 'YAML::Tiny version 1.70' +x_generated_by_perl: v5.30.0 +x_serialization_backend: 'YAML::Tiny version 1.73' x_static_install: 1 diff --git a/Makefile.PL b/Makefile.PL index c0bcd4b..b6bcb38 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.012. use strict; use warnings; @@ -21,7 +21,7 @@ my %WriteMakefileArgs = ( "NAME" => "Test::Regexp::Pattern", "PREREQ_PM" => { "File::Spec" => 0, - "Getopt::Long" => 0, + "Getopt::Long" => "2.50", "Regexp::Pattern" => "0.2.7", "Test::Builder" => 0, "Test::More" => 0, @@ -34,7 +34,7 @@ my %WriteMakefileArgs = ( "IPC::Open3" => 0, "Test::More" => 0 }, - "VERSION" => "0.004", + "VERSION" => "0.005", "test" => { "TESTS" => "t/*.t" } @@ -43,7 +43,7 @@ my %WriteMakefileArgs = ( my %FallbackPrereqs = ( "File::Spec" => 0, - "Getopt::Long" => 0, + "Getopt::Long" => "2.50", "IO::Handle" => 0, "IPC::Open3" => 0, "Regexp::Pattern" => "0.2.7", @@ -2,8 +2,8 @@ NAME Test::Regexp::Pattern - Test Regexp::Pattern patterns VERSION - This document describes version 0.004 of Test::Regexp::Pattern (from - Perl distribution Test-Regexp-Pattern), released on 2018-09-12. + This document describes version 0.005 of Test::Regexp::Pattern (from + Perl distribution Test-Regexp-Pattern), released on 2020-01-02. SYNOPSIS To check all regexp patterns in a module: @@ -74,7 +74,7 @@ AUTHOR perlancar <perlancar@cpan.org> COPYRIGHT AND LICENSE - This software is copyright (c) 2018 by perlancar@cpan.org. + This software is copyright (c) 2020, 2018 by perlancar@cpan.org. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -1,4 +1,4 @@ -version=0.004 +version=0.005 name=Test-Regexp-Pattern @@ -11,7 +11,7 @@ perl=5.010001 strict=0 warnings=0 File::Spec=0 -Getopt::Long=0 +Getopt::Long=2.50 Regexp::Pattern=0.2.7 Test::Builder=0 Test::More=0 @@ -20,3 +20,4 @@ Test::More=0 -phase=develop -relationship=x_spec Regexp::Pattern=0.2.7 + diff --git a/lib/Test/Regexp/Pattern.pm b/lib/Test/Regexp/Pattern.pm index 516648e..cfc3565 100644 --- a/lib/Test/Regexp/Pattern.pm +++ b/lib/Test/Regexp/Pattern.pm @@ -2,8 +2,8 @@ package Test::Regexp::Pattern; -our $DATE = '2018-09-12'; # DATE -our $VERSION = '0.004'; # VERSION +our $DATE = '2020-01-02'; # DATE +our $VERSION = '0.005'; # VERSION use 5.010001; use strict 'subs', 'vars'; @@ -50,12 +50,16 @@ sub _test_regexp_pattern { $ok = 0; return; }; + my %args; if ($eg->{gen_args}) { $args{$_} = $eg->{gen_args}{$_} for keys %{$eg->{gen_args}}; } - + if (defined $eg->{anchor}) { + $args{-anchor} = $eg->{anchor}; + } my $pat = re($fqname, %args); + my $actual_match = $eg->{str} =~ $pat ? 1:0; if (ref $eg->{matches} eq 'ARRAY') { my $len = @{ $eg->{matches} }; @@ -261,7 +265,7 @@ Test::Regexp::Pattern - Test Regexp::Pattern patterns =head1 VERSION -This document describes version 0.004 of Test::Regexp::Pattern (from Perl distribution Test-Regexp-Pattern), released on 2018-09-12. +This document describes version 0.005 of Test::Regexp::Pattern (from Perl distribution Test-Regexp-Pattern), released on 2020-01-02. =head1 SYNOPSIS @@ -348,7 +352,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018 by perlancar@cpan.org. +This software is copyright (c) 2020, 2018 by perlancar@cpan.org. 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 --git a/script/test-regexp-pattern b/script/test-regexp-pattern index 20dba39..de93555 100755 --- a/script/test-regexp-pattern +++ b/script/test-regexp-pattern @@ -1,7 +1,7 @@ #!perl -our $DATE = '2018-09-12'; # DATE -our $VERSION = '0.004'; # VERSION +our $DATE = '2020-01-02'; # DATE +our $VERSION = '0.005'; # VERSION use 5.010; use strict; @@ -40,7 +40,7 @@ test-regexp-pattern - Test Regexp::Pattern patterns in all modules of your distr =head1 VERSION -This document describes version 0.004 of test-regexp-pattern (from Perl distribution Test-Regexp-Pattern), released on 2018-09-12. +This document describes version 0.005 of test-regexp-pattern (from Perl distribution Test-Regexp-Pattern), released on 2020-01-02. =head1 SYNOPSIS @@ -89,7 +89,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018 by perlancar@cpan.org. +This software is copyright (c) 2020, 2018 by perlancar@cpan.org. 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 --git a/t/author-critic.t b/t/author-critic.t index 22becf1..426a1c0 100644 --- a/t/author-critic.t +++ b/t/author-critic.t @@ -11,5 +11,13 @@ BEGIN { use strict; use warnings; -use Test::Perl::Critic (-profile => "perlcritic.rc") x!! -e "perlcritic.rc"; -all_critic_ok(); +# this test was generated with Dist::Zilla::Plugin::Test::Perl::Critic::Subset 3.001.003 + +use Test::Perl::Critic (-profile => "") x!! -e ""; + +my $filenames = ['lib/Test/Regexp/Pattern.pm','script/test-regexp-pattern']; +unless ($filenames && @$filenames) { + $filenames = -d "blib" ? ["blib"] : ["lib"]; +} + +all_critic_ok(@$filenames); |