From: Dave Rolsky Date: Thu, 4 Dec 2008 21:44:13 +0000 (+0000) Subject: some changes to work the next Moose, making constructor inlining work X-Git-Tag: 0.13~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c87dffa8b2168446117323e2e4a9c9995bc40092;p=gitmo%2FMooseX-Singleton.git some changes to work the next Moose, making constructor inlining work --- diff --git a/Makefile.PL b/Makefile.PL index 362d291..2bebe13 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,7 +5,7 @@ use inc::Module::Install; name 'MooseX-Singleton'; all_from 'lib/MooseX/Singleton.pm'; -requires 'Moose' => '0.58'; +requires 'Moose' => '0.63'; build_requires 'Test::More'; build_requires 'Test::Exception'; diff --git a/lib/MooseX/Singleton/Meta/Method/Constructor.pm b/lib/MooseX/Singleton/Meta/Method/Constructor.pm index 6e83444..e95e318 100644 --- a/lib/MooseX/Singleton/Meta/Method/Constructor.pm +++ b/lib/MooseX/Singleton/Meta/Method/Constructor.pm @@ -72,6 +72,10 @@ sub initialize_body { $self->{'body'} = $code; } +sub _expected_constructor_class { + return 'MooseX::Singleton::Object'; +} + no Moose; 1;