From: Dave Rolsky Date: Sat, 24 May 2008 17:16:24 +0000 (+0000) Subject: Replicate spelling fix for initalize_body here. X-Git-Tag: 0.09_02~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0a14785c68b278ebd1c4ce8f9538881fa6814040;p=gitmo%2FMooseX-Singleton.git Replicate spelling fix for initalize_body here. Require Moose 0.41 since that's the first one with the right spelling of the method. --- diff --git a/ChangeLog b/ChangeLog index 20920b3..f722587 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ Revision history for Perl extension MooseX-Singleton 0.08 - fix make_immutable keyword in test (Sartak) + - immutable singleton objects did not call triggers in the constructor (Dave Rolsky) + - fix immutability to actually work with modern Moose 0.41+ (Dave Rolsky) 0.07 2008-03-07 - bump Moose dep to 0.37 because that's when we got make_immutable (Sartak) diff --git a/Makefile.PL b/Makefile.PL index 80bf9db..500ba0d 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.37'; +requires 'Moose' => '0.41'; 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 b4dbc25..be99947 100644 --- a/lib/MooseX/Singleton/Meta/Method/Constructor.pm +++ b/lib/MooseX/Singleton/Meta/Method/Constructor.pm @@ -4,7 +4,7 @@ use Moose; extends 'Moose::Meta::Method::Constructor'; -sub intialize_body { +sub initialize_body { my $self = shift; # TODO: # the %options should also include a both