Hello community, here is the log from the commit of package perl-Test-Pod for openSUSE:Factory checked in at 2013-06-14 16:47:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Pod (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Pod.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Pod" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Pod/perl-Test-Pod.changes 2011-09-23 12:39:07.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Test-Pod.new/perl-Test-Pod.changes 2013-06-14 16:47:44.000000000 +0200 @@ -1,0 +2,15 @@ +Tue Jun 4 15:06:39 UTC 2013 - [email protected] + +- updated to 1.48 + * Fixed test failure with versions of Pod::Simple lower than 3.24. Thanks + to Martin Holste and Tatsuhiko Miyagawa for the reports. + + * Fixed failing test on Pod::Simple 3.27 and higher. + + * Fixed a crash when `all_pod_files_ok()` finds no files to test. Thanks + to H.Merijn Brand. + * Switched from custom file searching code to File::Find. Suggested by + H.Merijn Brand. + * Fixed failing test on Pod::Simple 3.24. + +------------------------------------------------------------------- Old: ---- Test-Pod-1.45.tar.gz New: ---- Test-Pod-1.48.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Pod.spec ++++++ --- /var/tmp/diff_new_pack.snnS9n/_old 2013-06-14 16:47:45.000000000 +0200 +++ /var/tmp/diff_new_pack.snnS9n/_new 2013-06-14 16:47:45.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Pod # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,29 +16,28 @@ # - Name: perl-Test-Pod -Version: 1.45 -Release: 1 -License: Artistic-2.0 or GPL-2.0 +Version: 1.48 +Release: 0 %define cpan_name Test-Pod Summary: check for POD errors in files +License: Artistic-2.0 or GPL-2.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-Pod/ -#Source: http://www.cpan.org/authors/id/D/DW/DWHEELER/Test-Pod-%{version}.tar.gz Source: http://www.cpan.org/authors/id/D/DW/DWHEELER/%{cpan_name}-%{version}.tar.gz +# MANUAL LICENSE BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) +BuildRequires: perl(Module::Build) >= 0.30 +BuildRequires: perl(Pod::Simple) >= 3.05 +Requires: perl(Pod::Simple) >= 3.05 BuildRequires: perl(File::Spec) BuildRequires: perl(Test::More) >= 0.62 -BuildRequires: perl(Pod::Simple) >= 3.05 Requires: perl(File::Spec) -Requires: perl(Test::More) >= 0.62 -Requires: perl(Pod::Simple) >= 3.05 Requires: perl(Test::Builder::Tester) >= 1.02 +Requires: perl(Test::More) >= 0.62 %{perl_requires} %description @@ -59,11 +58,8 @@ ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(644,root,root,755) +%defattr(-,root,root,755) %doc Changes README %changelog ++++++ Test-Pod-1.45.tar.gz -> Test-Pod-1.48.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/Build.PL new/Test-Pod-1.48/Build.PL --- old/Test-Pod-1.45/Build.PL 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/Build.PL 2013-05-06 06:47:26.000000000 +0200 @@ -13,7 +13,7 @@ 'Test::More' => '0.62', }, requires => { - 'File::Spec' => 0, + 'File::Find' => 0, 'Pod::Simple' => '3.05', 'Test::Builder::Tester' => '1.02', 'Test::More' => '0.62', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/Changes new/Test-Pod-1.48/Changes --- old/Test-Pod-1.45/Changes 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/Changes 2013-05-06 06:47:26.000000000 +0200 @@ -1,15 +1,29 @@ Change log for Test::Pod -1.45 2011-03-09T20:00:59 +1.48 - 2013-05-06T04:47:00Z + * Fixed test failure with versions of Pod::Simple lower than 3.24. Thanks + to Martin Holste and Tatsuhiko Miyagawa for the reports. + +1.47 - 2013-05-05T03:14:25Z + * Fixed failing test on Pod::Simple 3.27 and higher. + +1.46 - 2013-02-16T19:46:17Z + * Fixed a crash when `all_pod_files_ok()` finds no files to test. Thanks + to H.Merijn Brand. + * Switched from custom file searching code to File::Find. Suggested by + H.Merijn Brand. + * Fixed failing test on Pod::Simple 3.24. + +1.45 - 2011-03-09T20:00:59 * Removed Module::Build from `build_requires`, since it does nothing out-of-the ordinary, and this keeps it out of the `Makefile.PL`'s `PM_PREREQ`. Per gripe from Peter Scott. -1.44 2010-04-26T17:33:02 +1.44 - 2010-04-26T17:33:02 * Restored the `Makefile.PL` by using Module::Build::Compat's "traditional" configuration. -1.43 2010-04-21T02:33:59 +1.43 - 2010-04-21T02:33:59 * Reduced prereq for Test::More to 0.62, prereq for Pod::Simple to 3.05, and added File::Spec to the list of prereqs. The prerequisites were needlessly high, and by reducing them Test::Pod can rely on the core diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/MANIFEST new/Test-Pod-1.48/MANIFEST --- old/Test-Pod-1.45/MANIFEST 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/MANIFEST 2013-05-06 06:47:26.000000000 +0200 @@ -3,6 +3,7 @@ lib/Test/Pod.pm Makefile.PL MANIFEST This list of files +META.json META.yml README t/00-load.t @@ -25,4 +26,3 @@ t/spaced-directives.t t/unknown-directive.pod t/unknown-directive.t -META.json diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/META.json new/Test-Pod-1.48/META.json --- old/Test-Pod-1.45/META.json 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/META.json 2013-05-06 06:47:26.000000000 +0200 @@ -4,7 +4,7 @@ "Currently maintained by David E. Wheeler, C<< <[email protected]> >>." ], "dynamic_config" : 1, - "generated_by" : "Module::Build version 0.3706, CPAN::Meta::Converter version 2.110550", + "generated_by" : "Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921", "license" : [ "perl_5" ], @@ -16,7 +16,7 @@ "prereqs" : { "build" : { "requires" : { - "File::Spec" : 0, + "File::Spec" : "0", "Pod::Simple" : "3.05", "Test::More" : "0.62" } @@ -28,7 +28,7 @@ }, "runtime" : { "requires" : { - "File::Spec" : 0, + "File::Find" : "0", "Pod::Simple" : "3.05", "Test::Builder::Tester" : "1.02", "Test::More" : "0.62" @@ -38,7 +38,7 @@ "provides" : { "Test::Pod" : { "file" : "lib/Test/Pod.pm", - "version" : "1.45" + "version" : "1.48" } }, "release_status" : "stable", @@ -54,5 +54,5 @@ "url" : "http://github.com/theory/test-pod/tree/" } }, - "version" : "1.45" + "version" : "1.48" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/META.yml new/Test-Pod-1.48/META.yml --- old/Test-Pod-1.45/META.yml 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/META.yml 2013-05-06 06:47:26.000000000 +0200 @@ -9,7 +9,7 @@ configure_requires: Module::Build: 0.30 dynamic_config: 1 -generated_by: 'Module::Build version 0.3706, CPAN::Meta::Converter version 2.110550' +generated_by: 'Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -18,9 +18,9 @@ provides: Test::Pod: file: lib/Test/Pod.pm - version: 1.45 + version: 1.48 requires: - File::Spec: 0 + File::Find: 0 Pod::Simple: 3.05 Test::Builder::Tester: 1.02 Test::More: 0.62 @@ -29,4 +29,4 @@ homepage: http://search.cpan.org/dist/Test-Pod/ license: http://dev.perl.org/licenses/ repository: http://github.com/theory/test-pod/tree/ -version: 1.45 +version: 1.48 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/Makefile.PL new/Test-Pod-1.48/Makefile.PL --- old/Test-Pod-1.45/Makefile.PL 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/Makefile.PL 2013-05-06 06:47:26.000000000 +0200 @@ -1,10 +1,11 @@ -# Note: this file was auto-generated by Module::Build::Compat version 0.37_06 +# Note: this file was auto-generated by Module::Build::Compat version 0.4003 use ExtUtils::MakeMaker; WriteMakefile ( 'NAME' => 'Test::Pod', 'VERSION_FROM' => 'lib/Test/Pod.pm', 'PREREQ_PM' => { + 'File::Find' => 0, 'File::Spec' => 0, 'Pod::Simple' => '3.05', 'Test::Builder::Tester' => '1.02', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/README new/Test-Pod-1.48/README --- old/Test-Pod-1.45/README 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/README 2013-05-06 06:47:26.000000000 +0200 @@ -1,4 +1,4 @@ -Test/Pod version 1.45 +Test/Pod version 1.48 ===================== This library's module, Test::Pod, provides an interface for validating POD in diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/lib/Test/Pod.pm new/Test-Pod-1.48/lib/Test/Pod.pm --- old/Test-Pod-1.45/lib/Test/Pod.pm 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/lib/Test/Pod.pm 2013-05-06 06:47:26.000000000 +0200 @@ -8,11 +8,11 @@ =head1 VERSION -Version 1.45 +Version 1.48 =cut -our $VERSION = '1.45'; +our $VERSION = '1.48'; =head1 SYNOPSIS @@ -64,7 +64,6 @@ use 5.008; use Test::Builder; -use File::Spec; use Pod::Simple; our %ignore_dirs = ( @@ -175,6 +174,11 @@ my @args = @_ ? @_ : _starting_points(); my @files = map { -d $_ ? all_pod_files($_) : $_ } @args; + unless (@files) { + $Test->skip_all( "No files found in (@args)\n" ); + return 1; + } + $Test->plan( tests => scalar @files ); my $ok = 1; @@ -188,8 +192,8 @@ Returns a list of all the Perl files in I<@dirs> and in directories below. If no directories are passed, it defaults to F<blib> if F<blib> exists, or else -F<lib> if not. Skips any files in CVS, .svn, .git and similar directories. See -C<%Test::Pod::ignore_dirs> for a list of them. +F<lib> if not. Skips any files in F<CVS>, F<.svn>, F<.git> and similar +directories. See C<%Test::Pod::ignore_dirs> for a list of them. A Perl file is: @@ -209,34 +213,12 @@ =cut sub all_pod_files { - my @queue = @_ ? @_ : _starting_points(); - my @pod = (); - - while ( @queue ) { - my $file = shift @queue; - if ( -d $file ) { - local *DH; - opendir DH, $file or next; - my @newfiles = readdir DH; - closedir DH; - - @newfiles = File::Spec->no_upwards( @newfiles ); - @newfiles = grep { not exists $ignore_dirs{ $_ } } @newfiles; - - foreach my $newfile (@newfiles) { - my $filename = File::Spec->catfile( $file, $newfile ); - if ( -f $filename ) { - push @queue, $filename; - } - else { - push @queue, File::Spec->catdir( $file, $newfile ); - } - } - } - if ( -f $file ) { - push @pod, $file if _is_perl( $file ); - } - } # while + my @pod; + require File::Find; + File::Find::find({ + wanted => sub { -f $_ && _is_perl ($_) and push @pod, $File::Find::name }, + no_chdir => 1, + }, @_ ? @_ : _starting_points()); return @pod; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Pod-1.45/t/item-ordering.t new/Test-Pod-1.48/t/item-ordering.t --- old/Test-Pod-1.45/t/item-ordering.t 2011-03-09 21:01:14.000000000 +0100 +++ new/Test-Pod-1.48/t/item-ordering.t 2013-05-06 06:47:26.000000000 +0200 @@ -14,6 +14,21 @@ pod_file_ok( $file ); test_fail(-1); test_diag( - "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item", + ( Pod::Simple->VERSION == 3.24 ? ( + "$file (17): Expected text matching /\\s+[^\\*\\d]/ after '=item'", + "$file (21): Expected text matching /\\s+[^\\*\\d]/ after '=item'", + "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item", + ) : Pod::Simple->VERSION >= 3.27 ? ( + "$file (17): Expected text after =item, not a number", + "$file (21): Expected text after =item, not a number", + "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item", + "$file (32): =over without closing =back", + ) : Pod::Simple->VERSION >= 3.25 ? ( + "$file (17): Expected text after =item, not a number", + "$file (21): Expected text after =item, not a number", + "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item", + ) : ( + "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item", + )) ); test_test( "$file is bad" ); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
