X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FExporter.pm;h=15a918cccde55a7ecf0b5e46e4c4ddb3c6265502;hb=38bf2a2585e26a47c919fd4c286b7716acb51c00;hp=f2b1646b343509d43e1e694f3595ab8db926e538;hpb=bb8ef15197850184a45acade3e8f387fd6b63829;p=gitmo%2FMoose.git diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index f2b1646..15a918c 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -3,11 +3,17 @@ package Moose::Exporter; use strict; use warnings; -our $VERSION = '1.9900'; -our $XS_VERSION = $VERSION; -$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; +use XSLoader; + +BEGIN { + XSLoader::load( + 'Moose', + $Moose::{VERSION} ? $Moose::{VERSION} : () + ); +} + use Class::MOP; use List::MoreUtils qw( first_index uniq ); use Moose::Util::MetaRole; @@ -15,10 +21,6 @@ use Scalar::Util qw(reftype); use Sub::Exporter 0.980; use Sub::Name qw(subname); -use XSLoader; - -XSLoader::load( 'Moose', $XS_VERSION ); - my %EXPORT_SPEC; sub setup_import_methods { @@ -650,11 +652,9 @@ sub import { 1; -__END__ - -=head1 NAME +# ABSTRACT: make an import() and unimport() just like Moose.pm -Moose::Exporter - make an import() and unimport() just like Moose.pm +__END__ =head1 SYNOPSIS @@ -864,20 +864,4 @@ a metaclass for the caller is an error. See L for details on reporting bugs. -=head1 AUTHOR - -Dave Rolsky Eautarch@urth.orgE - -This is largely a reworking of code in Moose.pm originally written by -Stevan Little and others. - -=head1 COPYRIGHT AND LICENSE - -Copyright 2009 by Infinity Interactive, Inc. - -L - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. - =cut