A tiny tweak
[gitmo/Mouse.git] / Makefile.PL
index 095fb2e..aa7620c 100755 (executable)
@@ -1,4 +1,5 @@
 use inc::Module::Install;
+use 5.008;
 
 name     'Mouse';
 all_from 'lib/Mouse.pm';
@@ -9,8 +10,8 @@ tests 't/*.t t/*/*.t';
 # > Fixed looks_like_number(undef) to return false for perl >= 5.009002
 requires 'Scalar::Util' => 1.14;
 
-build_requires 'Test::Exception';
-build_requires 'Test::More';
+build_requires 'Test::Exception' => 0.21;
+build_requires 'Test::More' => 0.80;
 
 if ($Module::Install::AUTHOR) {
     if (eval "package foo; use Moose; 1;") {
@@ -23,6 +24,7 @@ if ($Module::Install::AUTHOR) {
     } else {
         print "you don't have a moose. skipping moose compatibility test\n";
     }
+    system("author/generate-mouse-tiny.pl");
 }
 
 auto_include;
@@ -63,7 +65,7 @@ sub create_moose_compatibility_test {
                 my $dirname = File::Basename::dirname($_);
 
                 my $tmpdir = File::Spec->catfile('xt', 'compatibility', $dirname);
-                File::Path::make_path($tmpdir);
+                File::Path::mkpath($tmpdir);
 
                 my $tmpfile = File::Spec->catfile($tmpdir, $basename);
                 open my $wfh, '>', $tmpfile or die $!;
@@ -74,6 +76,7 @@ sub create_moose_compatibility_test {
                         close $rfh;
                         $s;
                     };
+                    $src =~ s/Mouse::is_class_loaded/Class::MOP::is_class_loaded/g;
                     $src =~ s/Mouse/Moose/g;
                     $src;
                 };