From: Florian Ragwitz Date: Sat, 14 May 2011 14:47:35 +0000 (+0200) Subject: Assert the correct version of CMOP being installed X-Git-Tag: 2.0007~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=688e2d9f60194e1eac9ae81a5c4a6744c5b317e3;p=gitmo%2FMoose.git Assert the correct version of CMOP being installed --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 232c4bc..65538a7 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -12,6 +12,11 @@ use Moose::Exporter; use Class::MOP; +BEGIN { + die "Class::MOP version $Moose::VERSION required--this is version $Class::MOP::VERSION" + if $Moose::VERSION && $Class::MOP::VERSION ne $Moose::VERSION; +} + use Moose::Meta::Class; use Moose::Meta::TypeConstraint; use Moose::Meta::TypeCoercion;