diff options
author | gregor herrmann <gregoa@debian.org> | 2021-01-07 03:10:39 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2021-01-07 03:10:39 +0100 |
commit | f4d2ddd309a713afb452eea3cd780354919bc799 (patch) | |
tree | 42275038ef9f1146a906774db871a1303659cc6e | |
parent | 5ed3109efb80f9b1bca79f0cae4534e5d69c7cf8 (diff) | |
parent | 2f6e01f4815655b4a005d38dd24c0520cddf0172 (diff) |
New upstream version 0.311
-rw-r--r-- | Changes | 61 | ||||
-rw-r--r-- | LICENSE | 6 | ||||
-rw-r--r-- | MANIFEST | 2 | ||||
-rw-r--r-- | META.json | 137 | ||||
-rw-r--r-- | META.yml | 131 | ||||
-rw-r--r-- | Makefile.PL | 4 | ||||
-rw-r--r-- | README | 12 | ||||
-rw-r--r-- | dist.ini | 5 | ||||
-rw-r--r-- | lib/Perinci/Object.pm | 16 | ||||
-rw-r--r-- | lib/Perinci/Object/EnvResult.pm | 10 | ||||
-rw-r--r-- | lib/Perinci/Object/EnvResultMulti.pm | 42 | ||||
-rw-r--r-- | lib/Perinci/Object/EnvResultTable.pm | 10 | ||||
-rw-r--r-- | lib/Perinci/Object/Function.pm | 10 | ||||
-rw-r--r-- | lib/Perinci/Object/Metadata.pm | 10 | ||||
-rw-r--r-- | lib/Perinci/Object/Package.pm | 10 | ||||
-rw-r--r-- | lib/Perinci/Object/ResMeta.pm | 10 | ||||
-rw-r--r-- | lib/Perinci/Object/Variable.pm | 10 | ||||
-rw-r--r-- | t/00-compile.t | 4 | ||||
-rw-r--r-- | t/EnvResultMulti.t | 15 | ||||
-rw-r--r-- | t/author-critic.t | 12 |
20 files changed, 302 insertions, 215 deletions
@@ -1,16 +1,21 @@ -0.310 2018-10-18 (PERLANCAR) +0.311 2021-01-02 Released-By: PERLANCAR; Urgency: medium + + - envresmulti: Allow adding payload in add_result(). + + +0.310 2018-10-18 Released-By: PERLANCAR - [Bugfix] envresmulti(): If all statuses are 304, return final status as 304 instead of 200. -0.30 2017-02-03 (PERLANCAR) +0.30 2017-02-03 Released-By: PERLANCAR - EnvResultMulti: Allow add_result() to override status/message keys. -0.29 2016-12-28 (PERLANCAR) +0.29 2016-12-28 Released-By: PERLANCAR - No functional changes. @@ -18,26 +23,26 @@ copy-paste prereq relationship with x_copypaste. -0.28 2016-12-27 (PERLANCAR) +0.28 2016-12-27 Released-By: PERLANCAR - No functional changes. - [dist] Use _SPEC and _COPYPASTE prefixes for dependencies. -0.27 2016-12-26 (PERLANCAR) +0.27 2016-12-26 Released-By: PERLANCAR - Downgrade prereq String::Trim::More from RuntimeRequires to DevelopSuggests, copy-paste routine trim_blank_lines(). -0.26 2016-12-15 (PERLANCAR) +0.26 2016-12-15 Released-By: PERLANCAR - risub: Add method default_dry_run to check default dry-run mode (Rinci 1.1.83). -0.25 2016-11-21 (PERLANCAR) +0.25 2016-11-21 Released-By: PERLANCAR - [doc] Fix typo in Synopsis. @@ -45,7 +50,7 @@ shortcut to instantiate this class. -0.24 2015-09-03 (PERLANCAR) +0.24 2015-09-03 Released-By: PERLANCAR - No functional changes. @@ -54,25 +59,25 @@ requirement. -0.23 2015-09-03 (PERLANCAR) +0.23 2015-09-03 Released-By: PERLANCAR - Assume LANG=C will use the default en_US, this fixes lots of '{en_US ...}' marks on lots of dists using this. -0.22 2015-09-03 (PERLANCAR) +0.22 2015-09-03 Released-By: PERLANCAR - Mark requested language to aid debugging. -0.21 2014-12-11 (PERLANCAR) +0.21 2014-12-11 Released-By: PERLANCAR - No functional changes. - [ux] Add example of using riresmulti() in Synopsis. -0.20 2014-12-10 (PERLANCAR) +0.20 2014-12-10 Released-By: PERLANCAR - No functional changes. @@ -80,12 +85,12 @@ String::Trim::More. -0.19 2014-11-07 (PERLANCAR) +0.19 2014-11-07 Released-By: PERLANCAR - Regard status 304 as success. -0.18 2014-10-29 (PERLANCAR) +0.18 2014-10-29 Released-By: PERLANCAR - [Incompatible change] envresmulti(): change 'response' terminology to 'result' to follow Rinci 1.1.63, so now the method @@ -94,7 +99,7 @@ 'responses'. -0.17 2014-10-28 (PERLANCAR) +0.17 2014-10-28 Released-By: PERLANCAR [INCOMPATIBLE CHANGES] @@ -111,19 +116,19 @@ They all use langprop() under the hood. -0.16 2014-10-28 (PERLANCAR) +0.16 2014-10-28 Released-By: PERLANCAR - Add envresmulti() (Perinci::Object::EnvResultMulti). -0.15 2014-10-20 (PERLANCAR) +0.15 2014-10-20 Released-By: PERLANCAR - No functional changes. - Fix typo in test which caused CT failure reports. -0.14 2014-10-16 (PERLANCAR) +0.14 2014-10-16 Released-By: PERLANCAR - langprop(): Search PROP.alt.lang.xx in addition to PROP.alt.lang.xx_XX. @@ -131,43 +136,43 @@ - Rename module files. -0.13 2014-01-03 (SHARYANTO) +0.13 2014-01-03 Released-By: SHARYANTO - Trim language from locale env (e.g. "en_US.UTF-8" to "en_US") to avoid unnecessary mark. -0.12 2013-12-11 (SHARYANTO) +0.12 2013-12-11 Released-By: SHARYANTO - langprop() now observes LANG/LANGUAGE environment. -0.11 2012-08-29 (SHARYANTO) +0.11 2012-08-29 Released-By: SHARYANTO - function: Add features() and can_dry_run(). -0.10 2012-03-23 (SHARYANTO) +0.10 2012-03-23 Released-By: SHARYANTO - No functional changes. Resolve circular dependency problem with SHARYANTO-Utils by splitting SHARYANTO::String::Util to its own dist. [RT#75987, thanks Slaven] -0.09 2012-03-22 (SHARYANTO) +0.09 2012-03-22 Released-By: SHARYANTO - No functional changes. Try to work around dependency problem (some systems cannot find SHARYANTO::String::Util, new in SHARYANTO-Utils 0.16+). -0.08 2012-03-20 (SHARYANTO) +0.08 2012-03-20 Released-By: SHARYANTO - No functional changes. Fix Perl version dependency ('parent' requires 5.10.1). -0.07 2012-03-15 (SHARYANTO) +0.07 2012-03-15 Released-By: SHARYANTO [FIXES] @@ -179,14 +184,14 @@ - langprop(): rename option 'mark_fallback_text' to 'mark_different_lang'. -0.06 2012-03-15 (SHARYANTO) +0.06 2012-03-15 Released-By: SHARYANTO [ENHANCEMENTS] - Add 'rimeta'. -0.05 2012-03-15 (SHARYANTO) +0.05 2012-03-15 Released-By: SHARYANTO [INCOMPATIBLE CHANGES] @@ -200,7 +205,7 @@ - Add langprop() method. -0.04 2012-01-26 (SHARYANTO) +0.04 2012-01-26 Released-By: SHARYANTO - First release, rename from Sub-Spec-Object to Perinci-Object. Now follows Rinci (currently 1.1) specification instead of Sub::Spec 1.0 @@ -1,4 +1,4 @@ -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is Copyright (c) 2021, 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) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is Copyright (c) 2021, 2017, 2016, 2015, 2014, 2013, 2012, 2011 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.009. +# 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.009, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -30,7 +30,7 @@ "String::Trim::More" : "0.02" }, "x_spec" : { - "Rinci" : "v1.1.83" + "Rinci" : "v1.1.94" } }, "runtime" : { @@ -55,7 +55,7 @@ "release_status" : "stable", "resources" : { "bugtracker" : { - "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object" + "web" : "https://github.com/perlancar/perl-Perinci-Object/issues" }, "homepage" : "https://metacpan.org/release/Perinci-Object", "repository" : { @@ -64,13 +64,18 @@ "web" : "https://github.com/perlancar/perl-Perinci-Object" } }, - "version" : "0.310", + "version" : "0.311", "x_Dist_Zilla" : { "perl" : { - "version" : "5.026000" + "version" : "5.030000" }, "plugins" : [ { + "class" : "Dist::Zilla::Plugin::PERLANCAR::CheckPendingRelease", + "name" : "@Author::PERLANCAR/PERLANCAR::CheckPendingRelease", + "version" : "0.001" + }, + { "class" : "Dist::Zilla::Plugin::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { @@ -84,52 +89,52 @@ } }, "name" : "@Author::PERLANCAR/@Filter/GatherDir", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@Author::PERLANCAR/@Filter/PruneCruft", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::PERLANCAR/@Filter/ManifestSkip", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::PERLANCAR/@Filter/MetaYAML", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::PERLANCAR/@Filter/License", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@Author::PERLANCAR/@Filter/PodCoverageTests", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::PERLANCAR/@Filter/PodSyntaxTests", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ExtraTests", "name" : "@Author::PERLANCAR/@Filter/ExtraTests", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@Author::PERLANCAR/@Filter/ExecDir", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@Author::PERLANCAR/@Filter/ShareDir", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", @@ -139,27 +144,27 @@ } }, "name" : "@Author::PERLANCAR/@Filter/MakeMaker", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::PERLANCAR/@Filter/Manifest", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::PERLANCAR/@Filter/ConfirmRelease", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@Author::PERLANCAR/ExecDir script", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::PERLANCAR::BeforeBuild", "name" : "@Author::PERLANCAR/PERLANCAR::BeforeBuild", - "version" : "0.593" + "version" : "0.603" }, { "class" : "Dist::Zilla::Plugin::Rinci::AbstractFromMeta", @@ -179,7 +184,7 @@ { "class" : "Dist::Zilla::Plugin::PERLANCAR::MetaResources", "name" : "@Author::PERLANCAR/PERLANCAR::MetaResources", - "version" : "0.040" + "version" : "0.042" }, { "class" : "Dist::Zilla::Plugin::CheckChangeLog", @@ -200,7 +205,7 @@ ] }, "Dist::Zilla::Role::ModuleMetadata" : { - "Module::Metadata" : "1.000033", + "Module::Metadata" : "1.000036", "version" : "0.006" } }, @@ -210,7 +215,7 @@ { "class" : "Dist::Zilla::Plugin::CopyrightYearFromGit", "name" : "@Author::PERLANCAR/CopyrightYearFromGit", - "version" : "0.003" + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::IfBuilt", @@ -220,17 +225,17 @@ { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::PERLANCAR/MetaJSON", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::PERLANCAR/MetaConfig", - "version" : "6.009" + "version" : "6.012" }, { - "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", @@ -243,9 +248,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", @@ -364,7 +369,7 @@ { "class" : "Pod::Weaver::Plugin::Rinci", "name" : "@Author::PERLANCAR/Rinci", - "version" : "0.77" + "version" : "0.780" }, { "class" : "Pod::Weaver::Plugin::AppendPrepend", @@ -384,7 +389,7 @@ { "class" : "Pod::Weaver::Plugin::PERLANCAR::SortSections", "name" : "@Author::PERLANCAR/PERLANCAR::SortSections", - "version" : "0.06" + "version" : "0.082" } ] } @@ -395,7 +400,7 @@ { "class" : "Dist::Zilla::Plugin::PruneFiles", "name" : "@Author::PERLANCAR/PruneFiles", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Pod2Readme", @@ -405,17 +410,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.251" }, { "class" : "Dist::Zilla::Plugin::SetScriptShebang", @@ -443,17 +448,26 @@ } }, "name" : "@Author::PERLANCAR/Test::Compile", - "version" : "2.056" + "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" : [ + ":ExecFiles", + ":InstallModules", + ":TestFiles" + ] + } + }, + "name" : "@Author::PERLANCAR/Test::Perl::Critic::Subset", + "version" : "3.001.005" }, { "class" : "Dist::Zilla::Plugin::Test::Rinci", "name" : "@Author::PERLANCAR/Test::Rinci", - "version" : "0.03" + "version" : "0.040" }, { "class" : "Dist::Zilla::Plugin::StaticInstall", @@ -464,7 +478,7 @@ } }, "name" : "@Author::PERLANCAR/StaticInstall", - "version" : "0.010" + "version" : "0.012" }, { "class" : "Dist::Zilla::Plugin::EnsureSQLSchemaVersionedTest", @@ -500,7 +514,7 @@ } }, "name" : "TestRequires", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -511,7 +525,7 @@ } }, "name" : "Prereqs", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -522,7 +536,7 @@ } }, "name" : "DevelopX_spec", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -533,57 +547,57 @@ } }, "name" : "DevelopX_copypaste", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "6.009" + "version" : "6.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "6.009" + "version" : "6.012" } ], "zilla" : { @@ -591,11 +605,12 @@ "config" : { "is_trial" : 0 }, - "version" : "6.009" + "version" : "6.012" } }, "x_authority" : "cpan:PERLANCAR", - "x_serialization_backend" : "Cpanel::JSON::XS version 3.0233", + "x_generated_by_perl" : "v5.30.0", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.12", "x_static_install" : 1 } @@ -11,7 +11,7 @@ build_requires: configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.009, 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 @@ -24,15 +24,19 @@ requires: strict: '0' warnings: '0' resources: - bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object + bugtracker: https://github.com/perlancar/perl-Perinci-Object/issues homepage: https://metacpan.org/release/Perinci-Object repository: git://github.com/perlancar/perl-Perinci-Object.git -version: '0.310' +version: '0.311' x_Dist_Zilla: perl: - version: '5.026000' + version: '5.030000' plugins: - + class: Dist::Zilla::Plugin::PERLANCAR::CheckPendingRelease + name: '@Author::PERLANCAR/PERLANCAR::CheckPendingRelease' + version: '0.001' + - class: Dist::Zilla::Plugin::GatherDir config: Dist::Zilla::Plugin::GatherDir: @@ -44,66 +48,66 @@ x_Dist_Zilla: prune_directory: [] root: . name: '@Author::PERLANCAR/@Filter/GatherDir' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::PruneCruft name: '@Author::PERLANCAR/@Filter/PruneCruft' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::ManifestSkip name: '@Author::PERLANCAR/@Filter/ManifestSkip' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::PERLANCAR/@Filter/MetaYAML' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::License name: '@Author::PERLANCAR/@Filter/License' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::PodCoverageTests name: '@Author::PERLANCAR/@Filter/PodCoverageTests' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::PERLANCAR/@Filter/PodSyntaxTests' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::ExtraTests name: '@Author::PERLANCAR/@Filter/ExtraTests' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::ExecDir name: '@Author::PERLANCAR/@Filter/ExecDir' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::ShareDir name: '@Author::PERLANCAR/@Filter/ShareDir' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: 1 name: '@Author::PERLANCAR/@Filter/MakeMaker' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::Manifest name: '@Author::PERLANCAR/@Filter/Manifest' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::PERLANCAR/@Filter/ConfirmRelease' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::ExecDir name: '@Author::PERLANCAR/ExecDir script' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::PERLANCAR::BeforeBuild name: '@Author::PERLANCAR/PERLANCAR::BeforeBuild' - version: '0.593' + version: '0.603' - class: Dist::Zilla::Plugin::Rinci::AbstractFromMeta name: '@Author::PERLANCAR/Rinci::AbstractFromMeta' @@ -119,7 +123,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::PERLANCAR::MetaResources name: '@Author::PERLANCAR/PERLANCAR::MetaResources' - version: '0.040' + version: '0.042' - class: Dist::Zilla::Plugin::CheckChangeLog name: '@Author::PERLANCAR/CheckChangeLog' @@ -135,14 +139,14 @@ 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' @@ -150,15 +154,15 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::PERLANCAR/MetaJSON' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::PERLANCAR/MetaConfig' - version: '6.009' + version: '6.012' - - 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' @@ -168,9 +172,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: @@ -266,7 +270,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' @@ -282,13 +286,13 @@ x_Dist_Zilla: - class: Pod::Weaver::Plugin::PERLANCAR::SortSections name: '@Author::PERLANCAR/PERLANCAR::SortSections' - version: '0.06' + version: '0.082' name: '@Author::PERLANCAR/PodWeaver' version: '4.008' - class: Dist::Zilla::Plugin::PruneFiles name: '@Author::PERLANCAR/PruneFiles' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::Pod2Readme name: '@Author::PERLANCAR/Pod2Readme' @@ -296,15 +300,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.251' - class: Dist::Zilla::Plugin::SetScriptShebang name: '@Author::PERLANCAR/SetScriptShebang' @@ -326,15 +330,21 @@ x_Dist_Zilla: skips: [] switch: [] name: '@Author::PERLANCAR/Test::Compile' - version: '2.056' + 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: + - ':ExecFiles' + - ':InstallModules' + - ':TestFiles' + name: '@Author::PERLANCAR/Test::Perl::Critic::Subset' + version: 3.001.005 - class: Dist::Zilla::Plugin::Test::Rinci name: '@Author::PERLANCAR/Test::Rinci' - version: '0.03' + version: '0.040' - class: Dist::Zilla::Plugin::StaticInstall config: @@ -342,7 +352,7 @@ x_Dist_Zilla: dry_run: 0 mode: on name: '@Author::PERLANCAR/StaticInstall' - version: '0.010' + version: '0.012' - class: Dist::Zilla::Plugin::EnsureSQLSchemaVersionedTest name: '@Author::PERLANCAR/EnsureSQLSchemaVersionedTest' @@ -370,7 +380,7 @@ x_Dist_Zilla: phase: test type: requires name: TestRequires - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::Prereqs config: @@ -378,7 +388,7 @@ x_Dist_Zilla: phase: runtime type: requires name: Prereqs - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::Prereqs config: @@ -386,7 +396,7 @@ x_Dist_Zilla: phase: develop type: x_spec name: DevelopX_spec - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::Prereqs config: @@ -394,52 +404,53 @@ x_Dist_Zilla: phase: develop type: x_copypaste name: DevelopX_copypaste - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: '6.009' + version: '6.012' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: '6.009' + version: '6.012' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' - version: '6.009' + 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 0aa3ce1..01dae06 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.009. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.012. use strict; use warnings; @@ -29,7 +29,7 @@ my %WriteMakefileArgs = ( "Test::Exception" => 0, "Test::More" => "0.98" }, - "VERSION" => "0.310", + "VERSION" => "0.311", "test" => { "TESTS" => "t/*.t" } @@ -2,8 +2,8 @@ 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. + This document describes version 0.311 of Perinci::Object (from Perl + distribution Perinci-Object), released on 2020-01-02. SYNOPSIS use Perinci::Object; # automatically exports risub(), rivar(), ripkg(), @@ -65,8 +65,8 @@ SYNOPSIS 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(200, "OK", {item_id=>1, payload=>"a"}); + $envres->add_result(202, "OK", {item_id=>2, note=>"blah", payload=>"b"}); $envres->add_result(404, "Not found", {item_id=>3}); ... @@ -131,7 +131,7 @@ SOURCE BUGS Please report any bugs or feature requests on the bugtracker website - <https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> + <https://github.com/perlancar/perl-Perinci-Object/issues> 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. @@ -143,7 +143,7 @@ AUTHOR perlancar <perlancar@cpan.org> COPYRIGHT AND LICENSE - This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, + This software is copyright (c) 2021, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. This is free software; you can redistribute it and/or modify it under @@ -1,4 +1,4 @@ -version=0.310 +version=0.311 name=Perinci-Object @@ -19,9 +19,10 @@ Exporter=5.57 [Prereqs / DevelopX_spec] -phase=develop -relationship=x_spec -Rinci=1.1.83 +Rinci=1.1.94 [Prereqs / DevelopX_copypaste] -phase=develop -relationship=x_copypaste String::Trim::More=0.02 + diff --git a/lib/Perinci/Object.pm b/lib/Perinci/Object.pm index 97975a3..4353d30 100644 --- a/lib/Perinci/Object.pm +++ b/lib/Perinci/Object.pm @@ -2,8 +2,10 @@ package Perinci::Object; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY +our $DATE = '2021-01-02'; # DATE +our $DIST = 'Perinci-Object'; # DIST +our $VERSION = '0.311'; # VERSION use 5.010001; use strict; @@ -69,7 +71,7 @@ Perinci::Object - Object-oriented interface for Rinci metadata =head1 VERSION -This document describes version 0.310 of Perinci::Object (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 SYNOPSIS @@ -132,8 +134,8 @@ This document describes version 0.310 of Perinci::Object (from Perl distribution 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(200, "OK", {item_id=>1, payload=>"a"}); + $envres->add_result(202, "OK", {item_id=>2, note=>"blah", payload=>"b"}); $envres->add_result(404, "Not found", {item_id=>3}); ... @@ -201,7 +203,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -217,7 +219,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 7639d1c..5e77796 100644 --- a/lib/Perinci/Object/EnvResult.pm +++ b/lib/Perinci/Object/EnvResult.pm @@ -1,7 +1,7 @@ package Perinci::Object::EnvResult; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $DATE = '2021-01-02'; # DATE +our $VERSION = '0.311'; # VERSION use 5.010; use strict; @@ -97,7 +97,7 @@ Perinci::Object::EnvResult - Represent enveloped result =head1 VERSION -This document describes version 0.310 of Perinci::Object::EnvResult (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object::EnvResult (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 SYNOPSIS @@ -172,7 +172,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -188,7 +188,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 d476843..a5c6a92 100644 --- a/lib/Perinci/Object/EnvResultMulti.pm +++ b/lib/Perinci/Object/EnvResultMulti.pm @@ -1,7 +1,9 @@ package Perinci::Object::EnvResultMulti; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY +our $DATE = '2021-01-02'; # DATE +our $DIST = 'Perinci-Object'; # DIST +our $VERSION = '0.311'; # VERSION use 5.010; use strict; @@ -18,11 +20,16 @@ sub new { sub add_result { my ($self, $status, $message, $extra) = @_; + $extra //= {}; my $num_ok = 0; my $num_nok = 0; push @{ ${$self}->[3]{results} }, - {status=>$status, message=>$message, %{ $extra // {} }}; + {status=>$status, message=>$message, %$extra}; + if (exists $extra->{payload}) { + ${$self}->[2] //= []; + push @{ ${$self}->[2] }, $extra->{payload}; + } for (@{ ${$self}->[3]{results} // [] }) { if ($_->{status} =~ /\A(2|304)/) { $num_ok++; @@ -68,7 +75,7 @@ Perinci::Object::EnvResultMulti - Represent enveloped result (multistatus) =head1 VERSION -This document describes version 0.310 of Perinci::Object::EnvResultMulti (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object::EnvResultMulti (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 SYNOPSIS @@ -103,6 +110,16 @@ This document describes version 0.310 of Perinci::Object::EnvResultMulti (from P # ]}] } # myfunc +To add a payload for each result: + + my $envres = Perinci::Object::EnvResultMulti->new; + $envres->add_result(200, "OK", {item_id=>1, payload=>"a"}); + $envres->add_result(200, "OK", {item_id=>2, payload=>"b"}); + $envres->add_result(200, "OK", {item_id=>3, payload=>"c"}); + + return $envres->as_struct; + # => [200, "All success", ["a","b","c"], ...] + =head1 DESCRIPTION This class is a subclass of L<Perinci::Object::EnvResult> and provides a @@ -122,6 +139,19 @@ specified, the default is C<< [200, "Success/no items"] >>. Add an item result. +Extra keys: + +=over + +=item * item_id + +=item * payload + +If you want to add a payload for this result. The final overall payload will be +an array composed from this payload. + +=back + =head1 HOMEPAGE Please visit the project's homepage at L<https://metacpan.org/release/Perinci-Object>. @@ -132,7 +162,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -150,7 +180,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 821209a..dd56f51 100644 --- a/lib/Perinci/Object/EnvResultTable.pm +++ b/lib/Perinci/Object/EnvResultTable.pm @@ -1,7 +1,7 @@ package Perinci::Object::EnvResultTable; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $DATE = '2021-01-02'; # DATE +our $VERSION = '0.311'; # VERSION use 5.010; use strict; @@ -30,7 +30,7 @@ Perinci::Object::EnvResultTable - Represent enveloped result (table) =head1 VERSION -This document describes version 0.310 of Perinci::Object::EnvResultTable (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object::EnvResultTable (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 SYNOPSIS @@ -75,7 +75,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -93,7 +93,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 ca50a77..a317b7b 100644 --- a/lib/Perinci/Object/Function.pm +++ b/lib/Perinci/Object/Function.pm @@ -1,7 +1,7 @@ package Perinci::Object::Function; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $DATE = '2021-01-02'; # DATE +our $VERSION = '0.311'; # VERSION use 5.010; use strict; @@ -77,7 +77,7 @@ Perinci::Object::Function - Represent function metadata =head1 VERSION -This document describes version 0.310 of Perinci::Object::Function (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object::Function (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 SYNOPSIS @@ -143,7 +143,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -159,7 +159,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 3092ebb..2642eb6 100644 --- a/lib/Perinci/Object/Metadata.pm +++ b/lib/Perinci/Object/Metadata.pm @@ -1,7 +1,7 @@ package Perinci::Object::Metadata; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $DATE = '2021-01-02'; # DATE +our $VERSION = '0.311'; # 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.310 of Perinci::Object::Metadata (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object::Metadata (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 METHODS @@ -218,7 +218,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -230,7 +230,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 c07dc82..bbf73d6 100644 --- a/lib/Perinci/Object/Package.pm +++ b/lib/Perinci/Object/Package.pm @@ -1,7 +1,7 @@ package Perinci::Object::Package; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $DATE = '2021-01-02'; # DATE +our $VERSION = '0.311'; # VERSION use 5.010; use strict; @@ -26,7 +26,7 @@ Perinci::Object::Package - Represent package metadata =head1 VERSION -This document describes version 0.310 of Perinci::Object::Package (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object::Package (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 METHODS @@ -44,7 +44,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -56,7 +56,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 0b55ac3..940ee67 100644 --- a/lib/Perinci/Object/ResMeta.pm +++ b/lib/Perinci/Object/ResMeta.pm @@ -1,7 +1,7 @@ package Perinci::Object::ResMeta; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $DATE = '2021-01-02'; # DATE +our $VERSION = '0.311'; # 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.310 of Perinci::Object::ResMeta (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object::ResMeta (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 METHODS @@ -44,7 +44,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -56,7 +56,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 90152da..711102a 100644 --- a/lib/Perinci/Object/Variable.pm +++ b/lib/Perinci/Object/Variable.pm @@ -1,7 +1,7 @@ package Perinci::Object::Variable; -our $DATE = '2018-10-18'; # DATE -our $VERSION = '0.310'; # VERSION +our $DATE = '2021-01-02'; # DATE +our $VERSION = '0.311'; # VERSION use 5.010; use strict; @@ -26,7 +26,7 @@ Perinci::Object::Variable - Represent variable metadata =head1 VERSION -This document describes version 0.310 of Perinci::Object::Variable (from Perl distribution Perinci-Object), released on 2018-10-18. +This document describes version 0.311 of Perinci::Object::Variable (from Perl distribution Perinci-Object), released on 2020-01-02. =head1 METHODS @@ -44,7 +44,7 @@ Source repository is at L<https://github.com/perlancar/perl-Perinci-Object>. =head1 BUGS -Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object> +Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-Perinci-Object/issues> 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 @@ -56,7 +56,7 @@ perlancar <perlancar@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org. +This software is copyright (c) 2021, 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 7a0ec71..82a995b 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.056 +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058 use Test::More; @@ -51,7 +51,7 @@ for my $lib (@module_files) is($?, 0, "$lib loaded ok"); shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ - and not eval { require blib; blib->VERSION('1.01') }; + and not eval { +require blib; blib->VERSION('1.01') }; if (@_warnings) { diff --git a/t/EnvResultMulti.t b/t/EnvResultMulti.t index eebc815..8d9564f 100644 --- a/t/EnvResultMulti.t +++ b/t/EnvResultMulti.t @@ -24,6 +24,21 @@ subtest "all success" => sub { ], "final results") or diag explain $res; }; +subtest "all success, with payload" => sub { + my $envres = envresmulti; + $envres->add_result(200, "OK", {item_id=>1, payload=>"a"}); + $envres->add_result(202, "OK", {item_id=>2, note=>"blah", payload=>"b"}); + $envres->add_result(304, "Not modified", {item_id=>3}); + my $res = $envres->as_struct; + is($res->[0], 200, "final status"); + is_deeply($res->[2], ["a","b"], "final payload"); + is_deeply($res->[3]{results}, [ + {status=>200, message=>"OK", item_id=>1, payload=>"a"}, + {status=>202, message=>"OK", item_id=>2, note=>"blah", payload=>"b"}, + {status=>304, message=>"Not modified", item_id=>3}, + ], "final results") or diag explain $res; +}; + subtest "partial success (success first)" => sub { my $envres = envresmulti; my $res; diff --git a/t/author-critic.t b/t/author-critic.t index 22becf1..c6a3a00 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.005 + +use Test::Perl::Critic (-profile => "") x!! -e ""; + +my $filenames = ['lib/Perinci/Object.pm','lib/Perinci/Object/EnvResult.pm','lib/Perinci/Object/EnvResultMulti.pm','lib/Perinci/Object/EnvResultTable.pm','lib/Perinci/Object/Function.pm','lib/Perinci/Object/Metadata.pm','lib/Perinci/Object/Package.pm','lib/Perinci/Object/ResMeta.pm','lib/Perinci/Object/Variable.pm']; +unless ($filenames && @$filenames) { + $filenames = -d "blib" ? ["blib"] : ["lib"]; +} + +all_critic_ok(@$filenames); |