From: Rafael Garcia-Suarez Date: Thu, 4 Oct 2007 09:11:18 +0000 (+0000) Subject: Update Module::Load::Conditional to 0.20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fc934b13d23aabf19a3b0a92666cf2d0b2eb51ab;p=p5sagit%2Fp5-mst-13.2.git Update Module::Load::Conditional to 0.20 p4raw-id: //depot/perl@32022 --- diff --git a/MANIFEST b/MANIFEST index 3fafe76..f816b5d 100644 --- a/MANIFEST +++ b/MANIFEST @@ -2190,7 +2190,7 @@ lib/Module/Load/Conditional/t/to_load/Commented.pm Module::Conditional tests lib/Module/Load/Conditional/t/to_load/InPod.pm Module::Load::Conditional tests lib/Module/Load/Conditional/t/to_load/LoadIt.pm Module::Conditional tests lib/Module/Load/Conditional/t/to_load/LoadMe.pl Module::Conditional tests -lib/Module/Load/Conditional/t/to_load/Must/Be/Loaded.pm Module::Conditional tests +lib/Module/Load/Conditional/t/to_load/MustBe/Loaded.pm Module::Load::Conditional tests lib/Module/Load/Conditional/t/to_load/ToBeLoaded Module::Conditional tests lib/Module/Loaded.pm Module::Loaded lib/Module/Loaded/t/01_Module-Loaded.t Module::Loaded tests diff --git a/lib/Module/Load/Conditional.pm b/lib/Module/Load/Conditional.pm index 613dda1..a97a9f0 100644 --- a/lib/Module/Load/Conditional.pm +++ b/lib/Module/Load/Conditional.pm @@ -18,7 +18,7 @@ BEGIN { $FIND_VERSION $ERROR $CHECK_INC_HASH]; use Exporter; @ISA = qw[Exporter]; - $VERSION = '0.18'; + $VERSION = '0.20'; $VERBOSE = 0; $FIND_VERSION = 1; $CHECK_INC_HASH = 0; diff --git a/lib/Module/Load/Conditional/t/01_Module_Load_Conditional.t b/lib/Module/Load/Conditional/t/01_Module_Load_Conditional.t index be467fd..45a4f69 100644 --- a/lib/Module/Load/Conditional/t/01_Module_Load_Conditional.t +++ b/lib/Module/Load/Conditional/t/01_Module_Load_Conditional.t @@ -154,7 +154,7 @@ use_ok( 'Module::Load::Conditional' ); } { - my $use_list = { 'Must::Be::Loaded' => 1 }; + my $use_list = { 'MustBe::Loaded' => 1 }; my $bool = can_load( modules => $use_list ); ok( !$bool, q[Detect out of date module] ); @@ -162,12 +162,12 @@ use_ok( 'Module::Load::Conditional' ); { delete $INC{'LoadIt.pm'}; - delete $INC{'Must/Be/Loaded.pm'}; + delete $INC{'MustBe/Loaded.pm'}; - my $use_list = { 'LoadIt' => 1, 'Must::Be::Loaded' => 1 }; + my $use_list = { 'LoadIt' => 1, 'MustBe::Loaded' => 1 }; my $bool = can_load( modules => $use_list ); - ok( !$INC{'LoadIt.pm'} && !$INC{'Must/Be/Loaded.pm'}, + ok( !$INC{'LoadIt.pm'} && !$INC{'MustBe/Loaded.pm'}, q[Do not load if one prerequisite fails] ); } diff --git a/lib/Module/Load/Conditional/t/to_load/Must/Be/Loaded.pm b/lib/Module/Load/Conditional/t/to_load/MustBe/Loaded.pm similarity index 100% rename from lib/Module/Load/Conditional/t/to_load/Must/Be/Loaded.pm rename to lib/Module/Load/Conditional/t/to_load/MustBe/Loaded.pm