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 diff --git a/dist.ini b/dist.ini index c62505d..51a9aea 100644 --- a/dist.ini +++ b/dist.ini @@ -2,13 +2,14 @@ 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] [PruneCruft] [ManifestSkip] [MetaYAML] +[MetaJSON] [License] [ExtraTests] [ExecDir] @@ -26,13 +27,12 @@ skip = TestParent ;[CheckChangesTests] [Test::Compile] [Bugtracker] -[ReadmeFromPod] [GithubMeta] [PodWeaver] ;Test::Spelling 0.12 no longer works on Win32 ;[PodSpellingTests] -[EOLTests] -[NoTabsTests] +[Test::EOL] +[Test::NoTabs] [PruneFiles] match = ^docs/* filename = TODO.mkd @@ -41,3 +41,4 @@ Package::Stash = 0.18 Moose = 1.24 [MetaNoIndex] package = Moose::Util::TypeConstraints +[ReadmeAnyFromPod] 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}' . ')'