From: Graham Knop Date: Sat, 20 Jun 2020 02:13:18 +0000 (+0200) Subject: bump Moose prereq so we can drop MooseX::Role::WithOverloading X-Git-Tag: v5.90_127~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=59b3e4d0df63749ee601113ce44be5b4340be2a8 bump Moose prereq so we can drop MooseX::Role::WithOverloading --- diff --git a/Makefile.PL b/Makefile.PL index 8b366c6..f951674 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -26,9 +26,8 @@ my %META = ( 'namespace::clean' => '0.23', 'MooseX::Emulate::Class::Accessor::Fast' => '0.00903', 'Class::Load' => '0.12', - 'Moose' => '1.03', + 'Moose' => '2.1400', 'MooseX::MethodAttributes::Role::AttrContainer::Inheritable' => '0.24', - 'MooseX::Role::WithOverloading' => '0.09', 'Carp' => '1.25', 'Class::C3::Adopt::NEXT' => '0.07', 'CGI::Simple::Cookie' => '1.109', @@ -168,11 +167,6 @@ my $tests = 't/*.t t/aggregate/*.t'; my %MM_ARGS = ( test => { TESTS => $tests }, EXE_FILES => [ glob 'script/*.pl' ], - PREREQ_PM => { - (eval { require Moose; Moose->VERSION('2.1300') } ? () : ( - 'MooseX::Role::WithOverloading' => '0.09' - )), - }, ); ## BOILERPLATE ############################################################### diff --git a/lib/Catalyst/Exception/Basic.pm b/lib/Catalyst/Exception/Basic.pm index 253b6a8..3ac78e1 100644 --- a/lib/Catalyst/Exception/Basic.pm +++ b/lib/Catalyst/Exception/Basic.pm @@ -1,8 +1,6 @@ package Catalyst::Exception::Basic; use Moose::Role; -use if !eval { require Moose; Moose->VERSION('2.1300') }, - 'MooseX::Role::WithOverloading'; use Carp; use namespace::clean -except => 'meta'; diff --git a/lib/Catalyst/Exception/Interface.pm b/lib/Catalyst/Exception/Interface.pm index 73e4cc0..5f0dbd1 100644 --- a/lib/Catalyst/Exception/Interface.pm +++ b/lib/Catalyst/Exception/Interface.pm @@ -1,8 +1,6 @@ package Catalyst::Exception::Interface; use Moose::Role; -use if !eval { require Moose; Moose->VERSION('2.1300') }, - 'MooseX::Role::WithOverloading'; use namespace::clean -except => 'meta'; use overload @@ -40,9 +38,6 @@ It ensures that all exceptions follow the expected interface, and adds overloading for stringification when composed onto a class. -Note that if you compose this role onto another role, that role -must use L. - =head1 REQUIRED METHODS =head2 as_string