Skip to content
Snippets Groups Projects
Commit bac18b04 authored by Jonas Smedegaard's avatar Jonas Smedegaard
Browse files

New upstream version 0.009

parents 4d3d310a 5ec26eaf
No related branches found
No related tags found
No related merge requests found
0.009 2021-07-21 Released-By: PERLANCAR; Urgency: medium
- [ux] Show string from example as subtest name.
0.008 2021-07-13 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- [doc] Some rewording.
0.007 2021-07-13 Released-By: PERLANCAR; Urgency: medium
- Test that each pattern definition is a valid defhash (GH#5).
0.006 2020-01-04 Released-By: PERLANCAR; Urgency: medium
[doc]
......
This software is copyright (c) 2020, 2018 by perlancar@cpan.org.
This software is copyright (c) 2021, 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) 2020, 2018 by perlancar@cpan.org.
This software is Copyright (c) 2021, 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) 2020, 2018 by perlancar@cpan.org.
This software is Copyright (c) 2021, 2020, 2018 by perlancar@cpan.org.
This is free software, licensed under:
......
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012.
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.014.
Changes
LICENSE
MANIFEST
......
......@@ -4,7 +4,7 @@
"perlancar <perlancar@cpan.org>"
],
"dynamic_config" : 0,
"generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010",
"generated_by" : "Dist::Zilla version 6.014, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
......@@ -64,12 +64,17 @@
"web" : "https://github.com/perlancar/perl-Test-Regexp-Pattern"
}
},
"version" : "0.006",
"version" : "0.009",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.030000"
"version" : "5.030002"
},
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::PERLANCAR::CheckPendingRelease",
"name" : "@Author::PERLANCAR/PERLANCAR::CheckPendingRelease",
"version" : "0.001"
},
{
"class" : "Dist::Zilla::Plugin::GatherDir",
"config" : {
......@@ -84,52 +89,52 @@
}
},
"name" : "@Author::PERLANCAR/@Filter/GatherDir",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@Author::PERLANCAR/@Filter/PruneCruft",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@Author::PERLANCAR/@Filter/ManifestSkip",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@Author::PERLANCAR/@Filter/MetaYAML",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@Author::PERLANCAR/@Filter/License",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@Author::PERLANCAR/@Filter/PodCoverageTests",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@Author::PERLANCAR/@Filter/PodSyntaxTests",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@Author::PERLANCAR/@Filter/ExtraTests",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Author::PERLANCAR/@Filter/ExecDir",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Author::PERLANCAR/@Filter/ShareDir",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
......@@ -139,32 +144,27 @@
}
},
"name" : "@Author::PERLANCAR/@Filter/MakeMaker",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Author::PERLANCAR/@Filter/Manifest",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@Author::PERLANCAR/@Filter/ConfirmRelease",
"version" : "6.012"
},
{
"class" : "Dist::Zilla::Plugin::FileFinder::ByName",
"name" : "@Author::PERLANCAR/FileFinder::ByName PERLANCAR",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Author::PERLANCAR/ExecDir script",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::PERLANCAR::BeforeBuild",
"name" : "@Author::PERLANCAR/PERLANCAR::BeforeBuild",
"version" : "0.599"
"version" : "0.604"
},
{
"class" : "Dist::Zilla::Plugin::Rinci::AbstractFromMeta",
......@@ -179,12 +179,12 @@
{
"class" : "Dist::Zilla::Plugin::PERLANCAR::EnsurePrereqToSpec",
"name" : "@Author::PERLANCAR/PERLANCAR::EnsurePrereqToSpec",
"version" : "0.060"
"version" : "0.062"
},
{
"class" : "Dist::Zilla::Plugin::PERLANCAR::MetaResources",
"name" : "@Author::PERLANCAR/PERLANCAR::MetaResources",
"version" : "0.040"
"version" : "0.043"
},
{
"class" : "Dist::Zilla::Plugin::CheckChangeLog",
......@@ -212,6 +212,20 @@
"name" : "@Author::PERLANCAR/CheckSelfDependency",
"version" : "0.011"
},
{
"class" : "Dist::Zilla::Plugin::Git::Contributors",
"config" : {
"Dist::Zilla::Plugin::Git::Contributors" : {
"git_version" : "2.17.1",
"include_authors" : 0,
"include_releaser" : 1,
"order_by" : "name",
"paths" : []
}
},
"name" : "@Author::PERLANCAR/Git::Contributors",
"version" : "0.036"
},
{
"class" : "Dist::Zilla::Plugin::CopyrightYearFromGit",
"name" : "@Author::PERLANCAR/CopyrightYearFromGit",
......@@ -220,22 +234,22 @@
{
"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.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Author::PERLANCAR/MetaConfig",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::Authority",
"name" : "@Author::PERLANCAR/Authority",
"version" : "1.009"
"class" : "Dist::Zilla::Plugin::PERLANCAR::Authority",
"name" : "@Author::PERLANCAR/PERLANCAR::Authority",
"version" : "0.001"
},
{
"class" : "Dist::Zilla::Plugin::OurDate",
......@@ -361,6 +375,11 @@
"name" : "@Author::PERLANCAR/Authors",
"version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Contributors",
"name" : "@Author::PERLANCAR/Contributors",
"version" : "0.009"
},
{
"class" : "Pod::Weaver::Section::Legal",
"name" : "@Author::PERLANCAR/Legal",
......@@ -389,7 +408,7 @@
{
"class" : "Pod::Weaver::Plugin::PERLANCAR::SortSections",
"name" : "@Author::PERLANCAR/PERLANCAR::SortSections",
"version" : "0.07"
"version" : "0.082"
}
]
}
......@@ -400,7 +419,7 @@
{
"class" : "Dist::Zilla::Plugin::PruneFiles",
"name" : "@Author::PERLANCAR/PruneFiles",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::Pod2Readme",
......@@ -410,7 +429,7 @@
{
"class" : "Dist::Zilla::Plugin::Rinci::AddPrereqs",
"name" : "@Author::PERLANCAR/Rinci::AddPrereqs",
"version" : "0.144"
"version" : "0.145"
},
{
"class" : "Dist::Zilla::Plugin::Rinci::AddToDb",
......@@ -420,7 +439,7 @@
{
"class" : "Dist::Zilla::Plugin::Rinci::EmbedValidator",
"name" : "@Author::PERLANCAR/Rinci::EmbedValidator",
"version" : "0.250"
"version" : "0.251"
},
{
"class" : "Dist::Zilla::Plugin::SetScriptShebang",
......@@ -455,12 +474,14 @@
"config" : {
"Dist::Zilla::Plugin::Test::Perl::Critic::Subset" : {
"finder" : [
"@Author::PERLANCAR/FileFinder::ByName PERLANCAR"
":ExecFiles",
":InstallModules",
":TestFiles"
]
}
},
"name" : "@Author::PERLANCAR/Test::Perl::Critic::Subset",
"version" : "3.001.003"
"version" : "3.001.005"
},
{
"class" : "Dist::Zilla::Plugin::Test::Rinci",
......@@ -496,7 +517,7 @@
{
"class" : "Dist::Zilla::Plugin::Prereqs::CheckCircular",
"name" : "@Author::PERLANCAR/Prereqs::CheckCircular",
"version" : "0.006"
"version" : "0.007"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN::WWWPAUSESimple",
......@@ -512,7 +533,7 @@
}
},
"name" : "TestRequires",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
......@@ -523,7 +544,7 @@
}
},
"name" : "Prereqs",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
......@@ -534,57 +555,57 @@
}
},
"name" : "DevelopX_spec",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExtraTestFiles",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":PerlExecFiles",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":AllFiles",
"version" : "6.012"
"version" : "6.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":NoFiles",
"version" : "6.012"
"version" : "6.014"
}
],
"zilla" : {
......@@ -592,12 +613,13 @@
"config" : {
"is_trial" : 0
},
"version" : "6.012"
"version" : "6.014"
}
},
"x_authority" : "cpan:PERLANCAR",
"x_generated_by_perl" : "v5.30.0",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.12",
"x_generated_by_perl" : "v5.30.2",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.19",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later",
"x_static_install" : 1
}
......@@ -10,7 +10,7 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010'
generated_by: 'Dist::Zilla version 6.014, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
......@@ -30,11 +30,15 @@ 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.006'
version: '0.009'
x_Dist_Zilla:
perl:
version: '5.030000'
version: '5.030002'
plugins:
-
class: Dist::Zilla::Plugin::PERLANCAR::CheckPendingRelease
name: '@Author::PERLANCAR/PERLANCAR::CheckPendingRelease'
version: '0.001'
-
class: Dist::Zilla::Plugin::GatherDir
config:
......@@ -47,70 +51,66 @@ x_Dist_Zilla:
prune_directory: []
root: .
name: '@Author::PERLANCAR/@Filter/GatherDir'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@Author::PERLANCAR/@Filter/PruneCruft'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@Author::PERLANCAR/@Filter/ManifestSkip'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@Author::PERLANCAR/@Filter/MetaYAML'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::License
name: '@Author::PERLANCAR/@Filter/License'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@Author::PERLANCAR/@Filter/PodCoverageTests'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@Author::PERLANCAR/@Filter/PodSyntaxTests'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@Author::PERLANCAR/@Filter/ExtraTests'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Author::PERLANCAR/@Filter/ExecDir'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Author::PERLANCAR/@Filter/ShareDir'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::MakeMaker
config:
Dist::Zilla::Role::TestRunner:
default_jobs: 1
name: '@Author::PERLANCAR/@Filter/MakeMaker'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Author::PERLANCAR/@Filter/Manifest'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@Author::PERLANCAR/@Filter/ConfirmRelease'
version: '6.012'
-
class: Dist::Zilla::Plugin::FileFinder::ByName
name: '@Author::PERLANCAR/FileFinder::ByName PERLANCAR'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Author::PERLANCAR/ExecDir script'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::PERLANCAR::BeforeBuild
name: '@Author::PERLANCAR/PERLANCAR::BeforeBuild'
version: '0.599'
version: '0.604'
-
class: Dist::Zilla::Plugin::Rinci::AbstractFromMeta
name: '@Author::PERLANCAR/Rinci::AbstractFromMeta'
......@@ -122,11 +122,11 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::PERLANCAR::EnsurePrereqToSpec
name: '@Author::PERLANCAR/PERLANCAR::EnsurePrereqToSpec'
version: '0.060'
version: '0.062'
-
class: Dist::Zilla::Plugin::PERLANCAR::MetaResources
name: '@Author::PERLANCAR/PERLANCAR::MetaResources'
version: '0.040'
version: '0.043'
-
class: Dist::Zilla::Plugin::CheckChangeLog
name: '@Author::PERLANCAR/CheckChangeLog'
......@@ -146,6 +146,17 @@ x_Dist_Zilla:
version: '0.006'
name: '@Author::PERLANCAR/CheckSelfDependency'
version: '0.011'
-
class: Dist::Zilla::Plugin::Git::Contributors
config:
Dist::Zilla::Plugin::Git::Contributors:
git_version: 2.17.1
include_authors: 0
include_releaser: 1
order_by: name
paths: []
name: '@Author::PERLANCAR/Git::Contributors'
version: '0.036'
-
class: Dist::Zilla::Plugin::CopyrightYearFromGit
name: '@Author::PERLANCAR/CopyrightYearFromGit'
......@@ -153,19 +164,19 @@ 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.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@Author::PERLANCAR/MetaConfig'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::Authority
name: '@Author::PERLANCAR/Authority'
version: '1.009'
class: Dist::Zilla::Plugin::PERLANCAR::Authority
name: '@Author::PERLANCAR/PERLANCAR::Authority'
version: '0.001'
-
class: Dist::Zilla::Plugin::OurDate
name: '@Author::PERLANCAR/OurDate'
......@@ -266,6 +277,10 @@ x_Dist_Zilla:
class: Pod::Weaver::Section::Authors
name: '@Author::PERLANCAR/Authors'
version: '4.015'
-
class: Pod::Weaver::Section::Contributors
name: '@Author::PERLANCAR/Contributors'
version: '0.009'
-
class: Pod::Weaver::Section::Legal
name: '@Author::PERLANCAR/Legal'
......@@ -289,13 +304,13 @@ x_Dist_Zilla:
-
class: Pod::Weaver::Plugin::PERLANCAR::SortSections
name: '@Author::PERLANCAR/PERLANCAR::SortSections'
version: '0.07'
version: '0.082'
name: '@Author::PERLANCAR/PodWeaver'
version: '4.008'
-
class: Dist::Zilla::Plugin::PruneFiles
name: '@Author::PERLANCAR/PruneFiles'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::Pod2Readme
name: '@Author::PERLANCAR/Pod2Readme'
......@@ -303,7 +318,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::Rinci::AddPrereqs
name: '@Author::PERLANCAR/Rinci::AddPrereqs'
version: '0.144'
version: '0.145'
-
class: Dist::Zilla::Plugin::Rinci::AddToDb
name: '@Author::PERLANCAR/Rinci::AddToDb'
......@@ -311,7 +326,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::Rinci::EmbedValidator
name: '@Author::PERLANCAR/Rinci::EmbedValidator'
version: '0.250'
version: '0.251'
-
class: Dist::Zilla::Plugin::SetScriptShebang
name: '@Author::PERLANCAR/SetScriptShebang'
......@@ -339,9 +354,11 @@ x_Dist_Zilla:
config:
Dist::Zilla::Plugin::Test::Perl::Critic::Subset:
finder:
- '@Author::PERLANCAR/FileFinder::ByName PERLANCAR'
- ':ExecFiles'
- ':InstallModules'
- ':TestFiles'
name: '@Author::PERLANCAR/Test::Perl::Critic::Subset'
version: 3.001.003
version: 3.001.005
-
class: Dist::Zilla::Plugin::Test::Rinci
name: '@Author::PERLANCAR/Test::Rinci'
......@@ -369,7 +386,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'
......@@ -381,7 +398,7 @@ x_Dist_Zilla:
phase: test
type: requires
name: TestRequires
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::Prereqs
config:
......@@ -389,7 +406,7 @@ x_Dist_Zilla:
phase: runtime
type: requires
name: Prereqs
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::Prereqs
config:
......@@ -397,53 +414,54 @@ x_Dist_Zilla:
phase: develop
type: x_spec
name: DevelopX_spec
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExtraTestFiles'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':PerlExecFiles'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':AllFiles'
version: '6.012'
version: '6.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':NoFiles'
version: '6.012'
version: '6.014'
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: '0'
version: '6.012'
version: '6.014'
x_authority: cpan:PERLANCAR
x_generated_by_perl: v5.30.0
x_generated_by_perl: v5.30.2
x_serialization_backend: 'YAML::Tiny version 1.73'
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
x_static_install: 1
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.012.
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.014.
use strict;
use warnings;
......@@ -35,7 +35,7 @@ my %WriteMakefileArgs = (
"IPC::Open3" => 0,
"Test::More" => 0
},
"VERSION" => "0.006",
"VERSION" => "0.009",
"test" => {
"TESTS" => "t/*.t"
}
......
......@@ -2,8 +2,8 @@ NAME
Test::Regexp::Pattern - Test Regexp::Pattern patterns
VERSION
This document describes version 0.006 of Test::Regexp::Pattern (from
Perl distribution Test-Regexp-Pattern), released on 2020-01-04.
This document describes version 0.009 of Test::Regexp::Pattern (from
Perl distribution Test-Regexp-Pattern), released on 2021-07-21.
SYNOPSIS
To check all regexp patterns in a module:
......@@ -23,11 +23,11 @@ SYNOPSIS
DESCRIPTION
This module performs various checks on a module's Regexp::Pattern
patterns. It is recommended that you include something like
patterns. It is recommended that you include something like the above
"release-regexp-pattern.t" in your distribution if you add regexp
patterns to your code. If you use Dist::Zilla to build your
distribution, there is [Regexp::Pattern] which automatically adds a
release test file for this during build.
distribution, there is a [Regexp::Pattern] plugin which automatically
adds this release test file during build.
ACKNOWLEDGEMENTS
Some code taken from Test::Pod::Coverage by Andy Lester.
......@@ -75,7 +75,7 @@ AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020, 2018 by perlancar@cpan.org.
This software is copyright (c) 2021, 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.
......
version=0.006
version=0.009
name=Test-Regexp-Pattern
[@Author::PERLANCAR]
:version=0.604
[Prereqs / TestRequires]
......@@ -21,4 +22,3 @@ Test::More=0
-phase=develop
-relationship=x_spec
Regexp::Pattern=0.2.7
......@@ -3,9 +3,9 @@
package Test::Regexp::Pattern;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2020-01-04'; # DATE
our $DATE = '2021-07-21'; # DATE
our $DIST = 'Test-Regexp-Pattern'; # DIST
our $VERSION = '0.006'; # VERSION
our $VERSION = '0.009'; # VERSION
use 5.010001;
use strict 'subs', 'vars';
......@@ -31,10 +31,17 @@ sub import {
}
sub _test_regexp_pattern {
my ($re, $fqname, $opts) = @_;
my ($re, $parent, $fqname, $opts) = @_;
my $ok = 1;
GENERAL: {
my $dh;
eval { $dh = Hash::DefHash->new($re, parent=>$parent); 1 };
my $eval_err = $@;
$Test->ok(!$eval_err, "Must be a valid defhash") or do {
$Test->diag("error in defhash check: $eval_err");
$ok = 0;
};
$Test->ok(($re->{pat} xor $re->{gen}), "Must declare pat OR gen but not both") or $ok = 0;
}
......@@ -47,7 +54,9 @@ sub _test_regexp_pattern {
$Test->subtest(
"example #$i" .
($eg->{name} ? " ($eg->{name})" :
($eg->{summary} ? " ($eg->{summary})" : "")),
($eg->{summary} ? " ($eg->{summary})" :
(defined $eg->{str} ? " (str $eg->{str})" :
""))),
sub {
$Test->ok(defined($eg->{str}), 'example provides string to match') or do {
$ok = 0;
......@@ -147,14 +156,15 @@ sub regexp_patterns_in_module_ok {
goto L1;
}
my $dh = defhash(\%{ "$module\::RE" });
my $RE = \%{ "$module\::RE" };
my $dh = defhash($RE);
for my $name ($dh->props) {
my $re = ${"$module\::RE"}{$name};
my $re = $RE->{$name};
$has_tests++;
$Test->subtest(
"pattern $prefix$name",
sub {
_test_regexp_pattern($re, "$prefix$name", \%opts) or $ok = 0;
_test_regexp_pattern($re, $RE, "$prefix$name", \%opts) or $ok = 0;
},
) or $ok = 0;
}
......@@ -269,7 +279,7 @@ Test::Regexp::Pattern - Test Regexp::Pattern patterns
=head1 VERSION
This document describes version 0.006 of Test::Regexp::Pattern (from Perl distribution Test-Regexp-Pattern), released on 2020-01-04.
This document describes version 0.009 of Test::Regexp::Pattern (from Perl distribution Test-Regexp-Pattern), released on 2021-07-21.
=head1 SYNOPSIS
......@@ -290,11 +300,11 @@ Alternatively, you can check all regexp patterns in all modules in a distro:
=head1 DESCRIPTION
This module performs various checks on a module's L<Regexp::Pattern> patterns.
It is recommended that you include something like C<release-regexp-pattern.t> in
your distribution if you add regexp patterns to your code. If you use
L<Dist::Zilla> to build your distribution, there is
L<[Regexp::Pattern]|Dist::Zilla::Plugin::Regexp::Pattern> which automatically
adds a release test file for this during build.
It is recommended that you include something like the above
C<release-regexp-pattern.t> in your distribution if you add regexp patterns to
your code. If you use L<Dist::Zilla> to build your distribution, there is a
L<[Regexp::Pattern]|Dist::Zilla::Plugin::Regexp::Pattern> plugin which
automatically adds this release test file during build.
=for Pod::Coverage ^(all_modules)$
......@@ -356,7 +366,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2020, 2018 by perlancar@cpan.org.
This software is copyright (c) 2021, 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.
......
#!perl
our $DATE = '2020-01-04'; # DATE
our $VERSION = '0.006'; # VERSION
our $DATE = '2021-07-21'; # DATE
our $VERSION = '0.009'; # 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.006 of test-regexp-pattern (from Perl distribution Test-Regexp-Pattern), released on 2020-01-04.
This document describes version 0.009 of test-regexp-pattern (from Perl distribution Test-Regexp-Pattern), released on 2021-07-21.
=head1 SYNOPSIS
......@@ -89,7 +89,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2020, 2018 by perlancar@cpan.org.
This software is copyright (c) 2021, 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.
......
......@@ -11,7 +11,7 @@ BEGIN {
use strict;
use warnings;
# this test was generated with Dist::Zilla::Plugin::Test::Perl::Critic::Subset 3.001.003
# this test was generated with Dist::Zilla::Plugin::Test::Perl::Critic::Subset 3.001.005
use Test::Perl::Critic (-profile => "") x!! -e "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment