From 0022aab5a1291df8e07fdc032292185d3937a1dc Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Fri, 30 Aug 2013 08:19:58 +0100 Subject: [PATCH] Upgrade Module::Load::Conditional from version 0.54 to 0.56 --- Porting/Maintainers.pl | 2 +- cpan/Module-Load-Conditional/lib/Module/Load/Conditional.pm | 9 ++++++--- pod/perldelta.pod | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 60cfb2c..0c795df 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -1216,7 +1216,7 @@ use File::Glob qw(:case); 'Module::Load::Conditional' => { 'MAINTAINER' => 'kane', - 'DISTRIBUTION' => 'BINGOS/Module-Load-Conditional-0.54.tar.gz', + 'DISTRIBUTION' => 'BINGOS/Module-Load-Conditional-0.56.tar.gz', 'FILES' => q[cpan/Module-Load-Conditional], 'UPSTREAM' => 'cpan', }, diff --git a/cpan/Module-Load-Conditional/lib/Module/Load/Conditional.pm b/cpan/Module-Load-Conditional/lib/Module/Load/Conditional.pm index 342371f..a94906c 100644 --- a/cpan/Module-Load-Conditional/lib/Module/Load/Conditional.pm +++ b/cpan/Module-Load-Conditional/lib/Module/Load/Conditional.pm @@ -20,7 +20,7 @@ BEGIN { $FIND_VERSION $ERROR $CHECK_INC_HASH]; use Exporter; @ISA = qw[Exporter]; - $VERSION = '0.54'; + $VERSION = '0.56'; $VERBOSE = 0; $DEPRECATED = 0; $FIND_VERSION = 1; @@ -195,7 +195,7 @@ sub check_install { } } - ### we didnt find the filename yet by looking in %INC, + ### we didn't find the filename yet by looking in %INC, ### so scan the dirs unless( $filename ) { @@ -495,12 +495,15 @@ sub requires { } my $lib = join " ", map { qq["-I$_"] } @INC; - my $cmd = qq["$^X" $lib -M$who -e"print(join(qq[\\n],keys(%INC)))"]; + my $oneliner = 'sub foo(_){q[BONG=].shift} print(join(qq[\n],map foo,keys(%INC)),qq[\n])'; + my $cmd = qq["$^X" $lib -M$who -e"$oneliner"]; return sort grep { !/^$who$/ } map { chomp; s|/|::|g; $_ } grep { s|\.pm$||i; } + map { s!^BONG\=!!; $_ } + grep { m!^BONG\=! } `$cmd`; } diff --git a/pod/perldelta.pod b/pod/perldelta.pod index ab265e4..775a069 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -242,6 +242,12 @@ The list of Perl versions covered has been updated. =item * +L has been upgraded from version 0.54 to 0.56. + +C has been made more robust. [cpan #83728] + +=item * + L has been upgraded from version 1.000014 to 1.000016. The module's DESCRIPTION has been re-worded regarding safety/security to -- 2.7.4