Update Module-Load to CPAN version 0.30
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Sat, 25 Jan 2014 13:38:10 +0000 (13:38 +0000)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Sat, 25 Jan 2014 13:38:10 +0000 (13:38 +0000)
  [DELTA]

0.30    Sat Jan 25 13:26:51 GMT 2014
* Fix 'uninitialized' warnings during testing
* Added done_testing() to tests

Porting/Maintainers.pl
cpan/Module-Load/lib/Module/Load.pm
cpan/Module-Load/t/02_Module-Load.t

index 0ac622c..4dbf530 100755 (executable)
@@ -809,7 +809,7 @@ use File::Glob qw(:case);
     },
 
     'Module::Load' => {
-        'DISTRIBUTION' => 'BINGOS/Module-Load-0.28.tar.gz',
+        'DISTRIBUTION' => 'BINGOS/Module-Load-0.30.tar.gz',
         'FILES'        => q[cpan/Module-Load],
     },
 
index bc788b5..bcab454 100644 (file)
@@ -1,8 +1,9 @@
 package Module::Load;
 
-$VERSION = '0.28';
+$VERSION = '0.30';
 
 use strict;
+use warnings;
 use File::Spec ();
 
 sub import {
@@ -17,7 +18,7 @@ sub import {
             return
         );
 
-        @$h{@_} = ();
+        map { $h->{$_} = () if defined $_ } @_;
 
         (exists $h->{none} or exists $h->{''})
             and shift, last;
index 0c71557..2f33bfe 100644 (file)
@@ -2,6 +2,7 @@
 
 use Test::More;
 use strict;
+use warnings;
 
 #
 # Module::Load; test new features:
@@ -20,6 +21,7 @@ my ($afx, $cnt, $r, $tcode) = ('TestXYZ_', 0);
 sub _reset{
     undef %{Data::Dumper::};
     undef %{XYZ::Module::};
+    no warnings q[uninitialized];
     eval "undef %{$afx$cnt::}";
     delete $INC{'Data/Dumper.pm'};
 }
@@ -237,6 +239,8 @@ subtest 'load_remote' => sub{
            load_remote("XYZ::Module","______","Data::Dumper");
            XYZ::Module::Dumper($WORLD);');
     cant_locate();
+
+    done_testing();
 };
 
 subtest 'autoload_remote' => sub{