From: Todd Rinaldo Date: Wed, 30 Sep 2020 13:12:03 +0000 (-0500) Subject: Update Module-Load to CPAN version 0.36 X-Git-Tag: v5.33.3~163 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/ffdf828c4c26b3bbc46691b443858a107e0f6472 Update Module-Load to CPAN version 0.36 [DELTA] 0.36 Tue Sep 29 11:55:01 BST 2020 * Fixed E in POD (https://github.com/jib/module-load/pull/6) * Make Module-Load strict compliant (https://github.com/jib/module-load/pull/7) --- diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 4bbe441..080535a 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -827,7 +827,7 @@ use File::Glob qw(:case); }, 'Module::Load' => { - 'DISTRIBUTION' => 'BINGOS/Module-Load-0.34.tar.gz', + 'DISTRIBUTION' => 'BINGOS/Module-Load-0.36.tar.gz', 'FILES' => q[cpan/Module-Load], }, diff --git a/Porting/cmpVERSION.pl b/Porting/cmpVERSION.pl index 14aca54..058000a 100755 --- a/Porting/cmpVERSION.pl +++ b/Porting/cmpVERSION.pl @@ -90,6 +90,8 @@ my %skip; 'cpan/Math-BigInt/t/Math/BigInt/Scalar.pm', # just a test module 'cpan/Math-BigInt/t/Math/BigInt/Subclass.pm', # just a test module 'cpan/Math-BigRat/t/Math/BigRat/Test.pm', # just a test module + 'cpan/Module-Load/t/to_load/LoadIt.pm', # just a test module + 'cpan/Module-Load/t/to_load/Must/Be/Loaded.pm', # just a test module 'cpan/Module-Load-Conditional/t/test_lib/a/X.pm', # just a test module 'cpan/Module-Load-Conditional/t/test_lib/b/X.pm', # just a test module 'cpan/Module-Load-Conditional/t/to_load/Commented.pm', # just a test module diff --git a/cpan/Module-Load/lib/Module/Load.pm b/cpan/Module-Load/lib/Module/Load.pm index 0c403d4..28294ee 100644 --- a/cpan/Module-Load/lib/Module/Load.pm +++ b/cpan/Module-Load/lib/Module/Load.pm @@ -1,11 +1,12 @@ package Module::Load; -$VERSION = '0.34'; - use strict; use warnings; use File::Spec (); +our $VERSION = '0.36'; + + sub import { my $who = _who(); my $h; shift; @@ -358,7 +359,7 @@ Thanks to Jonas B. Nielsen for making explicit imports work. =head1 BUG REPORTS -Please report bugs or other issues to Ebug-module-load@rt.cpan.org. +Please report bugs or other issues to Ebug-module-load@rt.cpan.orgE. =head1 AUTHOR diff --git a/cpan/Module-Load/t/01_Module-Load.t b/cpan/Module-Load/t/01_Module-Load.t index 228b31d..42867f6 100644 --- a/cpan/Module-Load/t/01_Module-Load.t +++ b/cpan/Module-Load/t/01_Module-Load.t @@ -1,4 +1,7 @@ ### Module::Load test suite ### +use strict; +use warnings; + BEGIN { if( $ENV{PERL_CORE} ) { chdir '../lib/Module/Load' if -d '../lib/Module/Load'; @@ -8,7 +11,6 @@ BEGIN { BEGIN { chdir 't' if -d 't' } -use strict; use lib qw[../lib to_load]; use Module::Load; use Test::More 'no_plan'; diff --git a/cpan/Module-Load/t/02_Module-Load.t b/cpan/Module-Load/t/02_Module-Load.t index 2565f26..f2c0eac 100644 --- a/cpan/Module-Load/t/02_Module-Load.t +++ b/cpan/Module-Load/t/02_Module-Load.t @@ -1,8 +1,9 @@ #!perl -use Test::More; use strict; use warnings; + +use Test::More; use Config; # diff --git a/cpan/Module-Load/t/to_load/LoadIt.pm b/cpan/Module-Load/t/to_load/LoadIt.pm index 63874fd..317745c 100644 --- a/cpan/Module-Load/t/to_load/LoadIt.pm +++ b/cpan/Module-Load/t/to_load/LoadIt.pm @@ -1,3 +1,3 @@ -$VERSION = 1; +our $VERSION = 1; -1; \ No newline at end of file +1; diff --git a/cpan/Module-Load/t/to_load/Must/Be/Loaded.pm b/cpan/Module-Load/t/to_load/Must/Be/Loaded.pm index 46de6d5..b98728c 100644 --- a/cpan/Module-Load/t/to_load/Must/Be/Loaded.pm +++ b/cpan/Module-Load/t/to_load/Must/Be/Loaded.pm @@ -1,3 +1,3 @@ -$VERSION = 0.01; +our $VERSION = 0.01; -1; \ No newline at end of file +1; diff --git a/cpan/Module-Load/t/to_load/TestModule.pm b/cpan/Module-Load/t/to_load/TestModule.pm index ffc5ec9..e344b43 100644 --- a/cpan/Module-Load/t/to_load/TestModule.pm +++ b/cpan/Module-Load/t/to_load/TestModule.pm @@ -1,6 +1,8 @@ package TestModule; use strict; +use warnings; + require Exporter; use vars qw(@EXPORT @EXPORT_OK @ISA $IMPORTED);