summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregor herrmann <gregoa@debian.org>2018-11-25 17:58:52 +0100
committergregor herrmann <gregoa@debian.org>2018-11-25 17:58:52 +0100
commita37d86ae05885c547291ccddc7d9fe4fd4f9b3ab (patch)
tree66845816251632537b0a22a9331225de24e81e8a
parentd6f76c49dde9d6a039829bad5d5dd2b247a6e404 (diff)
parent5ed3109efb80f9b1bca79f0cae4534e5d69c7cf8 (diff)
Update upstream source from tag 'upstream/0.310'
Update to upstream version '0.310' with Debian dir 49063e3e94e7ec05a30c5b668e08cef886d850e8
-rw-r--r--Changes6
-rw-r--r--LICENSE6
-rw-r--r--MANIFEST3
-rw-r--r--META.json204
-rw-r--r--META.yml189
-rw-r--r--Makefile.PL8
-rw-r--r--README99
-rw-r--r--dist.ini6
-rw-r--r--lib/Perinci/Object.pm10
-rw-r--r--lib/Perinci/Object/EnvResult.pm8
-rw-r--r--lib/Perinci/Object/EnvResultMulti.pm19
-rw-r--r--lib/Perinci/Object/EnvResultTable.pm8
-rw-r--r--lib/Perinci/Object/Function.pm8
-rw-r--r--lib/Perinci/Object/Metadata.pm8
-rw-r--r--lib/Perinci/Object/Package.pm8
-rw-r--r--lib/Perinci/Object/ResMeta.pm8
-rw-r--r--lib/Perinci/Object/Variable.pm8
-rw-r--r--t/00-compile.t12
-rw-r--r--t/author-critic.t15
19 files changed, 380 insertions, 253 deletions
diff --git a/Changes b/Changes
index 50f5746..efc990a 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,9 @@
+0.310 2018-10-18 (PERLANCAR)
+
+ - [Bugfix] envresmulti(): If all statuses are 304, return final
+ status as 304 instead of 200.
+
+
0.30 2017-02-03 (PERLANCAR)
- EnvResultMulti: Allow add_result() to override status/message
diff --git a/LICENSE b/LICENSE
index 43482f3..c956c4d 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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) 2017 by perlancar@cpan.org.
+This software is Copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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) 2017 by perlancar@cpan.org.
+This software is Copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org.
This is free software, licensed under:
diff --git a/MANIFEST b/MANIFEST
index ac36362..0f1abfd 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -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.009.
Changes
LICENSE
MANIFEST
@@ -24,6 +24,7 @@ t/Metadata.t
t/Package.t
t/ResMeta.t
t/Variable.t
+t/author-critic.t
t/author-pod-coverage.t
t/author-pod-syntax.t
weaver.ini
diff --git a/META.json b/META.json
index 1b272ae..b85ff04 100644
--- a/META.json
+++ b/META.json
@@ -4,7 +4,7 @@
"perlancar <perlancar@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150010",
+ "generated_by" : "Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
@@ -22,6 +22,7 @@
"develop" : {
"requires" : {
"Pod::Coverage::TrustPod" : "0",
+ "Test::Perl::Critic" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08"
},
@@ -34,7 +35,7 @@
},
"runtime" : {
"requires" : {
- "Exporter" : "0",
+ "Exporter" : "5.57",
"parent" : "0",
"perl" : "5.010001",
"strict" : "0",
@@ -63,10 +64,10 @@
"web" : "https://github.com/perlancar/perl-Perinci-Object"
}
},
- "version" : "0.30",
+ "version" : "0.310",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.024000"
+ "version" : "5.026000"
},
"plugins" : [
{
@@ -83,52 +84,52 @@
}
},
"name" : "@Author::PERLANCAR/@Filter/GatherDir",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@Author::PERLANCAR/@Filter/PruneCruft",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@Author::PERLANCAR/@Filter/ManifestSkip",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@Author::PERLANCAR/@Filter/MetaYAML",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@Author::PERLANCAR/@Filter/License",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@Author::PERLANCAR/@Filter/PodCoverageTests",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@Author::PERLANCAR/@Filter/PodSyntaxTests",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@Author::PERLANCAR/@Filter/ExtraTests",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Author::PERLANCAR/@Filter/ExecDir",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Author::PERLANCAR/@Filter/ShareDir",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
@@ -138,47 +139,52 @@
}
},
"name" : "@Author::PERLANCAR/@Filter/MakeMaker",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Author::PERLANCAR/@Filter/Manifest",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@Author::PERLANCAR/@Filter/ConfirmRelease",
- "version" : "6.008"
+ "version" : "6.009"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ExecDir",
+ "name" : "@Author::PERLANCAR/ExecDir script",
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::PERLANCAR::BeforeBuild",
"name" : "@Author::PERLANCAR/PERLANCAR::BeforeBuild",
- "version" : "0.54"
+ "version" : "0.593"
},
{
"class" : "Dist::Zilla::Plugin::Rinci::AbstractFromMeta",
"name" : "@Author::PERLANCAR/Rinci::AbstractFromMeta",
- "version" : "0.09"
+ "version" : "0.10"
},
{
"class" : "Dist::Zilla::Plugin::PodnameFromFilename",
"name" : "@Author::PERLANCAR/PodnameFromFilename",
- "version" : "0.01"
+ "version" : "0.02"
},
{
"class" : "Dist::Zilla::Plugin::PERLANCAR::EnsurePrereqToSpec",
"name" : "@Author::PERLANCAR/PERLANCAR::EnsurePrereqToSpec",
- "version" : "0.04"
+ "version" : "0.060"
},
{
"class" : "Dist::Zilla::Plugin::PERLANCAR::MetaResources",
"name" : "@Author::PERLANCAR/PERLANCAR::MetaResources",
- "version" : "0.03"
+ "version" : "0.040"
},
{
"class" : "Dist::Zilla::Plugin::CheckChangeLog",
"name" : "@Author::PERLANCAR/CheckChangeLog",
- "version" : "0.02"
+ "version" : "0.05"
},
{
"class" : "Dist::Zilla::Plugin::CheckMetaResources",
@@ -186,6 +192,27 @@
"version" : "0.001"
},
{
+ "class" : "Dist::Zilla::Plugin::CheckSelfDependency",
+ "config" : {
+ "Dist::Zilla::Plugin::CheckSelfDependency" : {
+ "finder" : [
+ ":InstallModules"
+ ]
+ },
+ "Dist::Zilla::Role::ModuleMetadata" : {
+ "Module::Metadata" : "1.000033",
+ "version" : "0.006"
+ }
+ },
+ "name" : "@Author::PERLANCAR/CheckSelfDependency",
+ "version" : "0.011"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::CopyrightYearFromGit",
+ "name" : "@Author::PERLANCAR/CopyrightYearFromGit",
+ "version" : "0.003"
+ },
+ {
"class" : "Dist::Zilla::Plugin::IfBuilt",
"name" : "@Author::PERLANCAR/IfBuilt",
"version" : "0.03"
@@ -193,17 +220,12 @@
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@Author::PERLANCAR/MetaJSON",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Author::PERLANCAR/MetaConfig",
- "version" : "6.008"
- },
- {
- "class" : "Dist::Zilla::Plugin::GenShellCompletion",
- "name" : "@Author::PERLANCAR/GenShellCompletion",
- "version" : "0.11"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::Authority",
@@ -237,67 +259,67 @@
{
"class" : "Pod::Weaver::Plugin::EnsurePod5",
"name" : "@CorePrep/EnsurePod5",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Plugin::H1Nester",
"name" : "@CorePrep/H1Nester",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Name",
"name" : "@Author::PERLANCAR/Name",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Version",
"name" : "@Author::PERLANCAR/Version",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Region",
"name" : "@Author::PERLANCAR/prelude",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "SYNOPSIS",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "DESCRIPTION",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "OVERVIEW",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "ATTRIBUTES",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "METHODS",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "FUNCTIONS",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Leftovers",
"name" : "@Author::PERLANCAR/Leftovers",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Region",
"name" : "@Author::PERLANCAR/postlude",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Completion::GetoptLongComplete",
@@ -332,17 +354,17 @@
{
"class" : "Pod::Weaver::Section::Authors",
"name" : "@Author::PERLANCAR/Authors",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Section::Legal",
"name" : "@Author::PERLANCAR/Legal",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Plugin::Rinci",
"name" : "@Author::PERLANCAR/Rinci",
- "version" : "0.76"
+ "version" : "0.77"
},
{
"class" : "Pod::Weaver::Plugin::AppendPrepend",
@@ -352,17 +374,17 @@
{
"class" : "Pod::Weaver::Plugin::EnsureUniqueSections",
"name" : "@Author::PERLANCAR/EnsureUniqueSections",
- "version" : "0.121550"
+ "version" : "0.163250"
},
{
"class" : "Pod::Weaver::Plugin::SingleEncoding",
"name" : "@Author::PERLANCAR/SingleEncoding",
- "version" : "4.013"
+ "version" : "4.015"
},
{
"class" : "Pod::Weaver::Plugin::PERLANCAR::SortSections",
"name" : "@Author::PERLANCAR/PERLANCAR::SortSections",
- "version" : "0.05"
+ "version" : "0.06"
}
]
}
@@ -373,17 +395,17 @@
{
"class" : "Dist::Zilla::Plugin::PruneFiles",
"name" : "@Author::PERLANCAR/PruneFiles",
- "version" : "6.008"
+ "version" : "6.009"
},
{
- "class" : "Dist::Zilla::Plugin::ReadmeFromPod",
- "name" : "@Author::PERLANCAR/ReadmeFromPod",
- "version" : "0.35"
+ "class" : "Dist::Zilla::Plugin::Pod2Readme",
+ "name" : "@Author::PERLANCAR/Pod2Readme",
+ "version" : "0.004"
},
{
"class" : "Dist::Zilla::Plugin::Rinci::AddPrereqs",
"name" : "@Author::PERLANCAR/Rinci::AddPrereqs",
- "version" : "0.13"
+ "version" : "0.142"
},
{
"class" : "Dist::Zilla::Plugin::Rinci::AddToDb",
@@ -393,7 +415,7 @@
{
"class" : "Dist::Zilla::Plugin::Rinci::Validate",
"name" : "@Author::PERLANCAR/Rinci::Validate",
- "version" : "0.23"
+ "version" : "0.24"
},
{
"class" : "Dist::Zilla::Plugin::SetScriptShebang",
@@ -416,11 +438,17 @@
"script_finder" : [
":PerlExecFiles"
],
- "skips" : []
+ "skips" : [],
+ "switch" : []
}
},
"name" : "@Author::PERLANCAR/Test::Compile",
- "version" : "2.054"
+ "version" : "2.056"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Perl::Critic",
+ "name" : "@Author::PERLANCAR/Test::Perl::Critic",
+ "version" : "3.001"
},
{
"class" : "Dist::Zilla::Plugin::Test::Rinci",
@@ -428,29 +456,40 @@
"version" : "0.03"
},
{
- "class" : "Dist::Zilla::Plugin::UploadToCPAN::WWWPAUSESimple",
- "name" : "@Author::PERLANCAR/UploadToCPAN::WWWPAUSESimple",
- "version" : "0.04"
+ "class" : "Dist::Zilla::Plugin::StaticInstall",
+ "config" : {
+ "Dist::Zilla::Plugin::StaticInstall" : {
+ "dry_run" : 0,
+ "mode" : "on"
+ }
+ },
+ "name" : "@Author::PERLANCAR/StaticInstall",
+ "version" : "0.010"
},
{
"class" : "Dist::Zilla::Plugin::EnsureSQLSchemaVersionedTest",
"name" : "@Author::PERLANCAR/EnsureSQLSchemaVersionedTest",
- "version" : "0.02"
+ "version" : "0.03"
},
{
- "class" : "Dist::Zilla::Plugin::Acme::CPANLists::Blacklist",
- "name" : "@Author::PERLANCAR/Acme::CPANLists::Blacklist",
- "version" : "0.02"
+ "class" : "Dist::Zilla::Plugin::Acme::CPANModules::Blacklist",
+ "name" : "@Author::PERLANCAR/Acme::CPANModules::Blacklist",
+ "version" : "0.001"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs::EnsureVersion",
"name" : "@Author::PERLANCAR/Prereqs::EnsureVersion",
- "version" : "0.01"
+ "version" : "0.050"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs::CheckCircular",
"name" : "@Author::PERLANCAR/Prereqs::CheckCircular",
- "version" : "0.003"
+ "version" : "0.006"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::UploadToCPAN::WWWPAUSESimple",
+ "name" : "@Author::PERLANCAR/UploadToCPAN::WWWPAUSESimple",
+ "version" : "0.04"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -461,7 +500,7 @@
}
},
"name" : "TestRequires",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -472,7 +511,7 @@
}
},
"name" : "Prereqs",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -483,7 +522,7 @@
}
},
"name" : "DevelopX_spec",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -494,57 +533,57 @@
}
},
"name" : "DevelopX_copypaste",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExtraTestFiles",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":PerlExecFiles",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":AllFiles",
- "version" : "6.008"
+ "version" : "6.009"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":NoFiles",
- "version" : "6.008"
+ "version" : "6.009"
}
],
"zilla" : {
@@ -552,10 +591,11 @@
"config" : {
"is_trial" : 0
},
- "version" : "6.008"
+ "version" : "6.009"
}
},
"x_authority" : "cpan:PERLANCAR",
- "x_serialization_backend" : "Cpanel::JSON::XS version 3.0213"
+ "x_serialization_backend" : "Cpanel::JSON::XS version 3.0233",
+ "x_static_install" : 1
}
diff --git a/META.yml b/META.yml
index d95a831..94b13ae 100644
--- a/META.yml
+++ b/META.yml
@@ -11,14 +11,14 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Dist::Zilla version 6.009, 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: Perinci-Object
requires:
- Exporter: '0'
+ Exporter: '5.57'
parent: '0'
perl: '5.010001'
strict: '0'
@@ -27,10 +27,10 @@ resources:
bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object
homepage: https://metacpan.org/release/Perinci-Object
repository: git://github.com/perlancar/perl-Perinci-Object.git
-version: '0.30'
+version: '0.310'
x_Dist_Zilla:
perl:
- version: '5.024000'
+ version: '5.026000'
plugins:
-
class: Dist::Zilla::Plugin::GatherDir
@@ -44,102 +44,117 @@ x_Dist_Zilla:
prune_directory: []
root: .
name: '@Author::PERLANCAR/@Filter/GatherDir'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@Author::PERLANCAR/@Filter/PruneCruft'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@Author::PERLANCAR/@Filter/ManifestSkip'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@Author::PERLANCAR/@Filter/MetaYAML'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::License
name: '@Author::PERLANCAR/@Filter/License'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@Author::PERLANCAR/@Filter/PodCoverageTests'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@Author::PERLANCAR/@Filter/PodSyntaxTests'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@Author::PERLANCAR/@Filter/ExtraTests'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Author::PERLANCAR/@Filter/ExecDir'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Author::PERLANCAR/@Filter/ShareDir'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::MakeMaker
config:
Dist::Zilla::Role::TestRunner:
default_jobs: 1
name: '@Author::PERLANCAR/@Filter/MakeMaker'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Author::PERLANCAR/@Filter/Manifest'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@Author::PERLANCAR/@Filter/ConfirmRelease'
- version: '6.008'
+ version: '6.009'
+ -
+ class: Dist::Zilla::Plugin::ExecDir
+ name: '@Author::PERLANCAR/ExecDir script'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::PERLANCAR::BeforeBuild
name: '@Author::PERLANCAR/PERLANCAR::BeforeBuild'
- version: '0.54'
+ version: '0.593'
-
class: Dist::Zilla::Plugin::Rinci::AbstractFromMeta
name: '@Author::PERLANCAR/Rinci::AbstractFromMeta'
- version: '0.09'
+ version: '0.10'
-
class: Dist::Zilla::Plugin::PodnameFromFilename
name: '@Author::PERLANCAR/PodnameFromFilename'
- version: '0.01'
+ version: '0.02'
-
class: Dist::Zilla::Plugin::PERLANCAR::EnsurePrereqToSpec
name: '@Author::PERLANCAR/PERLANCAR::EnsurePrereqToSpec'
- version: '0.04'
+ version: '0.060'
-
class: Dist::Zilla::Plugin::PERLANCAR::MetaResources
name: '@Author::PERLANCAR/PERLANCAR::MetaResources'
- version: '0.03'
+ version: '0.040'
-
class: Dist::Zilla::Plugin::CheckChangeLog
name: '@Author::PERLANCAR/CheckChangeLog'
- version: '0.02'
+ version: '0.05'
-
class: Dist::Zilla::Plugin::CheckMetaResources
name: '@Author::PERLANCAR/CheckMetaResources'
version: '0.001'
-
+ class: Dist::Zilla::Plugin::CheckSelfDependency
+ config:
+ Dist::Zilla::Plugin::CheckSelfDependency:
+ finder:
+ - ':InstallModules'
+ Dist::Zilla::Role::ModuleMetadata:
+ Module::Metadata: '1.000033'
+ version: '0.006'
+ name: '@Author::PERLANCAR/CheckSelfDependency'
+ version: '0.011'
+ -
+ class: Dist::Zilla::Plugin::CopyrightYearFromGit
+ name: '@Author::PERLANCAR/CopyrightYearFromGit'
+ version: '0.003'
+ -
class: Dist::Zilla::Plugin::IfBuilt
name: '@Author::PERLANCAR/IfBuilt'
version: '0.03'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@Author::PERLANCAR/MetaJSON'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@Author::PERLANCAR/MetaConfig'
- version: '6.008'
- -
- class: Dist::Zilla::Plugin::GenShellCompletion
- name: '@Author::PERLANCAR/GenShellCompletion'
- version: '0.11'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::Authority
name: '@Author::PERLANCAR/Authority'
@@ -167,55 +182,55 @@ x_Dist_Zilla:
-
class: Pod::Weaver::Plugin::EnsurePod5
name: '@CorePrep/EnsurePod5'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Plugin::H1Nester
name: '@CorePrep/H1Nester'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Name
name: '@Author::PERLANCAR/Name'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Version
name: '@Author::PERLANCAR/Version'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Region
name: '@Author::PERLANCAR/prelude'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Generic
name: SYNOPSIS
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Generic
name: DESCRIPTION
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Generic
name: OVERVIEW
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Collect
name: ATTRIBUTES
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Collect
name: METHODS
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Collect
name: FUNCTIONS
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Leftovers
name: '@Author::PERLANCAR/Leftovers'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Region
name: '@Author::PERLANCAR/postlude'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Completion::GetoptLongComplete
name: '@Author::PERLANCAR/Completion::GetoptLongComplete'
@@ -243,15 +258,15 @@ x_Dist_Zilla:
-
class: Pod::Weaver::Section::Authors
name: '@Author::PERLANCAR/Authors'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Section::Legal
name: '@Author::PERLANCAR/Legal'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Plugin::Rinci
name: '@Author::PERLANCAR/Rinci'
- version: '0.76'
+ version: '0.77'
-
class: Pod::Weaver::Plugin::AppendPrepend
name: '@Author::PERLANCAR/AppendPrepend'
@@ -259,29 +274,29 @@ x_Dist_Zilla:
-
class: Pod::Weaver::Plugin::EnsureUniqueSections
name: '@Author::PERLANCAR/EnsureUniqueSections'
- version: '0.121550'
+ version: '0.163250'
-
class: Pod::Weaver::Plugin::SingleEncoding
name: '@Author::PERLANCAR/SingleEncoding'
- version: '4.013'
+ version: '4.015'
-
class: Pod::Weaver::Plugin::PERLANCAR::SortSections
name: '@Author::PERLANCAR/PERLANCAR::SortSections'
- version: '0.05'
+ version: '0.06'
name: '@Author::PERLANCAR/PodWeaver'
version: '4.008'
-
class: Dist::Zilla::Plugin::PruneFiles
name: '@Author::PERLANCAR/PruneFiles'
- version: '6.008'
+ version: '6.009'
-
- class: Dist::Zilla::Plugin::ReadmeFromPod
- name: '@Author::PERLANCAR/ReadmeFromPod'
- version: '0.35'
+ class: Dist::Zilla::Plugin::Pod2Readme
+ name: '@Author::PERLANCAR/Pod2Readme'
+ version: '0.004'
-
class: Dist::Zilla::Plugin::Rinci::AddPrereqs
name: '@Author::PERLANCAR/Rinci::AddPrereqs'
- version: '0.13'
+ version: '0.142'
-
class: Dist::Zilla::Plugin::Rinci::AddToDb
name: '@Author::PERLANCAR/Rinci::AddToDb'
@@ -289,7 +304,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::Rinci::Validate
name: '@Author::PERLANCAR/Rinci::Validate'
- version: '0.23'
+ version: '0.24'
-
class: Dist::Zilla::Plugin::SetScriptShebang
name: '@Author::PERLANCAR/SetScriptShebang'
@@ -309,32 +324,45 @@ x_Dist_Zilla:
script_finder:
- ':PerlExecFiles'
skips: []
+ switch: []
name: '@Author::PERLANCAR/Test::Compile'
- version: '2.054'
+ version: '2.056'
+ -
+ class: Dist::Zilla::Plugin::Test::Perl::Critic
+ name: '@Author::PERLANCAR/Test::Perl::Critic'
+ version: '3.001'
-
class: Dist::Zilla::Plugin::Test::Rinci
name: '@Author::PERLANCAR/Test::Rinci'
version: '0.03'
-
- class: Dist::Zilla::Plugin::UploadToCPAN::WWWPAUSESimple
- name: '@Author::PERLANCAR/UploadToCPAN::WWWPAUSESimple'
- version: '0.04'
+ class: Dist::Zilla::Plugin::StaticInstall
+ config:
+ Dist::Zilla::Plugin::StaticInstall:
+ dry_run: 0
+ mode: on
+ name: '@Author::PERLANCAR/StaticInstall'
+ version: '0.010'
-
class: Dist::Zilla::Plugin::EnsureSQLSchemaVersionedTest
name: '@Author::PERLANCAR/EnsureSQLSchemaVersionedTest'
- version: '0.02'
+ version: '0.03'
-
- class: Dist::Zilla::Plugin::Acme::CPANLists::Blacklist
- name: '@Author::PERLANCAR/Acme::CPANLists::Blacklist'
- version: '0.02'
+ class: Dist::Zilla::Plugin::Acme::CPANModules::Blacklist
+ name: '@Author::PERLANCAR/Acme::CPANModules::Blacklist'
+ version: '0.001'
-
class: Dist::Zilla::Plugin::Prereqs::EnsureVersion
name: '@Author::PERLANCAR/Prereqs::EnsureVersion'
- version: '0.01'
+ version: '0.050'
-
class: Dist::Zilla::Plugin::Prereqs::CheckCircular
name: '@Author::PERLANCAR/Prereqs::CheckCircular'
- version: '0.003'
+ version: '0.006'
+ -
+ class: Dist::Zilla::Plugin::UploadToCPAN::WWWPAUSESimple
+ name: '@Author::PERLANCAR/UploadToCPAN::WWWPAUSESimple'
+ version: '0.04'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -342,7 +370,7 @@ x_Dist_Zilla:
phase: test
type: requires
name: TestRequires
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -350,7 +378,7 @@ x_Dist_Zilla:
phase: runtime
type: requires
name: Prereqs
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -358,7 +386,7 @@ x_Dist_Zilla:
phase: develop
type: x_spec
name: DevelopX_spec
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -366,51 +394,52 @@ x_Dist_Zilla:
phase: develop
type: x_copypaste
name: DevelopX_copypaste
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExtraTestFiles'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':PerlExecFiles'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':AllFiles'
- version: '6.008'
+ version: '6.009'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':NoFiles'
- version: '6.008'
+ version: '6.009'
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: '0'
- version: '6.008'
+ version: '6.009'
x_authority: cpan:PERLANCAR
-x_serialization_backend: 'YAML::Tiny version 1.69'
+x_serialization_backend: 'YAML::Tiny version 1.70'
+x_static_install: 1
diff --git a/Makefile.PL b/Makefile.PL
index 2cec9d5..0aa3ce1 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.009.
use strict;
use warnings;
@@ -17,7 +17,7 @@ my %WriteMakefileArgs = (
"MIN_PERL_VERSION" => "5.010001",
"NAME" => "Perinci::Object",
"PREREQ_PM" => {
- "Exporter" => 0,
+ "Exporter" => "5.57",
"parent" => 0,
"strict" => 0,
"warnings" => 0
@@ -29,7 +29,7 @@ my %WriteMakefileArgs = (
"Test::Exception" => 0,
"Test::More" => "0.98"
},
- "VERSION" => "0.30",
+ "VERSION" => "0.310",
"test" => {
"TESTS" => "t/*.t"
}
@@ -37,7 +37,7 @@ my %WriteMakefileArgs = (
my %FallbackPrereqs = (
- "Exporter" => 0,
+ "Exporter" => "5.57",
"File::Spec" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
diff --git a/README b/README
index 8a9e1d1..34a1383 100644
--- a/README
+++ b/README
@@ -1,11 +1,17 @@
-SYNOPSIS
+NAME
+ Perinci::Object - Object-oriented interface for Rinci metadata
+
+VERSION
+ This document describes version 0.310 of Perinci::Object (from Perl
+ distribution Perinci-Object), released on 2018-10-18.
+SYNOPSIS
use Perinci::Object; # automatically exports risub(), rivar(), ripkg(),
# envres(), envresmulti(), envrestable(), riresmeta()
use Data::Dump; # for dd()
-
+
# OO interface to function metadata.
-
+
my $risub = risub {
v => 1.1,
summary => 'Calculate foo and bar',
@@ -21,53 +27,53 @@ SYNOPSIS
$risub->feature('foo'), # undef
$risub->langprop('summary'), # 'Calculate foo and bar'
$risub->langprop({lang=>'id_ID'}, 'summary'), # 'Menghitung foo dan bar'
-
+
# setting arg and property
$risub->arg('a3', 'array'); # will actually fail for 1.0 metadata
$risub->feature('foo', 2); # ditto
-
+
# OO interface to variable metadata
-
+
my $rivar = rivar { ... };
-
+
# OO interface to package metadata
-
+
my $ripkg = ripkg { ... };
-
+
# OO interface to enveloped result
-
+
my $envres = envres [200, "OK", [1, 2, 3]];
dd $envres->is_success, # 1
$envres->status, # 200
$envres->message, # "OK"
$envres->result, # [1, 2, 3]
$envres->meta; # undef
-
+
# setting status, message, result, extra
$envres->status(404);
$envres->message('Not found');
$envres->result(undef);
$envres->meta({errno=>-100});
-
+
# OO interface to function/method result metadata
my $riresmeta = riresmeta { ... };
-
+
# an example of using envresmulti()
sub myfunc {
...
-
+
my $envres = envresmulti();
-
+
# add result for each item
$envres->add_result(200, "OK", {item_id=>1});
$envres->add_result(202, "OK", {item_id=>2, note=>"blah"});
$envres->add_result(404, "Not found", {item_id=>3});
...
-
+
# finally, return the result
return $envres->as_struct;
}
-
+
# an example of using envrestable()
sub myfunc {
...
@@ -79,54 +85,67 @@ SYNOPSIS
}
DESCRIPTION
-
- Rinci works using pure data structures, but sometimes it's convenient
- to have an object-oriented interface (wrapper) for those data. This
- module provides just that.
+ Rinci works using pure data structures, but sometimes it's convenient to
+ have an object-oriented interface (wrapper) for those data. This module
+ provides just that.
FUNCTIONS
-
- rimeta $meta => OBJECT
-
+ rimeta $meta => OBJECT
Exported by default. A shortcut for
Perinci::Object::Metadata->new($meta).
- risub $meta => OBJECT
-
+ risub $meta => OBJECT
Exported by default. A shortcut for
Perinci::Object::Function->new($meta).
- rivar $meta => OBJECT
-
+ rivar $meta => OBJECT
Exported by default. A shortcut for
Perinci::Object::Variable->new($meta).
- ripkg $meta => OBJECT
-
+ ripkg $meta => OBJECT
Exported by default. A shortcut for
Perinci::Object::Package->new($meta).
- envres $res => OBJECT
-
+ envres $res => OBJECT
Exported by default. A shortcut for
Perinci::Object::EnvResult->new($res).
- envresmulti $res => OBJECT
-
+ envresmulti $res => OBJECT
Exported by default. A shortcut for
Perinci::Object::EnvResultMulti->new($res).
- envrestable $res => OBJECT
-
+ envrestable $res => OBJECT
Exported by default. A shortcut for
Perinci::Object::EnvResultTable->new($res).
- riresmeta $resmeta => OBJECT
+ riresmeta $resmeta => OBJECT
+ Exported by default. A shortcut for Perinci::Object::ResMeta->new($res).
- Exported by default. A shortcut for
- Perinci::Object::ResMeta->new($res).
+HOMEPAGE
+ Please visit the project's homepage at
+ <https://metacpan.org/release/Perinci-Object>.
-SEE ALSO
+SOURCE
+ Source repository is at
+ <https://github.com/perlancar/perl-Perinci-Object>.
+
+BUGS
+ Please report any bugs or feature requests on the bugtracker website
+ <https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object>
+
+ 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
Rinci
+AUTHOR
+ perlancar <perlancar@cpan.org>
+
+COPYRIGHT AND LICENSE
+ This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012,
+ 2011 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/dist.ini b/dist.ini
index 2a0c169..22e8b9d 100644
--- a/dist.ini
+++ b/dist.ini
@@ -1,9 +1,9 @@
-version=0.30
+version=0.310
name=Perinci-Object
[@Author::PERLANCAR]
-:version=0.53
+:version=0.593
[Prereqs / TestRequires]
Test::Exception=0
@@ -14,7 +14,7 @@ perl=5.010001
parent=0
strict=0
warnings=0
-Exporter=0
+Exporter=5.57
[Prereqs / DevelopX_spec]
-phase=develop
diff --git a/lib/Perinci/Object.pm b/lib/Perinci/Object.pm
index 7b8c674..97975a3 100644
--- a/lib/Perinci/Object.pm
+++ b/lib/Perinci/Object.pm
@@ -1,7 +1,9 @@
+## no critic: (Modules::ProhibitAutomaticExportation)
+
package Perinci::Object;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010001;
use strict;
@@ -67,7 +69,7 @@ Perinci::Object - Object-oriented interface for Rinci metadata
=head1 VERSION
-This document describes version 0.30 of Perinci::Object (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 SYNOPSIS
@@ -215,7 +217,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/lib/Perinci/Object/EnvResult.pm b/lib/Perinci/Object/EnvResult.pm
index fed80f7..7639d1c 100644
--- a/lib/Perinci/Object/EnvResult.pm
+++ b/lib/Perinci/Object/EnvResult.pm
@@ -1,7 +1,7 @@
package Perinci::Object::EnvResult;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010;
use strict;
@@ -97,7 +97,7 @@ Perinci::Object::EnvResult - Represent enveloped result
=head1 VERSION
-This document describes version 0.30 of Perinci::Object::EnvResult (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object::EnvResult (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 SYNOPSIS
@@ -188,7 +188,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/lib/Perinci/Object/EnvResultMulti.pm b/lib/Perinci/Object/EnvResultMulti.pm
index 46c8a2b..d476843 100644
--- a/lib/Perinci/Object/EnvResultMulti.pm
+++ b/lib/Perinci/Object/EnvResultMulti.pm
@@ -1,7 +1,7 @@
package Perinci::Object::EnvResultMulti;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010;
use strict;
@@ -35,7 +35,16 @@ sub add_result {
${$self}->[0] = 207;
${$self}->[1] = "Partial success";
} else {
- ${$self}->[0] = 200;
+ my $overall_status = 200;
+ my %statuses;
+ for (@{ ${$self}->[3]{results} // []}) {
+ $statuses{ $_->{status} }++;
+ }
+ if (keys %statuses == 1) {
+ my @tmp = keys %statuses;
+ $overall_status = $tmp[0];
+ }
+ ${$self}->[0] = $overall_status;
${$self}->[1] = "All success";
}
} else {
@@ -59,7 +68,7 @@ Perinci::Object::EnvResultMulti - Represent enveloped result (multistatus)
=head1 VERSION
-This document describes version 0.30 of Perinci::Object::EnvResultMulti (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object::EnvResultMulti (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 SYNOPSIS
@@ -141,7 +150,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/lib/Perinci/Object/EnvResultTable.pm b/lib/Perinci/Object/EnvResultTable.pm
index ef8b335..821209a 100644
--- a/lib/Perinci/Object/EnvResultTable.pm
+++ b/lib/Perinci/Object/EnvResultTable.pm
@@ -1,7 +1,7 @@
package Perinci::Object::EnvResultTable;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010;
use strict;
@@ -30,7 +30,7 @@ Perinci::Object::EnvResultTable - Represent enveloped result (table)
=head1 VERSION
-This document describes version 0.30 of Perinci::Object::EnvResultTable (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object::EnvResultTable (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 SYNOPSIS
@@ -93,7 +93,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/lib/Perinci/Object/Function.pm b/lib/Perinci/Object/Function.pm
index 3f80c63..ca50a77 100644
--- a/lib/Perinci/Object/Function.pm
+++ b/lib/Perinci/Object/Function.pm
@@ -1,7 +1,7 @@
package Perinci::Object::Function;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010;
use strict;
@@ -77,7 +77,7 @@ Perinci::Object::Function - Represent function metadata
=head1 VERSION
-This document describes version 0.30 of Perinci::Object::Function (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object::Function (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 SYNOPSIS
@@ -159,7 +159,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/lib/Perinci/Object/Metadata.pm b/lib/Perinci/Object/Metadata.pm
index 700f160..3092ebb 100644
--- a/lib/Perinci/Object/Metadata.pm
+++ b/lib/Perinci/Object/Metadata.pm
@@ -1,7 +1,7 @@
package Perinci::Object::Metadata;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010;
use strict;
@@ -149,7 +149,7 @@ Perinci::Object::Metadata - Base class for Perinci::Object metadata classes
=head1 VERSION
-This document describes version 0.30 of Perinci::Object::Metadata (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object::Metadata (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 METHODS
@@ -230,7 +230,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/lib/Perinci/Object/Package.pm b/lib/Perinci/Object/Package.pm
index ae039e9..c07dc82 100644
--- a/lib/Perinci/Object/Package.pm
+++ b/lib/Perinci/Object/Package.pm
@@ -1,7 +1,7 @@
package Perinci::Object::Package;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010;
use strict;
@@ -26,7 +26,7 @@ Perinci::Object::Package - Represent package metadata
=head1 VERSION
-This document describes version 0.30 of Perinci::Object::Package (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object::Package (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 METHODS
@@ -56,7 +56,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/lib/Perinci/Object/ResMeta.pm b/lib/Perinci/Object/ResMeta.pm
index 088575f..0b55ac3 100644
--- a/lib/Perinci/Object/ResMeta.pm
+++ b/lib/Perinci/Object/ResMeta.pm
@@ -1,7 +1,7 @@
package Perinci::Object::ResMeta;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010;
use strict;
@@ -26,7 +26,7 @@ Perinci::Object::ResMeta - Represent function/method result metadata
=head1 VERSION
-This document describes version 0.30 of Perinci::Object::ResMeta (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object::ResMeta (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 METHODS
@@ -56,7 +56,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/lib/Perinci/Object/Variable.pm b/lib/Perinci/Object/Variable.pm
index 91e5196..90152da 100644
--- a/lib/Perinci/Object/Variable.pm
+++ b/lib/Perinci/Object/Variable.pm
@@ -1,7 +1,7 @@
package Perinci::Object::Variable;
-our $DATE = '2017-02-03'; # DATE
-our $VERSION = '0.30'; # VERSION
+our $DATE = '2018-10-18'; # DATE
+our $VERSION = '0.310'; # VERSION
use 5.010;
use strict;
@@ -26,7 +26,7 @@ Perinci::Object::Variable - Represent variable metadata
=head1 VERSION
-This document describes version 0.30 of Perinci::Object::Variable (from Perl distribution Perinci-Object), released on 2017-02-03.
+This document describes version 0.310 of Perinci::Object::Variable (from Perl distribution Perinci-Object), released on 2018-10-18.
=head1 METHODS
@@ -56,7 +56,7 @@ perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2017 by perlancar@cpan.org.
+This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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/00-compile.t b/t/00-compile.t
index 7fa8142..7a0ec71 100644
--- a/t/00-compile.t
+++ b/t/00-compile.t
@@ -2,7 +2,7 @@ use 5.006;
use strict;
use warnings;
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.056
use Test::More;
@@ -24,7 +24,9 @@ my @module_files = (
# no fake home requested
-my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib';
+my @switches = (
+ -d 'blib' ? '-Mblib' : '-Ilib',
+);
use File::Spec;
use IPC::Open3;
@@ -38,7 +40,11 @@ for my $lib (@module_files)
# see L<perlfaq8/How can I capture STDERR from an external command?>
my $stderr = IO::Handle->new;
- my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]");
+ diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} }
+ $^X, @switches, '-e', "require q[$lib]"))
+ if $ENV{PERL_COMPILE_TEST_DEBUG};
+
+ my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]");
binmode $stderr, ':crlf' if $^O eq 'MSWin32';
my @_warnings = <$stderr>;
waitpid($pid, 0);
diff --git a/t/author-critic.t b/t/author-critic.t
new file mode 100644
index 0000000..22becf1
--- /dev/null
+++ b/t/author-critic.t
@@ -0,0 +1,15 @@
+#!perl
+
+BEGIN {
+ unless ($ENV{AUTHOR_TESTING}) {
+ print qq{1..0 # SKIP these tests are for testing by the author\n};
+ exit
+ }
+}
+
+
+use strict;
+use warnings;
+
+use Test::Perl::Critic (-profile => "perlcritic.rc") x!! -e "perlcritic.rc";
+all_critic_ok();