From 48398182087c8666ce0f5ad34ec903f7639e985f Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Sat, 9 Apr 2016 14:07:16 -0700 Subject: [PATCH 1/6] bump distribution version to 0.011 --- dist.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist.ini b/dist.ini index c62505d..3fad441 100644 --- a/dist.ini +++ b/dist.ini @@ -2,7 +2,7 @@ name = MooseX-Params author = Peter Shangov license = Perl_5 copyright_holder = Peter Shangov -version = 0.010 +version = 0.011 abstract = Parameters with meta, laziness and %_ [GatherDir] From 7415c207d59fd05a62b558e38ba10cfaab409be2 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Sat, 9 Apr 2016 14:07:37 -0700 Subject: [PATCH 2/6] switch to non-deprecated forms of these plugins --- dist.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist.ini b/dist.ini index 3fad441..8b64f8d 100644 --- a/dist.ini +++ b/dist.ini @@ -31,8 +31,8 @@ skip = TestParent [PodWeaver] ;Test::Spelling 0.12 no longer works on Win32 ;[PodSpellingTests] -[EOLTests] -[NoTabsTests] +[Test::EOL] +[Test::NoTabs] [PruneFiles] match = ^docs/* filename = TODO.mkd From 902b612c05e90a1982a2606e1ad17c967c3cc24a Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Sat, 9 Apr 2016 14:08:12 -0700 Subject: [PATCH 3/6] switch to a working README plugin, in the right order [ReadmeFromPod] reads from the in-repo file, so it misses all the podweaver modifications; also fix the plugin order so it reads the file after podweaver has modified it. --- dist.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist.ini b/dist.ini index 8b64f8d..d7d018d 100644 --- a/dist.ini +++ b/dist.ini @@ -26,7 +26,6 @@ skip = TestParent ;[CheckChangesTests] [Test::Compile] [Bugtracker] -[ReadmeFromPod] [GithubMeta] [PodWeaver] ;Test::Spelling 0.12 no longer works on Win32 @@ -41,3 +40,4 @@ Package::Stash = 0.18 Moose = 1.24 [MetaNoIndex] package = Moose::Util::TypeConstraints +[ReadmeAnyFromPod] From 9336093ee47f1c7b2d226ae8688728ba69d66d49 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Sat, 9 Apr 2016 14:12:36 -0700 Subject: [PATCH 4/6] include a META.json in the distribution --- dist.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/dist.ini b/dist.ini index d7d018d..51a9aea 100644 --- a/dist.ini +++ b/dist.ini @@ -9,6 +9,7 @@ abstract = Parameters with meta, laziness and %_ [PruneCruft] [ManifestSkip] [MetaYAML] +[MetaJSON] [License] [ExtraTests] [ExecDir] From f9b0c9a81f165bda81fbf5d1977a17a74bf39e8f Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Sat, 9 Apr 2016 14:09:35 -0700 Subject: [PATCH 5/6] ignore common build artifacts --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 1377554..61d03b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ *.swp +/.build/ +!/.gitignore +/MooseX-Params-*/ +/MooseX-Params-*.tar.gz From 5d68fe2f5d2bb1e987a9251a5f64b6050fc91469 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Sat, 9 Apr 2016 14:11:43 -0700 Subject: [PATCH 6/6] switch to List::Util, and properly declare the prereq (RT#113600) --- lib/MooseX/Params/TypeConstraints.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/MooseX/Params/TypeConstraints.pm b/lib/MooseX/Params/TypeConstraints.pm index 7bb305a..ef5702e 100644 --- a/lib/MooseX/Params/TypeConstraints.pm +++ b/lib/MooseX/Params/TypeConstraints.pm @@ -5,6 +5,7 @@ use warnings; use Moose::Util::TypeConstraints; use MooseX::Params::Meta::TypeConstraint::Listable; +use List::Util 1.33 (); my $registry = Moose::Util::TypeConstraints::get_type_constraint_registry; @@ -35,7 +36,7 @@ $registry->add_type_constraint( 'do {' . 'my $check = ' . $val . ';' . 'ref($check) eq "ARRAY" ' - . '&& &List::MoreUtils::all(' + . '&& &List::Util::all(' . 'sub { ' . $type_parameter->_inline_check('$_') . ' }, ' . '@{$check}' . ')' @@ -71,7 +72,7 @@ $registry->add_type_constraint( 'do {' . 'my $check = ' . $val . ';' . 'ref($check) eq "HASH" ' - . '&& &List::MoreUtils::all(' + . '&& &List::Util::all(' . 'sub { ' . $type_parameter->_inline_check('$_') . ' }, ' . 'values %{$check}' . ')'