Hello community,
here is the log from the commit of package perl-Test-CheckManifest for
openSUSE:Factory checked in at 2019-06-01 09:49:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-CheckManifest (Old)
and /work/SRC/openSUSE:Factory/.perl-Test-CheckManifest.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-CheckManifest"
Sat Jun 1 09:49:42 2019 rev:5 rq:705970 version:1.42
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Test-CheckManifest/perl-Test-CheckManifest.changes
2019-03-01 20:31:06.097986958 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Test-CheckManifest.new.5148/perl-Test-CheckManifest.changes
2019-06-01 09:49:43.439319693 +0200
@@ -1,0 +2,30 @@
+Wed Mar 13 16:43:30 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to 1.42
+ see /usr/share/doc/packages/perl-Test-CheckManifest/Changes
+
+ 1.42 2019-02-22 17:41:00
+
+ * add section in doc that explains how to replace test scripts using
Test::CheckManifest
+ * stable release with all the changes from the test releases
+
+ 1.41_04 2019-02-21 15:12:00
+
+ * fix test failure on Win32 - use "plan skip_all" instead of "skip
'...'"
+ * update dist.ini
+
+ 1.41_03 2019-02-21 09:27:00
+
+ * optimize ok_manifest()
+ * add more tests for find_home()
+
+ 1.41_02 2019-02-20 13:37:00
+
+ * more debugging stuff
+
+ 1.41_01 2019-02-20 09:50:00
+
+ * use regexes to silence warnings
+ * add debugging stuff to debug win32 failures
+
+-------------------------------------------------------------------
Old:
----
Test-CheckManifest-1.41.tar.gz
New:
----
Test-CheckManifest-1.42.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Test-CheckManifest.spec ++++++
--- /var/tmp/diff_new_pack.blWSVU/_old 2019-06-01 09:49:43.927319527 +0200
+++ /var/tmp/diff_new_pack.blWSVU/_new 2019-06-01 09:49:43.927319527 +0200
@@ -17,7 +17,7 @@
Name: perl-Test-CheckManifest
-Version: 1.41
+Version: 1.42
Release: 0
%define cpan_name Test-CheckManifest
Summary: Check if your Manifest matches your distro
++++++ Test-CheckManifest-1.41.tar.gz -> Test-CheckManifest-1.42.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/CONTRIBUTORS
new/Test-CheckManifest-1.42/CONTRIBUTORS
--- old/Test-CheckManifest-1.41/CONTRIBUTORS 2019-02-19 11:22:16.000000000
+0100
+++ new/Test-CheckManifest-1.42/CONTRIBUTORS 2019-02-22 17:43:11.000000000
+0100
@@ -6,6 +6,7 @@
patches, bug reports, help with troubleshooting, etc. A huge
'thank you' to all of them.
+ * Dan Book
* doug
* LorenzoTa
* LorenzoTa
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/Changes
new/Test-CheckManifest-1.42/Changes
--- old/Test-CheckManifest-1.41/Changes 2019-02-19 11:22:16.000000000 +0100
+++ new/Test-CheckManifest-1.42/Changes 2019-02-22 17:43:11.000000000 +0100
@@ -1,6 +1,30 @@
Revision history for Perl extension Test::CheckManifest.
========================================================
+1.42 2019-02-22 17:41:00
+
+ * add section in doc that explains how to replace test scripts using
Test::CheckManifest
+ * stable release with all the changes from the test releases
+
+1.41_04 2019-02-21 15:12:00
+
+ * fix test failure on Win32 - use "plan skip_all" instead of "skip '...'"
+ * update dist.ini
+
+1.41_03 2019-02-21 09:27:00
+
+ * optimize ok_manifest()
+ * add more tests for find_home()
+
+1.41_02 2019-02-20 13:37:00
+
+ * more debugging stuff
+
+1.41_01 2019-02-20 09:50:00
+
+ * use regexes to silence warnings
+ * add debugging stuff to debug win32 failures
+
1.41 2019-02-19 10:53:00
* improve tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/META.json
new/Test-CheckManifest-1.42/META.json
--- old/Test-CheckManifest-1.41/META.json 2019-02-19 11:22:16.000000000
+0100
+++ new/Test-CheckManifest-1.42/META.json 2019-02-22 17:43:11.000000000
+0100
@@ -30,6 +30,7 @@
"requires" : {
"Carp" : "0",
"Cwd" : "3.75",
+ "Data::Dumper" : "0",
"File::Basename" : "0",
"File::Find" : "0",
"File::Spec" : "0",
@@ -42,6 +43,8 @@
"test" : {
"requires" : {
"CPAN::Meta::YAML" : "0",
+ "File::Path" : "0",
+ "IO::File" : "0",
"Pod::Coverage::TrustPod" : "0"
}
}
@@ -49,7 +52,7 @@
"provides" : {
"Test::CheckManifest" : {
"file" : "lib/Test/CheckManifest.pm",
- "version" : "1.41"
+ "version" : "1.42"
}
},
"release_status" : "stable",
@@ -64,8 +67,9 @@
"web" : "http://github.com/reneeb/Test-CheckManifest"
}
},
- "version" : "1.41",
+ "version" : "1.42",
"x_contributors" : [
+ "Dan Book <[email protected]>",
"doug <[email protected]>",
"LorenzoTa <[email protected]>",
"LorenzoTa <[email protected]>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/META.yml
new/Test-CheckManifest-1.42/META.yml
--- old/Test-CheckManifest-1.41/META.yml 2019-02-19 11:22:16.000000000
+0100
+++ new/Test-CheckManifest-1.42/META.yml 2019-02-22 17:43:11.000000000
+0100
@@ -4,6 +4,8 @@
- 'Renee Baecker <[email protected]>'
build_requires:
CPAN::Meta::YAML: '0'
+ File::Path: '0'
+ IO::File: '0'
Pod::Coverage::TrustPod: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
@@ -17,10 +19,11 @@
provides:
Test::CheckManifest:
file: lib/Test/CheckManifest.pm
- version: '1.41'
+ version: '1.42'
requires:
Carp: '0'
Cwd: '3.75'
+ Data::Dumper: '0'
File::Basename: '0'
File::Find: '0'
File::Spec: '0'
@@ -32,8 +35,9 @@
bugtracker: http://github.com/reneeb/Test-CheckManifest/issues
homepage: http://github.com/reneeb/Test-CheckManifest
repository: http://github.com/reneeb/Test-CheckManifest.git
-version: '1.41'
+version: '1.42'
x_contributors:
+ - 'Dan Book <[email protected]>'
- 'doug <[email protected]>'
- 'LorenzoTa <[email protected]>'
- 'LorenzoTa <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/Makefile.PL
new/Test-CheckManifest-1.42/Makefile.PL
--- old/Test-CheckManifest-1.41/Makefile.PL 2019-02-19 11:22:16.000000000
+0100
+++ new/Test-CheckManifest-1.42/Makefile.PL 2019-02-22 17:43:11.000000000
+0100
@@ -19,6 +19,7 @@
"PREREQ_PM" => {
"Carp" => 0,
"Cwd" => "3.75",
+ "Data::Dumper" => 0,
"File::Basename" => 0,
"File::Find" => 0,
"File::Spec" => 0,
@@ -28,9 +29,11 @@
},
"TEST_REQUIRES" => {
"CPAN::Meta::YAML" => 0,
+ "File::Path" => 0,
+ "IO::File" => 0,
"Pod::Coverage::TrustPod" => 0
},
- "VERSION" => "1.41",
+ "VERSION" => "1.42",
"test" => {
"TESTS" => "t/*.t t/extra/*.t t/xt/*.t"
}
@@ -41,9 +44,12 @@
"CPAN::Meta::YAML" => 0,
"Carp" => 0,
"Cwd" => "3.75",
+ "Data::Dumper" => 0,
"File::Basename" => 0,
"File::Find" => 0,
+ "File::Path" => 0,
"File::Spec" => 0,
+ "IO::File" => 0,
"Pod::Coverage::TrustPod" => 0,
"Scalar::Util" => 0,
"Test::Builder" => 0,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/README
new/Test-CheckManifest-1.42/README
--- old/Test-CheckManifest-1.41/README 2019-02-19 11:22:16.000000000 +0100
+++ new/Test-CheckManifest-1.42/README 2019-02-22 17:43:11.000000000 +0100
@@ -4,7 +4,7 @@
VERSION
- version 1.41
+ version 1.42
SYNOPSIS
@@ -84,6 +84,20 @@
t/my_very_own.t
file_to.skip
+REPLACE THIS MODULE
+
+ You can replace the test scripts using Test::CheckManifest with this
+ one using ExtUtils::Manifest.
+
+ use Test::More tests => 2;
+ use ExtUtils::Manifest;
+
+ is_deeply [ ExtUtils::Manifest::manicheck() ], [], 'missing';
+ is_deeply [ ExtUtils::Manifest::filecheck() ], [], 'extra';
+
+ (thanks to @mohawk2
+ <https://github.com/reneeb/Test-CheckManifest/issues/20>).
+
ACKNOWLEDGEMENT
Great thanks to Christopher H. Laco, who did a lot of testing stuff for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/lib/Test/CheckManifest.pm
new/Test-CheckManifest-1.42/lib/Test/CheckManifest.pm
--- old/Test-CheckManifest-1.41/lib/Test/CheckManifest.pm 2019-02-19
11:22:16.000000000 +0100
+++ new/Test-CheckManifest-1.42/lib/Test/CheckManifest.pm 2019-02-22
17:43:11.000000000 +0100
@@ -13,7 +13,7 @@
use File::Find;
use Scalar::Util qw(blessed);
-our $VERSION = 1.41;
+our $VERSION = '1.42';
our $VERBOSE = 1;
our $HOME;
our $test_bool = 1;
@@ -158,7 +158,7 @@
my $skip_path = File::Spec->catfile( $home, 'MANIFEST.SKIP' );
my @skip_files = _read_file( $skip_path );
- my @skip_rx = map{ qr/\Q$_\E/ }@skip_files;
+ my @skip_rx = map{ qr/$_/ }@skip_files;
my $excluded = _check_excludes( $hashref, $home );
my (@dir_files, %excluded);
@@ -167,7 +167,9 @@
no_chdir => 1,
follow => 0,
wanted => sub {
- my $file = $File::Find::name;
+ my $file = $File::Find::name;
+ return if !-f $file;
+
my $is_excluded = _is_excluded(
$file,
$excluded,
@@ -177,9 +179,11 @@
$home,
);
- push @dir_files, File::Spec->rel2abs($file) if -f $file and
!$is_excluded;
-
- $excluded{$file} = 1 if -f $file and $is_excluded
+ my $abs = File::Spec->rel2abs($file);
+
+ $is_excluded ?
+ ( $excluded{$abs} = 1 ) :
+ ( push @dir_files, $abs );
}
},$home);
@@ -382,7 +386,7 @@
=head1 VERSION
-version 1.41
+version 1.42
=head1 SYNOPSIS
@@ -468,6 +472,19 @@
t/my_very_own.t
file_to.skip
+=head1 REPLACE THIS MODULE
+
+You can replace the test scripts using C<Test::CheckManifest> with this one
+using L<ExtUtils::Manifest>.
+
+ use Test::More tests => 2;
+ use ExtUtils::Manifest;
+
+ is_deeply [ ExtUtils::Manifest::manicheck() ], [], 'missing';
+ is_deeply [ ExtUtils::Manifest::filecheck() ], [], 'extra';
+
+(L<thanks to @mohawk2|https://github.com/reneeb/Test-CheckManifest/issues/20>).
+
=head1 ACKNOWLEDGEMENT
Great thanks to Christopher H. Laco, who did a lot of testing stuff for me and
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/t/03_find_home.t
new/Test-CheckManifest-1.42/t/03_find_home.t
--- old/Test-CheckManifest-1.41/t/03_find_home.t 2019-02-19
11:22:16.000000000 +0100
+++ new/Test-CheckManifest-1.42/t/03_find_home.t 2019-02-22
17:43:11.000000000 +0100
@@ -5,6 +5,7 @@
use File::Spec;
use File::Basename;
use Test::More;
+use File::Path qw(make_path remove_tree);
use Test::CheckManifest;
use Cwd;
@@ -26,6 +27,13 @@
my @dirs_five = File::Spec->splitdir( $sub->( { dir => $dir } ) );
is_deeply \@dirs_five, \@dirs_one, 'dir ' . $dir;
-#$sub->( { dir => $vol // '/' } );
+$sub->( { dir => $vol || '/' } );
+$sub->( { dir => '/this/dir/does/not/exist/test/checkmanifest' } );
+
+my $deep_path_one = File::Spec->catdir( $dir, 'deep' );
+my $deep_path_two = File::Spec->catdir( $deep_path_one, qw/path one and
another level to search for/ );
+make_path $deep_path_two;
+$sub->( { dir => $deep_path_two } );
+remove_tree $deep_path_one;
done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/t/05_is_excluded.t
new/Test-CheckManifest-1.42/t/05_is_excluded.t
--- old/Test-CheckManifest-1.41/t/05_is_excluded.t 2019-02-19
11:22:16.000000000 +0100
+++ new/Test-CheckManifest-1.42/t/05_is_excluded.t 2019-02-22
17:43:11.000000000 +0100
@@ -20,6 +20,7 @@
my $meta = 'META.yml';
my $abs_t_file = File::Spec->rel2abs( __FILE__ );
+my $bak_t_file = $abs_t_file . '.bak';
# my ($file,$dirref,$filter,$bool,$files_in_skip,$home) = @_;
@@ -80,17 +81,17 @@
"this file, t/ dir, filter: 'excluded', bool => 'and', empty
files_in_skip",
],
[
- [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and', [$abs_t_file] ],
+ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and',
[qr/\Q$abs_t_file\E/] ],
1,
"this file, t/ dir, filter: 'excluded', bool => 'and', skip this file",
],
[
- [ $abs_t_file . '.bak', [ $t_dir ], [qr/excluded/], 'and',
[$abs_t_file . '.bak'] ],
+ [ $abs_t_file . '.bak', [ $t_dir ], [qr/excluded/], 'and',
[qr/\Q$bak_t_file\E/] ],
1,
"<this_file>.bak, t/ dir, filter: 'excluded', bool => 'and', skip
backup of this file",
],
[
- [ '/tmp/test', [ $t_dir ], [qr/excluded/], 'and', [$abs_t_file .
'.bak'] ],
+ [ '/tmp/test', [ $t_dir ], [qr/excluded/], 'and',
[qr/\Q$bak_t_file\E/] ],
0,
"/tmp/test, t/ dir, filter: 'excluded', bool => 'and', skip backup of
this file",
],
@@ -100,7 +101,7 @@
"/tmp/test, t/ dir, filter: 'excluded', bool => 'and', skip /test in
/tmp",
],
[
- [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and', [$abs_t_file .
'.bak'] ],
+ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and',
[qr/\Q$bak_t_file\E/] ],
1,
"this file, t/ dir, filter: 'excluded', bool => 'and', skip backup of
this file",
],
@@ -120,7 +121,7 @@
"this file, t/ dir, filter: 'excluded', bool => 'or'",
],
[
- [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and', [$abs_t_file] ],
+ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and',
[qr/\Q$abs_t_file\E/] ],
1,
"this file, t/ dir, filter: 'excluded', bool => 'and', excluded",
],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckManifest-1.41/t/xt/03_issue7.t
new/Test-CheckManifest-1.42/t/xt/03_issue7.t
--- old/Test-CheckManifest-1.41/t/xt/03_issue7.t 2019-02-19
11:22:16.000000000 +0100
+++ new/Test-CheckManifest-1.42/t/xt/03_issue7.t 2019-02-22
17:43:11.000000000 +0100
@@ -10,7 +10,7 @@
use File::Spec;
SKIP: {
- skip 'Test not needed on Windows', 1 if $^O =~ /Win32/;
+ plan skip_all => 'Test not needed on Windows', 1 if $^O =~ /Win32/;
{
my $dir = dirname( File::Spec->rel2abs( __FILE__ ) );