- New upstream release 0.11: - Don't accept package names that start with a digit - Rewrite some of the guts to use Module::Runtime rather than reimplementing its functionality - BR: perl(Module::Runtime) ≥ 0.009 - Drop all support for older distributions as required module Module::Runtime ≥ 0.009 will not be available prior to F-16epel9
parent
2cc49aa748
commit
bf9aac4dbf
@ -1,25 +0,0 @@
|
||||
--- Class-Load-0.08/t/release-pod-coverage.t.orig 2011-08-16 11:31:42.095025148 +0100
|
||||
+++ Class-Load-0.08/t/release-pod-coverage.t 2011-08-16 12:34:11.961313546 +0100
|
||||
@@ -5,6 +5,11 @@
|
||||
require Test::More;
|
||||
Test::More::plan(skip_all => 'these tests are for release candidate testing');
|
||||
}
|
||||
+ eval "use Test::Pod::Coverage 1.04;";
|
||||
+ if ($@) {
|
||||
+ require Test::More;
|
||||
+ Test::More::plan(skip_all => 'Test::Pod::Coverage 1.04 is required for this test');
|
||||
+ }
|
||||
}
|
||||
|
||||
|
||||
@@ -13,10 +18,6 @@
|
||||
|
||||
use Test::More tests => 1;
|
||||
|
||||
-use Test::Requires {
|
||||
- 'Test::Pod::Coverage' => '1.04',
|
||||
-};
|
||||
-
|
||||
my @modules = 'Class::Load';
|
||||
|
||||
my %trustme;
|
@ -1,13 +0,0 @@
|
||||
--- Class-Load/t/release-pod-spell.t
|
||||
+++ Class-Load/t/release-pod-spell.t
|
||||
@@ -40,7 +40,10 @@
|
||||
UTC
|
||||
ascii
|
||||
attribute's
|
||||
+behaviour
|
||||
+blog
|
||||
distro
|
||||
+fallback
|
||||
filename
|
||||
inline
|
||||
multipart
|
@ -1,224 +0,0 @@
|
||||
diff -up Class-Load-0.09/t/000-load.t.orig Class-Load-0.09/t/000-load.t
|
||||
--- Class-Load-0.09/t/000-load.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/000-load.t 2011-09-06 09:10:45.486039066 +0100
|
||||
@@ -1,12 +1,10 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 1;
|
||||
|
||||
use lib 't/lib';
|
||||
|
||||
use_ok 'Test::Class::Load';
|
||||
|
||||
diag('Using ' . Class::Load->_implementation() . ' implementation' );
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/001-is-class-loaded.t.orig Class-Load-0.09/t/001-is-class-loaded.t
|
||||
--- Class-Load-0.09/t/001-is-class-loaded.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/001-is-class-loaded.t 2011-09-06 09:10:45.492039052 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 18;
|
||||
|
||||
use version;
|
||||
|
||||
@@ -105,5 +105,3 @@ ok(!is_class_loaded('Class::Load::Versio
|
||||
'Class::Load::VersionCheck has been loaded but the version check failed');
|
||||
ok(is_class_loaded('Class::Load::VersionCheck', {-version => 41}),
|
||||
'Class::Load::VersionCheck has been loaded and the version check passed');
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/002-try-load-class.t.orig Class-Load-0.09/t/002-try-load-class.t
|
||||
--- Class-Load-0.09/t/002-try-load-class.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/002-try-load-class.t 2011-09-06 09:10:45.492039052 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 18;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load ':all';
|
||||
|
||||
@@ -35,5 +35,3 @@ ok(try_load_class('Class::Load::VersionC
|
||||
|
||||
ok(try_load_class('Class::Load::VersionCheck2', { -version => 41 }));
|
||||
ok(!try_load_class('Class::Load::VersionCheck2', { -version => 43 }));
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/003-load-class.t.orig Class-Load-0.09/t/003-load-class.t
|
||||
--- Class-Load-0.09/t/003-load-class.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/003-load-class.t 2011-09-06 09:10:45.493039049 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 19;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load ':all';
|
||||
use Test::Fatal;
|
||||
@@ -52,5 +52,3 @@ like( exception {
|
||||
like( exception {
|
||||
load_class('__PACKAGE__')
|
||||
}, qr/__PACKAGE__\.pm.*\@INC/, 'errors sanely on __PACKAGE__.pm' );
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/004-load-double.t.orig Class-Load-0.09/t/004-load-double.t
|
||||
--- Class-Load-0.09/t/004-load-double.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/004-load-double.t 2011-09-06 09:10:45.493039049 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 2;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load ':all';
|
||||
use Test::Fatal;
|
||||
@@ -24,5 +24,3 @@ like( exception {
|
||||
like( exception {
|
||||
load_class('Class::Load::SyntaxError');
|
||||
}, qr/syntax error/ );
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/005-load-optional.t.orig Class-Load-0.09/t/005-load-optional.t
|
||||
--- Class-Load-0.09/t/005-load-optional.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/005-load-optional.t 2011-09-06 09:10:45.494039046 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 8;
|
||||
use Test::Fatal;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load qw( :all );
|
||||
@@ -39,5 +39,3 @@ is( load_optional_class('Class::Load::Ve
|
||||
'VersionCheck (with too-high version) => 0');
|
||||
is( load_optional_class('Class::Load::VersionCheck', {-version => 41}), 1,
|
||||
'VersionCheck (with ok version) => 1');
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/006-returned-error.t.orig Class-Load-0.09/t/006-returned-error.t
|
||||
--- Class-Load-0.09/t/006-returned-error.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/006-returned-error.t 2011-09-06 09:10:45.494039046 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 15;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load ':all';
|
||||
|
||||
@@ -45,5 +45,3 @@ ok(!is_class_loaded('Class::Load::Syntax
|
||||
ok(!try_load_class('Class::Load::Nonexistent'), "didn't load class Nonexistent");
|
||||
is($@, "foo");
|
||||
}
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/007-first-existing.t.orig Class-Load-0.09/t/007-first-existing.t
|
||||
--- Class-Load-0.09/t/007-first-existing.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/007-first-existing.t 2011-09-06 09:10:45.495039044 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::Fatal;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 12;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load 'load_first_existing_class';
|
||||
|
||||
@@ -120,5 +120,3 @@ is(
|
||||
'Class::Load::VersionCheck2',
|
||||
'load_first_existing_class returns loadable class when a class passes the version check'
|
||||
);
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/008-gvstash-bug.t.orig Class-Load-0.09/t/008-gvstash-bug.t
|
||||
--- Class-Load-0.09/t/008-gvstash-bug.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/008-gvstash-bug.t 2011-09-06 09:10:45.495039044 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::Fatal;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 3;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load 'load_class';
|
||||
|
||||
@@ -20,5 +20,3 @@ is( exception {
|
||||
Class::Load::Stash->a_method;
|
||||
}, undef,
|
||||
'Actually loaded Class::Load::Stash - we were not fooled by mention of this stash in Class::Load::Stash::Sub' );
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/009-invalid-module-name.t.orig Class-Load-0.09/t/009-invalid-module-name.t
|
||||
--- Class-Load-0.09/t/009-invalid-module-name.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/009-invalid-module-name.t 2011-09-06 13:22:19.205162393 +0100
|
||||
@@ -2,14 +2,14 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::Fatal;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load 'load_class';
|
||||
|
||||
+plan tests => 1;
|
||||
+
|
||||
like(
|
||||
exception { load_class('Foo:Bar') },
|
||||
qr/^Foo:Bar is not a module name/,
|
||||
"invalid module name"
|
||||
);
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Class-Load-0.09/t/release-cpan-changes.t.orig Class-Load-0.09/t/release-cpan-changes.t
|
||||
--- Class-Load-0.09/t/release-cpan-changes.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/release-cpan-changes.t 2011-09-06 09:10:45.496039042 +0100
|
||||
@@ -1,15 +1,11 @@
|
||||
#!perl
|
||||
|
||||
+use Test::More;
|
||||
+
|
||||
BEGIN {
|
||||
- unless ($ENV{RELEASE_TESTING}) {
|
||||
- require Test::More;
|
||||
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
|
||||
- }
|
||||
+ plan skip_all => 'these tests are for release candidate testing' unless ($ENV{RELEASE_TESTING});
|
||||
+ eval 'use Test::CPAN::Changes';
|
||||
+ plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
|
||||
}
|
||||
|
||||
-
|
||||
-use Test::More;
|
||||
-eval 'use Test::CPAN::Changes';
|
||||
-plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
|
||||
changes_ok();
|
||||
-done_testing();
|
||||
diff -up Class-Load-0.09/t/release-pod-coverage.t.orig Class-Load-0.09/t/release-pod-coverage.t
|
||||
--- Class-Load-0.09/t/release-pod-coverage.t.orig 2011-09-06 05:24:45.000000000 +0100
|
||||
+++ Class-Load-0.09/t/release-pod-coverage.t 2011-09-06 09:10:45.496039042 +0100
|
||||
@@ -11,7 +11,7 @@ BEGIN {
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More tests => 1;
|
||||
|
||||
use Test::Requires {
|
||||
'Test::Pod::Coverage' => '1.04',
|
||||
@@ -44,5 +44,3 @@ for my $module ( sort @modules ) {
|
||||
"Pod coverage for $module"
|
||||
);
|
||||
}
|
||||
-
|
||||
-done_testing();
|
@ -1,11 +0,0 @@
|
||||
--- Class-Load/Makefile.PL
|
||||
+++ Class-Load/Makefile.PL
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
|
||||
-use ExtUtils::MakeMaker 6.30;
|
||||
+use ExtUtils::MakeMaker;
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue