- New upstream release 0.14 - Use any() from List::Util 1.33+ instead of List::MoreUtils - Add patch to use List::MoreUtils::any() on old distributions where we don't have List::Util 1.33+ - Add patch to support building without Test::Code::TidyAll - Classify buildreqs by usage - Update patches as needed - Use %license where possible - Don't try to do the author or release tests for RHEL buildsepel9
parent
268223340e
commit
d839973514
@ -1,60 +0,0 @@
|
||||
--- t/basic.t
|
||||
+++ t/basic.t
|
||||
@@ -2,12 +2,14 @@ use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::Fatal;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More;
|
||||
|
||||
use Test::Requires {
|
||||
'Test::Output' => '0.16',
|
||||
};
|
||||
|
||||
+plan tests => 25;
|
||||
+
|
||||
{
|
||||
like(
|
||||
exception {
|
||||
@@ -218,5 +220,3 @@ use Test::Requires {
|
||||
q{},
|
||||
'no deprecation warning for second call to My::Package1::foo()';
|
||||
}
|
||||
-
|
||||
-done_testing();
|
||||
--- t/compile.t
|
||||
+++ t/compile.t
|
||||
@@ -1,9 +1,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More 0.88;
|
||||
+use Test::More tests => 1;
|
||||
|
||||
eval "require Package::DeprecationManager";
|
||||
ok( ! $@, 'no errors loading require Package::DeprecationManager' );
|
||||
-
|
||||
-done_testing();
|
||||
--- t/release-cpan-changes.t
|
||||
+++ t/release-cpan-changes.t
|
||||
@@ -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();
|
@ -1,7 +0,0 @@
|
||||
--- t/release-pod-spell.t
|
||||
+++ t/release-pod-spell.t
|
||||
@@ -31,3 +31,4 @@
|
||||
PayPal
|
||||
Rolsky
|
||||
api
|
||||
+deprecations
|
@ -0,0 +1,16 @@
|
||||
--- t/release-tidyall.t
|
||||
+++ t/release-tidyall.t
|
||||
@@ -9,9 +9,12 @@ BEGIN {
|
||||
|
||||
# This file was automatically generated by Dist::Zilla::Plugin::Test::TidyAll
|
||||
|
||||
-use Test::Code::TidyAll 0.24;
|
||||
use Test::More 0.88;
|
||||
|
||||
+eval 'use Test::Code::TidyAll 0.24;';
|
||||
+plan skip_all => 'Test::Code::TidyAll 0.24 required for testing tidiness'
|
||||
+ if $@;
|
||||
+
|
||||
tidyall_ok();
|
||||
|
||||
done_testing();
|
@ -0,0 +1,55 @@
|
||||
--- lib/Package/DeprecationManager.pm
|
||||
+++ lib/Package/DeprecationManager.pm
|
||||
@@ -6,7 +6,7 @@ use warnings;
|
||||
our $VERSION = '0.14';
|
||||
|
||||
use Carp qw( croak );
|
||||
-use List::Util 1.33 qw( any );
|
||||
+use List::MoreUtils qw( any );
|
||||
use Params::Util qw( _HASH0 );
|
||||
use Sub::Install;
|
||||
|
||||
--- Makefile.PL
|
||||
+++ Makefile.PL
|
||||
@@ -19,7 +19,7 @@ my %WriteMakefileArgs = (
|
||||
"NAME" => "Package::DeprecationManager",
|
||||
"PREREQ_PM" => {
|
||||
"Carp" => 0,
|
||||
- "List::Util" => "1.33",
|
||||
+ "List::MoreUtils" => "0",
|
||||
"Params::Util" => 0,
|
||||
"Sub::Install" => 0,
|
||||
"strict" => 0,
|
||||
--- META.json
|
||||
+++ META.json
|
||||
@@ -39,7 +39,7 @@
|
||||
"runtime" : {
|
||||
"requires" : {
|
||||
"Carp" : "0",
|
||||
- "List::Util" : "1.33",
|
||||
+ "List::MoreUtils" : "0",
|
||||
"Params::Util" : "0",
|
||||
"Sub::Install" : "0",
|
||||
"strict" : "0",
|
||||
--- META.yml
|
||||
+++ META.yml
|
||||
@@ -26,7 +26,7 @@ provides:
|
||||
version: '0.14'
|
||||
requires:
|
||||
Carp: '0'
|
||||
- List::Util: '1.33'
|
||||
+ List::MoreUtils: '0'
|
||||
Params::Util: '0'
|
||||
Sub::Install: '0'
|
||||
strict: '0'
|
||||
--- t/00-report-prereqs.dd
|
||||
+++ t/00-report-prereqs.dd
|
||||
@@ -24,7 +24,7 @@ do { my $x = {
|
||||
'runtime' => {
|
||||
'requires' => {
|
||||
'Carp' => '0',
|
||||
- 'List::Util' => '1.33',
|
||||
+ 'List::MoreUtils' => '0',
|
||||
'Params::Util' => '0',
|
||||
'Sub::Install' => '0',
|
||||
'strict' => '0',
|
@ -0,0 +1,133 @@
|
||||
--- t/author-eol.t
|
||||
+++ t/author-eol.t
|
||||
@@ -11,7 +11,7 @@ use warnings;
|
||||
|
||||
# this test was generated with Dist::Zilla::Plugin::Test::EOL 0.17
|
||||
|
||||
-use Test::More 0.88;
|
||||
+use Test::More;
|
||||
use Test::EOL;
|
||||
|
||||
my @files = (
|
||||
@@ -33,5 +33,6 @@ my @files = (
|
||||
't/release-tidyall.t'
|
||||
);
|
||||
|
||||
+plan tests => scalar @files;
|
||||
+
|
||||
eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files;
|
||||
-done_testing;
|
||||
--- t/author-no-tabs.t
|
||||
+++ t/author-no-tabs.t
|
||||
@@ -11,7 +11,7 @@ use warnings;
|
||||
|
||||
# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.13
|
||||
|
||||
-use Test::More 0.88;
|
||||
+use Test::More;
|
||||
use Test::NoTabs;
|
||||
|
||||
my @files = (
|
||||
@@ -33,5 +33,6 @@ my @files = (
|
||||
't/release-tidyall.t'
|
||||
);
|
||||
|
||||
+plan tests => scalar @files;
|
||||
+
|
||||
notabs_ok($_) foreach @files;
|
||||
-done_testing;
|
||||
--- t/basic.t
|
||||
+++ t/basic.t
|
||||
@@ -2,12 +2,14 @@ use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::Fatal;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More;
|
||||
|
||||
use Test::Requires {
|
||||
'Test::Output' => '0.16',
|
||||
};
|
||||
|
||||
+plan tests => 25;
|
||||
+
|
||||
{
|
||||
## no critic (BuiltinFunctions::ProhibitStringyEval, ErrorHandling::RequireCheckingReturnValueOfEval)
|
||||
like(
|
||||
@@ -272,4 +274,3 @@ use Test::Requires {
|
||||
);
|
||||
}
|
||||
|
||||
-done_testing();
|
||||
--- t/release-cpan-changes.t
|
||||
+++ t/release-cpan-changes.t
|
||||
@@ -1,19 +1,16 @@
|
||||
#!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 strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More 0.96 tests => 2;
|
||||
-use_ok('Test::CPAN::Changes');
|
||||
-subtest 'changes_ok' => sub {
|
||||
- changes_file_ok('Changes');
|
||||
-};
|
||||
-done_testing();
|
||||
+plan tests => 4;
|
||||
+changes_file_ok('Changes');
|
||||
--- t/release-pod-coverage.t
|
||||
+++ t/release-pod-coverage.t
|
||||
@@ -10,7 +10,7 @@ BEGIN {
|
||||
# This file was automatically generated by Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable.
|
||||
|
||||
use Test::Pod::Coverage 1.08;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More;
|
||||
|
||||
BEGIN {
|
||||
if ( $] <= 5.008008 ) {
|
||||
@@ -49,4 +49,3 @@ for my $module ( sort @modules ) {
|
||||
);
|
||||
}
|
||||
|
||||
-done_testing();
|
||||
--- t/release-test-version.t
|
||||
+++ t/release-test-version.t
|
||||
@@ -26,5 +26,6 @@ push @imports, $params
|
||||
|
||||
Test::Version->import(@imports);
|
||||
|
||||
-version_all_ok;
|
||||
-done_testing;
|
||||
+plan tests => 3;
|
||||
+
|
||||
+version_all_ok();
|
||||
--- t/release-tidyall.t
|
||||
+++ t/release-tidyall.t
|
||||
@@ -9,7 +9,7 @@ BEGIN {
|
||||
|
||||
# This file was automatically generated by Dist::Zilla::Plugin::Test::TidyAll
|
||||
|
||||
-use Test::More 0.88;
|
||||
+use Test::More;
|
||||
|
||||
eval 'use Test::Code::TidyAll 0.24;';
|
||||
plan skip_all => 'Test::Code::TidyAll 0.24 required for testing tidiness'
|
||||
@@ -17,4 +17,3 @@ plan skip_all => 'Test::Code::TidyAll 0.
|
||||
|
||||
tidyall_ok();
|
||||
|
||||
-done_testing();
|
@ -0,0 +1,8 @@
|
||||
--- t/author-pod-spell.t
|
||||
+++ t/author-pod-spell.t
|
||||
@@ -38,3 +38,5 @@ bobtfish
|
||||
lib
|
||||
Package
|
||||
DeprecationManager
|
||||
+PayPal
|
||||
+ve
|
Loading…
Reference in new issue