X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FMethod.pm;h=ba25fae8211d2a4eb8ff7f88bcee1a7f57c5ad53;hb=3bc310dd562250ad2bbce64058877d7d95d931a9;hp=9000bb1d1f97a5d5ad4873483c2c615d8eb0b800;hpb=95e647f01bdb9147b9d27cb9ac49d2adebff27b8;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Method.pm b/lib/Class/MOP/Method.pm index 9000bb1..ba25fae 100644 --- a/lib/Class/MOP/Method.pm +++ b/lib/Class/MOP/Method.pm @@ -7,7 +7,7 @@ use warnings; use Carp 'confess'; use Scalar::Util 'weaken'; -our $VERSION = '0.82_01'; +our $VERSION = '0.85'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -18,15 +18,6 @@ use base 'Class::MOP::Object'; # they should act like CODE refs. use overload '&{}' => sub { $_[0]->body }, fallback => 1; -our $UPGRADE_ERROR_TEXT = q{ ---------------------------------------------------------- -NOTE: this error is likely not an error, but a regression -caused by the latest upgrade to Moose/Class::MOP. Consider -upgrading any MooseX::* modules to their latest versions -before spending too much time chasing this one down. ---------------------------------------------------------- -}; - # construction sub wrap { @@ -41,7 +32,7 @@ sub wrap { || confess "You must supply a CODE reference to bless, not (" . ($code || 'undef') . ")"; ($params{package_name} && $params{name}) - || confess "You must supply the package_name and name parameters $UPGRADE_ERROR_TEXT"; + || confess "You must supply the package_name and name parameters"; my $self = $class->_new(\%params);