Revision history for Perl extension MooseX-Singleton
+0.09_01 2008-06-27
+ - fixes to work with the latest dev release of Moose - 0.55_01 (Dave Rolsky)
+
0.09 2008-06-27
- fix immutability to work with Moose 0.51 (Dave Rolsky)
package MooseX::Singleton;
-use Moose;
+
+use Moose ();
+use Moose::Exporter;
use MooseX::Singleton::Object;
use MooseX::Singleton::Meta::Class;
-our $VERSION = 0.09;
-
-sub import {
- my $caller = caller;
+our $VERSION = '0.09_01';
+$VERSION = eval $VERSION;
- Moose::init_meta($caller, 'MooseX::Singleton::Object', 'MooseX::Singleton::Meta::Class');
+Moose::Exporter->setup_import_methods( also => 'Moose' );
- Moose->import({into => $caller});
- strict->import;
- warnings->import;
+sub init_meta {
+ shift;
+ Moose->init_meta(
+ @_,
+ base_class => 'MooseX::Singleton::Object',
+ metaclass => 'MooseX::Singleton::Meta::Class',
+ );
}
-no Moose;
-
1;
__END__