From d0afed733a8a2288ef644937863c819eee7b5163 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Wed, 1 Aug 2018 15:58:38 +0100 Subject: [PATCH] Update to 0.30 - New upstream release 0.30 - Added a new option for named params, "return_object", which causes the validation sub to return an object with methods for each param rather than a hashref; this is a great way to avoid typos in hash keys (idea shamelessly stolen from Toby Inkster's Type::Params module) - Tweaked the POD formatting so that the table of contents generated by MetaCPAN is more useful - Optionally use Class::XSAccessor --- perl-Params-ValidationCompiler.spec | 22 +++++++++++++++++----- sources | 2 +- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/perl-Params-ValidationCompiler.spec b/perl-Params-ValidationCompiler.spec index 574815f..6b385d1 100644 --- a/perl-Params-ValidationCompiler.spec +++ b/perl-Params-ValidationCompiler.spec @@ -6,12 +6,12 @@ %endif Name: perl-Params-ValidationCompiler -Version: 0.27 -Release: 4%{?dist} +Version: 0.30 +Release: 1%{?dist} Summary: Build an optimized subroutine parameter validator once, use it forever License: Artistic 2.0 URL: https://metacpan.org/release/Params-ValidationCompiler -Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Params/Params-ValidationCompiler-%{version}.tar.gz BuildArch: noarch # Build BuildRequires: coreutils @@ -22,6 +22,7 @@ BuildRequires: perl(ExtUtils::MakeMaker) > 6.75 # Module BuildRequires: perl(B) BuildRequires: perl(Carp) +BuildRequires: perl(Class::XSAccessor) BuildRequires: perl(Eval::Closure) BuildRequires: perl(Exception::Class) BuildRequires: perl(Exporter) @@ -56,7 +57,8 @@ BuildRequires: perl(Types::Standard) %endif # Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -Requires: perl(Sub::Util) >= 1.40 +Recommends: perl(Class::XSAccessor) +Recommends: perl(Sub::Util) >= 1.40 %description Create a customized, optimized, non-lobotomized, uncompromised, and thoroughly @@ -78,13 +80,23 @@ make test %files %license LICENSE -%doc Changes eg/ README.md +%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md eg/ README.md %{perl_vendorlib}/Params/ %{_mandir}/man3/Params::ValidationCompiler.3* %{_mandir}/man3/Params::ValidationCompiler::Compiler.3* %{_mandir}/man3/Params::ValidationCompiler::Exceptions.3* %changelog +* Wed Aug 1 2018 Paul Howarth - 0.30-1 +- Update to 0.30 + - Added a new option for named params, "return_object", which causes the + validation sub to return an object with methods for each param rather than + a hashref; this is a great way to avoid typos in hash keys (idea + shamelessly stolen from Toby Inkster's Type::Params module) + - Tweaked the POD formatting so that the table of contents generated by + MetaCPAN is more useful + - Optionally use Class::XSAccessor + * Fri Jul 13 2018 Fedora Release Engineering - 0.27-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index a8210df..178b644 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Params-ValidationCompiler-0.27.tar.gz) = 1c045e7b4b68f7b54cc3f1aa927c515b7662ddd5252baf22be149365b7087b5910219d3e08752e005cfd89a10a740fb2e1a41d8f7fed8765a56eade5d406c9dc +SHA512 (Params-ValidationCompiler-0.30.tar.gz) = 5911f9317f0b72e17c72435420a3b6b9f36780ab70715510c46e847970094e730169b9b3085f29cb23ee0aca2e78f7f9edd0d093859a1062869f35c90172bf05