diff -Nru libtest-checkmanifest-perl-1.26/Changes libtest-checkmanifest-perl-1.28/Changes --- libtest-checkmanifest-perl-1.26/Changes 2012-07-19 19:25:49.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/Changes 2014-01-19 12:25:42.000000000 +0000 @@ -1,21 +1,28 @@ Revision history for Perl extension Test::CheckManifest. +======================================================== -1.26 Thu Jul 19 2012 +1.28 2014-01-19 + + fix bug where some files in the selftest were skipped while the files where added to the dist. + +1.27 2014-01-17 + + added feature to specify path of MANIFEST or directory where it is stored + +1.26 2012-07-19 No changes after 1.25_01 -1.25_01 Tue Jul 17 2012 +1.25_01 2012-07-17 + Module wasn't able to find the MANIFEST when the test file was in a subdirectory - Thanks to BBYRD - sections "AUTHOR" and "COPYRIGHT AND LICENSE" were duplicated - Thanks to BIGPRESH (once from Dist::Zilla and once in the original source) -1.25 Tue Jan 31 2012 +1.25 2012-01-31 - fix typo in documentation - Thanks to BIGPRESH -1.24 Sat Apr 09 2011 +1.24 2011-04-09 + MANIFEST spec allows whitespaces in filenames (when enclosed in single quotes) this was not parsed correctly (see [#67334]). Fixed now - Thanks to JWEIGEL -1.23 Mon Mar 28 2011 +1.23 2011-03-28 + CPAN toolchain now creates MYMETA.yml and META.json. These files are in the list of recognized files now. + clarify license of this module (In README the Perl license was mentioned where @@ -23,33 +30,33 @@ + switched to Dist::Zilla + removed tests that are created by Dist::Zilla -1.22 Thu Jul 29 2010 +1.22 2010-07-29 + fix a bug that appears when there is no MANIFEST.SKIP -1.21 Wed Feb 17 2010 +1.21 2010-02-17 + return from sub when MANIFEST.SKIP does not exist -1.2 Wed Feb 03 2010 +1.2 2010-02-03 + moved from SVN to Git (and adapted the filters in testfiles) + added support for MANIFEST.SKIP + small code improvements -1.1 Sun Nov 22 2009 +1.1 2009-11-22 - CHECK as a label is not allowed in Perl > 5.11.x, so replace it + switched license to Artistic 2.0 + bugfix in 01_selftest.t -1.01 Sat Dec 29 2007 +1.01 2007-12-29 - fixes in test scripts - require 5.006001 - allow more characters in path + added license to Makefile.PL + changed META.yml -1.0 Wed Dec 27 2006 +1.0 2006-12-27 - bugfix: ok_manifest excludes files created by Module::Build -0.9 Mon Nov 27 2006 +0.9 2006-11-27 - bugfix: ok_manifest files without blib (http://rt.cpan.org/Public/Bug/Display.html?id=23580) - bugfix: Test-CheckManifest.t -- added ':' in character group (untaint $home) - bugfix: 99_pod_coverage.t -- removed all_modules and now T::P::C 1.08 or higher is required @@ -58,33 +65,33 @@ (http://rt.cpan.org/Public/Bug/Display.html?id=23529) + added: 00_load.t -0.8 Fri Nov 24 2006 +0.8 2006-11-24 + added: T::CM now tests also on files that are not part of the distro but named in the MANIFEST -0.7 Thu Nov 23 2006 +0.7 2006-11-23 + added: "filter" to exclude files that match on specific regexp from test (http://rt.cpan.org/Public/Bug/Display.html?id=23529) + added: "bool" to combine "filter" and "exclude" + added: boilerplate.t -0.6 Tue Nov 21 2006 +0.6 2006-11-21 Test scripts improved -0.5 Sat Nov 18 2006 +0.5 2006-11-18 - bugfix: T::CM now works under taint mode (http://rt.cpan.org/Public/Bug/Display.html?id=22927) + added : ok_manifest accepts hashref where specific dirs can be excluded from test -0.4 Thu Oct 19 2006 +0.4 2006-10-19 - bugfix: handles different newlines (mac, win, *nix) -0.3 Wed Oct 18 2006 +0.3 2006-10-18 - bugfix: CheckManifest works under Solaris now -0.2 +0.2 2006-10-03 - bugfix: some files excluded from test -0.1 Fri Sep 29 2006 +0.1 2006-09-29 - original version; created by h2xs 1.23 with options -XA -n Test::CheckManifest + added tests for Pod coverage, Pod, Manifest diff -Nru libtest-checkmanifest-perl-1.26/data/Test2.dat libtest-checkmanifest-perl-1.28/data/Test2.dat --- libtest-checkmanifest-perl-1.26/data/Test2.dat 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/data/Test2.dat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -This is a skipped file diff -Nru libtest-checkmanifest-perl-1.26/debian/changelog libtest-checkmanifest-perl-1.28/debian/changelog --- libtest-checkmanifest-perl-1.26/debian/changelog 2012-07-26 10:43:00.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/debian/changelog 2014-04-06 17:54:18.000000000 +0000 @@ -1,3 +1,22 @@ +libtest-checkmanifest-perl (1.28-1) unstable; urgency=low + + * Team upload. + + [ Salvatore Bonaccorso ] + * Change Vcs-Git to canonical URI (git://anonscm.debian.org) + * Change search.cpan.org based URIs to metacpan.org based URIs + + [ gregor herrmann ] + * debian/control: remove Nicholas Bamber from Uploaders on request of + the MIA team. + * Strip trailing slash from metacpan URLs. + * New upstream release. + * Refresh fix-tests.patch. + * Update upstream copyright years and email address. + * Declare compliance with Debian Policy 3.9.5. + + -- gregor herrmann Sun, 06 Apr 2014 19:53:54 +0200 + libtest-checkmanifest-perl (1.26-1) unstable; urgency=low * New upstream release diff -Nru libtest-checkmanifest-perl-1.26/debian/control libtest-checkmanifest-perl-1.28/debian/control --- libtest-checkmanifest-perl-1.26/debian/control 2012-07-26 10:43:00.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/debian/control 2014-04-06 17:54:18.000000000 +0000 @@ -1,23 +1,23 @@ Source: libtest-checkmanifest-perl +Maintainer: Debian Perl Group +Uploaders: Ryan Niebur , + Jonathan Yu , + Ansgar Burchardt , + Fabrizio Regalli , + Alessandro Ghedini Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl -Maintainer: Debian Perl Group -Uploaders: Ryan Niebur , - Jonathan Yu , - Ansgar Burchardt , - Nicholas Bamber , - Fabrizio Regalli , - Alessandro Ghedini -Standards-Version: 3.9.3 -Homepage: http://search.cpan.org/dist/Test-CheckManifest/ -Vcs-Git: git://git.debian.org/pkg-perl/packages/libtest-checkmanifest-perl.git +Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libtest-checkmanifest-perl.git +Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libtest-checkmanifest-perl.git +Homepage: https://metacpan.org/release/Test-CheckManifest Package: libtest-checkmanifest-perl Architecture: all -Depends: ${perl:Depends}, ${misc:Depends} +Depends: ${perl:Depends}, + ${misc:Depends} Description: module to check if your manifest matches your distribution Test::CheckManifest is a Perl test module that checks whether the package manifest matches your distribution. The package manifest must name all files diff -Nru libtest-checkmanifest-perl-1.26/debian/copyright libtest-checkmanifest-perl-1.28/debian/copyright --- libtest-checkmanifest-perl-1.26/debian/copyright 2012-07-26 10:43:00.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/debian/copyright 2014-04-06 17:54:18.000000000 +0000 @@ -1,10 +1,10 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Test-CheckManifest -Upstream-Contact: Renee Baecker -Source: http://search.cpan.org/dist/Test-CheckManifest/ +Upstream-Contact: Renee Baecker +Source: https://metacpan.org/release/Test-CheckManifest Files: * -Copyright: 2012, Renee Baecker +Copyright: 2014, Renee Baecker License: Artistic-2.0 Files: debian/* @@ -198,4 +198,3 @@ HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff -Nru libtest-checkmanifest-perl-1.26/debian/patches/fix-tests.patch libtest-checkmanifest-perl-1.28/debian/patches/fix-tests.patch --- libtest-checkmanifest-perl-1.26/debian/patches/fix-tests.patch 2012-07-26 10:43:00.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/debian/patches/fix-tests.patch 2014-04-06 17:54:18.000000000 +0000 @@ -1,34 +1,32 @@ Description: added .pc and debian to exclude/filter clauses Origin: vendor -Forwarded: no +Forwarded: not-needed Author: Nicholas Bamber -Reviewed-by: Alessandro Ghedini -Last-Update: 2012-07-26 +Reviewed-by: Alessandro Ghedini , gregor herrmann +Last-Update: 2014-04-06 --- a/t/01_selftest.t +++ b/t/01_selftest.t -@@ -33,7 +33,7 @@ +@@ -35,7 +35,7 @@ open $fh ,'>',$file2 and close $fh; Test::CheckManifest::_not_ok_manifest('expected: Manifest not ok'); --ok_manifest({filter => [qr/\.(?:svn|git)/]},'Filter: \.(?:svn|git)'); -+ok_manifest({filter => [qr/\.(?:svn|git|pc)/,qr/debian/]},'Filter: \.(?:svn|git)'); +-ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git|build)'); ++ok_manifest({filter => [qr/\.(?:svn|git|build)/, qr/debian/, qr/\.pc/]},'Filter: \.(?:svn|git|build)'); Test::CheckManifest::_not_ok_manifest({exclude => ['/.git/']},'expected: Manifest not ok (Exclude /.git/)'); mkdir $dir2; -@@ -44,12 +44,12 @@ - Test::CheckManifest::_not_ok_manifest({filter => [qr/\.git/], +@@ -47,11 +47,11 @@ bool => 'and', exclude => ['/t/test']}, 'filter AND exclude'); --ok_manifest({filter => [qr/\.git/], + ok_manifest({filter => [qr/\.(git|build)/], - exclude => ['/t/test']}, 'filter OR exclude'); -+ok_manifest({filter => [qr/\.(?:git|svn)/], + exclude => ['/t/test','/debian','/.pc']}, 'filter OR exclude'); unlink $file3; --ok_manifest({filter => [qr/\.git/, qr/\.svn/ ]},'Filter \.git or \.svn'); -+ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.pc/, qr/debian/ ]},'Filter \.git or \.svn'); +-ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.build/ ]},'Filter \.git or \.svn'); ++ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.build/, qr/\.pc/, qr/debian/]},'Filter \.git or \.svn'); unlink $file2, $file1; rmdir $dir; @@ -38,7 +36,17 @@ eval "use Test::CheckManifest tests => 1"; plan skip_all => "Test::CheckManifest required" if $@; --ok_manifest({filter => [qr/\.(?:svn|git)/]},'Filter: \.(?:svn|git)'); -+ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.pc/, qr/debian/ ]},'Filter \.git or \.svn'); +-ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git)'); ++ok_manifest({filter => [qr/\.(?:svn|git|build)/, qr/\.pc/, qr/debian/]},'Filter: \.(?:svn|git)'); +--- a/t/xt/02_issue1.t ++++ b/t/xt/02_issue1.t +@@ -8,6 +8,6 @@ + + { + my $dir = Cwd::getcwd(); +- ok_manifest({ filter => [ qr/\.(git|build)/, qr/Test-CheckManifest-/ ], dir => $dir }); ++ ok_manifest({ filter => [ qr/\.(git|build)/, qr/Test-CheckManifest-/, qr/debian/, qr/\.pc/ ], dir => $dir }); + + } diff -Nru libtest-checkmanifest-perl-1.26/debian/watch libtest-checkmanifest-perl-1.28/debian/watch --- libtest-checkmanifest-perl-1.26/debian/watch 2012-07-26 10:43:00.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/debian/watch 2014-04-06 17:54:18.000000000 +0000 @@ -1,4 +1,3 @@ version=3 opts="uversionmangle=s/\.\d$/$&0/" \ - http://search.cpan.org/dist/Test-CheckManifest/ \ - .*/Test-CheckManifest-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +https://metacpan.org/release/Test-CheckManifest .*/Test-CheckManifest-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ diff -Nru libtest-checkmanifest-perl-1.26/dist.ini libtest-checkmanifest-perl-1.28/dist.ini --- libtest-checkmanifest-perl-1.26/dist.ini 2012-07-19 19:25:49.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/dist.ini 1970-01-01 00:00:00.000000000 +0000 @@ -1,28 +0,0 @@ -name = Test-CheckManifest -author = Renee Baecker -license = Artistic_2_0 -copyright_holder = Renee Baecker -copyright_year = 2012 - -[VersionFromModule] - -[PodWeaver] - -[GatherDir] -[MetaYAML] -[MakeMaker] -[Readme] -[License] - -[PodCoverageTests] -[PodSyntaxTests] - -[UploadToCPAN] - -[Prereqs] -Test::Builder = 0 -File::Spec = 0 -File::Basename = 0 -File::Find = 0 -Cwd = 0 -Carp = 0 diff -Nru libtest-checkmanifest-perl-1.26/lib/Test/CheckManifest.pm libtest-checkmanifest-perl-1.28/lib/Test/CheckManifest.pm --- libtest-checkmanifest-perl-1.26/lib/Test/CheckManifest.pm 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/lib/Test/CheckManifest.pm 2014-01-19 12:25:42.000000000 +0000 @@ -12,7 +12,8 @@ use Test::Builder; use File::Find; -our $VERSION = '1.26'; +our $VERSION = '1.28'; +our $VERBOSE = 1; my $test = Test::Builder->new(); my $test_bool = 1; @@ -36,28 +37,40 @@ } sub ok_manifest{ - my ($hashref,$msg) = @_; + my ($hashref,$msg) = @_; $test->plan(tests => 1) unless $plan; my $is_hashref = 1; $is_hashref = 0 unless ref($hashref); - $msg = $hashref unless $is_hashref; + unless ( $is_hashref ) { + $msg = $hashref; + $hashref = {}; + } + + my $tmp_path = dirname( File::Spec->rel2abs( $0 ) ); + + if ( $hashref->{file} ) { + $tmp_path = dirname $hashref->{file}; + } + elsif ( $hashref->{dir} ) { + $tmp_path = $hashref->{dir}; + } my $bool = 1; - my $home = Cwd::realpath( dirname ( File::Spec->rel2abs($0) ) ); + my $home = Cwd::realpath( $tmp_path ); my $manifest; my $counter = 0; while ( 1 ) { - my $tmp_home = Cwd::realpath( $home . '/..' ); + my $manifest_path = File::Spec->catfile( $home . '/MANIFEST' ); + last if -f $manifest_path; - last if $tmp_home eq $home || $counter++ == 20; - $home = $tmp_home; + my $tmp_home = Cwd::realpath( File::Spec->catdir( $home, '..' ) ); - my $manifest_path = File::Spec->catfile( $home . '/MANIFEST' ); - last if -e $manifest_path; + last if !$tmp_home || $tmp_home eq $home || $counter++ == 20; + $home = $tmp_home; } eval { $manifest = Cwd::realpath( $home . '/MANIFEST' ); 1; }; @@ -66,7 +79,8 @@ } my $skip; - eval { $skip = Cwd::realpath( $home . '/MANIFEST.SKIP' ); 1; }; + my $skip_path = File::Spec->catfile( $home, 'MANIFEST.SKIP' ); + eval { $skip = Cwd::realpath( $skip_path ) if -f $skip_path; 1; }; my @missing_files = (); my @files_plus = (); @@ -101,7 +115,7 @@ my $files_in_skip = _read_skip( $skip, \$msg, \$bool ); last unless $files_in_skip; - + my @files = _read_file( $fh ); close $fh; @@ -165,19 +179,24 @@ my $plus = 'The following files are not part of distro but named in the MANIFEST file: '. join(', ',@files_plus); - $test->is_num($test_bool,$bool,$msg); - $test->diag($diag) if scalar @missing_files >= 1 and $test_bool == 1; - $test->diag($plus) if scalar @files_plus >= 1 and $test_bool == 1; + $test->is_num($bool,$test_bool,$msg); + $test->diag($diag) if scalar @missing_files >= 1 and $test_bool == 1 and $VERBOSE; + $test->diag($plus) if scalar @files_plus >= 1 and $test_bool == 1 and $VERBOSE; } sub _read_file { my ($fh) = @_; my @files; + my $selftest = 0; + while( my $fh_line = <$fh> ){ chomp $fh_line; + $selftest++ if $fh_line =~ m{# MANIFEST for Test-CheckManifest}; + next if $fh_line =~ m{ \A \s* \# }x; + next if $selftest && $fh_line =~ m{# selftest}; my ($file); @@ -189,7 +208,7 @@ } next unless $file; - + push @files, $file; } @@ -204,8 +223,10 @@ sub _is_excluded{ my ($file,$dirref,$filter,$bool,$files_in_skip,$home) = @_; - my @excluded_files = qw(pm_to_blib Makefile META.yml Build pod2htmd.tmp - pod2htmi.tmp Build.bat .cvsignore MYMETA.json); + my @excluded_files = qw( + pm_to_blib Makefile META.yml Build pod2htmd.tmp + pod2htmi.tmp Build.bat .cvsignore MYMETA.json MYMETA.yml + ); if ( $files_in_skip and 'ARRAY' eq ref $files_in_skip ) { (my $local_file = $file) =~ s{\Q$home\E/?}{}; @@ -251,6 +272,7 @@ 1; +__END__ =pod @@ -260,17 +282,13 @@ =head1 VERSION -version 1.26 +version 1.28 =head1 SYNOPSIS use Test::CheckManifest; ok_manifest(); -=head1 DESCRIPTION - -C - =head2 EXPORT There is only one method exported: C @@ -353,18 +371,14 @@ =head1 AUTHOR -Renee Baecker +Renee Baecker =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2012 by Renee Baecker. +This software is Copyright (c) 2014 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) =cut - - -__END__ - diff -Nru libtest-checkmanifest-perl-1.26/LICENSE libtest-checkmanifest-perl-1.28/LICENSE --- libtest-checkmanifest-perl-1.26/LICENSE 2012-07-19 19:25:49.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/LICENSE 2014-01-19 12:25:42.000000000 +0000 @@ -1,4 +1,4 @@ -This software is Copyright (c) 2012 by Renee Baecker. +This software is Copyright (c) 2014 by Renee Baecker. This is free software, licensed under: diff -Nru libtest-checkmanifest-perl-1.26/Makefile.PL libtest-checkmanifest-perl-1.28/Makefile.PL --- libtest-checkmanifest-perl-1.26/Makefile.PL 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/Makefile.PL 2014-01-19 12:25:42.000000000 +0000 @@ -10,7 +10,7 @@ my %WriteMakefileArgs = ( "ABSTRACT" => "Check if your Manifest matches your distro", - "AUTHOR" => "Renee Baecker ", + "AUTHOR" => "Renee Baecker ", "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.30" @@ -27,13 +27,27 @@ "File::Spec" => 0, "Test::Builder" => 0 }, - "VERSION" => "1.26", + "TEST_REQUIRES" => {}, + "VERSION" => "1.28", "test" => { - "TESTS" => "t/*.t t/extra/*.t" + "TESTS" => "t/*.t t/extra/*.t t/xt/*.t" } ); +unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { + my $tr = delete $WriteMakefileArgs{TEST_REQUIRES}; + my $br = $WriteMakefileArgs{BUILD_REQUIRES}; + for my $mod ( keys %$tr ) { + if ( exists $br->{$mod} ) { + $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod}; + } + else { + $br->{$mod} = $tr->{$mod}; + } + } +} + unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; my $pp = $WriteMakefileArgs{PREREQ_PM}; diff -Nru libtest-checkmanifest-perl-1.26/MANIFEST libtest-checkmanifest-perl-1.28/MANIFEST --- libtest-checkmanifest-perl-1.26/MANIFEST 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/MANIFEST 2014-01-19 12:25:42.000000000 +0000 @@ -1,19 +1,12 @@ Changes -Makefile.PL +LICENSE MANIFEST +META.yml +Makefile.PL README -LICENSE - +lib/Test/CheckManifest.pm t/00_load.t t/01_selftest.t -t/98_boilerplate.t -'t/file with whitespaces.txt' - t/extra/02_test_in_subdirectory.t - -xt/release/pod-syntax.t -xt/release/pod-coverage.t - -lib/Test/CheckManifest.pm - -META.yml +'t/file with whitespaces.txt' +t/xt/02_issue1.t diff -Nru libtest-checkmanifest-perl-1.26/MANIFEST.SKIP libtest-checkmanifest-perl-1.28/MANIFEST.SKIP --- libtest-checkmanifest-perl-1.26/MANIFEST.SKIP 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/MANIFEST.SKIP 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -^Test.txt$ -data/Test2.dat -\.SKIP$ -dist.ini \ No newline at end of file diff -Nru libtest-checkmanifest-perl-1.26/META.yml libtest-checkmanifest-perl-1.28/META.yml --- libtest-checkmanifest-perl-1.26/META.yml 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/META.yml 2014-01-19 12:25:42.000000000 +0000 @@ -1,12 +1,12 @@ --- abstract: 'Check if your Manifest matches your distro' author: - - 'Renee Baecker ' + - 'Renee Baecker ' build_requires: {} configure_requires: ExtUtils::MakeMaker: 6.30 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300003, CPAN::Meta::Converter version 2.112621' +generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132830' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -19,4 +19,8 @@ File::Find: 0 File::Spec: 0 Test::Builder: 0 -version: 1.26 +resources: + 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.28 diff -Nru libtest-checkmanifest-perl-1.26/README libtest-checkmanifest-perl-1.28/README --- libtest-checkmanifest-perl-1.26/README 2012-07-19 19:25:49.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/README 2014-01-19 12:25:42.000000000 +0000 @@ -1,11 +1,11 @@ This archive contains the distribution Test-CheckManifest, -version 1.26: +version 1.28: Check if your Manifest matches your distro -This software is Copyright (c) 2012 by Renee Baecker. +This software is Copyright (c) 2014 by Renee Baecker. This is free software, licensed under: diff -Nru libtest-checkmanifest-perl-1.26/t/01_selftest.t libtest-checkmanifest-perl-1.28/t/01_selftest.t --- libtest-checkmanifest-perl-1.26/t/01_selftest.t 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/t/01_selftest.t 2014-01-19 12:25:42.000000000 +0000 @@ -9,6 +9,8 @@ eval "use Test::CheckManifest tests => 9"; plan skip_all => "Test::CheckManifest required" if $@; +#$Test::CheckManifest::VERBOSE = 0; + # create a directory and a file my $home = dirname(File::Spec->rel2abs($0)); @@ -33,7 +35,7 @@ open $fh ,'>',$file2 and close $fh; Test::CheckManifest::_not_ok_manifest('expected: Manifest not ok'); -ok_manifest({filter => [qr/\.(?:svn|git)/]},'Filter: \.(?:svn|git)'); +ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git|build)'); Test::CheckManifest::_not_ok_manifest({exclude => ['/.git/']},'expected: Manifest not ok (Exclude /.git/)'); mkdir $dir2; @@ -44,12 +46,12 @@ Test::CheckManifest::_not_ok_manifest({filter => [qr/\.git/], bool => 'and', exclude => ['/t/test']}, 'filter AND exclude'); -ok_manifest({filter => [qr/\.git/], +ok_manifest({filter => [qr/\.(git|build)/], exclude => ['/t/test']}, 'filter OR exclude'); unlink $file3; -ok_manifest({filter => [qr/\.git/, qr/\.svn/ ]},'Filter \.git or \.svn'); +ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.build/ ]},'Filter \.git or \.svn'); unlink $file2, $file1; rmdir $dir; diff -Nru libtest-checkmanifest-perl-1.26/t/98_boilerplate.t libtest-checkmanifest-perl-1.28/t/98_boilerplate.t --- libtest-checkmanifest-perl-1.26/t/98_boilerplate.t 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/t/98_boilerplate.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,48 +0,0 @@ -#!perl -T - -use strict; -use warnings; -use Test::More tests => 3; - -sub not_in_file_ok { - my ($filename, %regex) = @_; - open my $fh, "<", $filename - or die "couldn't open $filename for reading: $!"; - - my %violated; - - while (my $line = <$fh>) { - while (my ($desc, $regex) = each %regex) { - if ($line =~ $regex) { - push @{$violated{$desc}||=[]}, $.; - } - } - } - - if (%violated) { - fail("$filename contains boilerplate text"); - diag "$_ appears on lines @{$violated{$_}}" for keys %violated; - } else { - pass("$filename contains no boilerplate text"); - } -} - -not_in_file_ok(README => - "The README is used..." => qr/The README is used/, - "'version information here'" => qr/to provide version information/, -); - -not_in_file_ok(Changes => - "placeholder date/time" => qr(Date/time) -); - -sub module_boilerplate_ok { - my ($module) = @_; - not_in_file_ok($module => - 'the great new $MODULENAME' => qr/ - The great new /, - 'boilerplate description' => qr/Quick summary of what the module/, - 'stub function definition' => qr/function[12]/, - ); -} - -module_boilerplate_ok('lib/Test/CheckManifest.pm'); diff -Nru libtest-checkmanifest-perl-1.26/t/extra/02_test_in_subdirectory.t libtest-checkmanifest-perl-1.28/t/extra/02_test_in_subdirectory.t --- libtest-checkmanifest-perl-1.26/t/extra/02_test_in_subdirectory.t 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/t/extra/02_test_in_subdirectory.t 2014-01-19 12:25:42.000000000 +0000 @@ -9,6 +9,6 @@ eval "use Test::CheckManifest tests => 1"; plan skip_all => "Test::CheckManifest required" if $@; -ok_manifest({filter => [qr/\.(?:svn|git)/]},'Filter: \.(?:svn|git)'); +ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git)'); diff -Nru libtest-checkmanifest-perl-1.26/t/xt/02_issue1.t libtest-checkmanifest-perl-1.28/t/xt/02_issue1.t --- libtest-checkmanifest-perl-1.26/t/xt/02_issue1.t 1970-01-01 00:00:00.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/t/xt/02_issue1.t 2014-01-19 12:25:42.000000000 +0000 @@ -0,0 +1,13 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Test::CheckManifest; +use Cwd; + +{ + my $dir = Cwd::getcwd(); + ok_manifest({ filter => [ qr/\.(git|build)/, qr/Test-CheckManifest-/ ], dir => $dir }); + +} diff -Nru libtest-checkmanifest-perl-1.26/Test.txt libtest-checkmanifest-perl-1.28/Test.txt --- libtest-checkmanifest-perl-1.26/Test.txt 2012-07-19 19:25:49.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/Test.txt 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -Test \ No newline at end of file diff -Nru libtest-checkmanifest-perl-1.26/xt/release/pod-coverage.t libtest-checkmanifest-perl-1.28/xt/release/pod-coverage.t --- libtest-checkmanifest-perl-1.26/xt/release/pod-coverage.t 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/xt/release/pod-coverage.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -#!perl - -use Test::More; - -eval "use Test::Pod::Coverage 1.08"; -plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage" - if $@; - -eval "use Pod::Coverage::TrustPod"; -plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage" - if $@; - -all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff -Nru libtest-checkmanifest-perl-1.26/xt/release/pod-syntax.t libtest-checkmanifest-perl-1.28/xt/release/pod-syntax.t --- libtest-checkmanifest-perl-1.26/xt/release/pod-syntax.t 2012-07-19 19:25:50.000000000 +0000 +++ libtest-checkmanifest-perl-1.28/xt/release/pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -#!perl -use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; - -all_pod_files_ok();