Add use_moo option
[dbsrgits/DBIx-Class-Schema-Loader.git] / Makefile.PL
index 77bb41f..9d79c14 100644 (file)
@@ -2,6 +2,7 @@ use warnings;
 use strict;
 
 use 5.008001;
+BEGIN { unshift @INC, '.' unless $INC[-1] eq '.'; }
 use inc::Module::Install 1.00;
 
 use Getopt::Long();
@@ -87,7 +88,7 @@ if ($Module::Install::AUTHOR && ! $args->{skip_author_deps}) {
     my @missing_plugins;
     for my $plugin (qw(ReadmeFromPod AuthorTests)) {
         eval "require Module::Install::$plugin" and next;
-        push @missing_plugins, "Module::Instal::$plugin";
+        push @missing_plugins, "Module::Install::$plugin";
         chomp(my $err = $@);
         $missing_plugins[-1] .= " ($err)"
             unless $err =~ m{^Can't locate Module/Install/$plugin.pm in \@INC};