Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Test-Compile for openSUSE:Factory checked in at 2022-06-16 18:21:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Compile (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Compile.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Compile" Thu Jun 16 18:21:09 2022 rev:15 rq:983150 version:3.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Compile/perl-Test-Compile.changes 2021-08-24 10:55:44.500251904 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Test-Compile.new.1548/perl-Test-Compile.changes 2022-06-16 18:22:29.764274840 +0200 @@ -1,0 +2,11 @@ +Fri Jun 3 03:07:30 UTC 2022 - Tina M??ller <timueller+p...@suse.de> + +- updated to 3.1.0 + see /usr/share/doc/packages/perl-Test-Compile/Changes + + v3.1.0 2022-06-02 + - (Tom Hukins) Treat files with .psgi extensions as perl + - (Tom Hukins) Look for file in a case insensitive manner + - Update the example code so it doesn't import anything + +------------------------------------------------------------------- Old: ---- Test-Compile-v3.0.1.tar.gz New: ---- Test-Compile-v3.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Compile.spec ++++++ --- /var/tmp/diff_new_pack.KBt3gL/_old 2022-06-16 18:22:30.120275346 +0200 +++ /var/tmp/diff_new_pack.KBt3gL/_new 2022-06-16 18:22:30.124275352 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Compile # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,10 +18,10 @@ %define cpan_name Test-Compile Name: perl-Test-Compile -Version: 3.0.1 +Version: 3.1.0 Release: 0 -Summary: Assert that your Perl files compile OK License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Assert that your Perl files compile OK URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/E/EG/EGILES/%{cpan_name}-v%{version}.tar.gz Source1: cpanspec.yml @@ -31,10 +31,9 @@ BuildRequires: perl(Exporter) >= 5.68 BuildRequires: perl(Module::Build) >= 0.380000 BuildRequires: perl(parent) >= 0.225 -BuildRequires: perl(version) +BuildRequires: perl(version) >= 0.77 Requires: perl(Exporter) >= 5.68 Requires: perl(parent) >= 0.225 -Requires: perl(version) %{perl_requires} %description @@ -51,7 +50,8 @@ #!perl use strict; use warnings; - use Test::Compile; + use Test::Compile qw(); + my $test = Test::Compile->new(); $test->all_files_ok(); $test->done_testing(); ++++++ Test-Compile-v3.0.1.tar.gz -> Test-Compile-v3.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/Build.PL new/Test-Compile-v3.1.0/Build.PL --- old/Test-Compile-v3.0.1/Build.PL 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/Build.PL 2022-06-02 07:31:28.000000000 +0200 @@ -10,12 +10,14 @@ abstract_from => 'lib/Test/Compile.pm', dist_author => 'Evan Giles <egi...@cpan.org>', license => 'perl', - configure_requires => { 'Module::Build' => 0.38 }, + configure_requires => { + 'Module::Build' => 0.38, + 'version' => 0.77 + }, requires => { - 'perl' => '5.10.0', - 'version' => 0, - 'parent' => '0.225', - 'Exporter' => '5.68', + 'perl' => '5.10.0', + 'parent' => '0.225', + 'Exporter' => '5.68', }, create_makefile_pl => 'traditional', meta_merge => { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/Changes new/Test-Compile-v3.1.0/Changes --- old/Test-Compile-v3.0.1/Changes 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/Changes 2022-06-02 07:31:28.000000000 +0200 @@ -1,5 +1,10 @@ Revision history for Perl extension Test-Compile +v3.1.0 2022-06-02 + - (Tom Hukins) Treat files with .psgi extensions as perl + - (Tom Hukins) Look for file in a case insensitive manner + - Update the example code so it doesn't import anything + v3.0.1 2021-08-22 - (waterkip) Really remove UNIVERSAL::require (CPAN-RT 138934) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/MANIFEST new/Test-Compile-v3.1.0/MANIFEST --- old/Test-Compile-v3.0.1/MANIFEST 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/MANIFEST 2022-06-02 07:31:28.000000000 +0200 @@ -9,6 +9,8 @@ META.yml README t/000-compile.t +t/100-internal--find-files-ignores-cvs.t +t/100-internal--find-files-ignores-svn.t t/100-internal--find-files.t t/100-internal--is-in-taint-mode.t t/100-internal--read-shebang.t @@ -25,6 +27,7 @@ t/200-all-files-ok.t t/200-all-pm-files-ok.t t/200-all-pl-files-ok.t +t/200-all-pl-files.t t/200-px-file-ok.t t/200-taint.t t/999-has-version.t @@ -34,7 +37,7 @@ t/999-portability.t t/999-synopsis.t t/999-version.t -t/perlcriticrc +t/scripts/.svn/Ignore.pm t/scripts/CVS/Ignore.pm t/scripts/CVS/taint2.pl t/scripts/datafile @@ -44,6 +47,7 @@ t/scripts/Module2.pm t/scripts/Module.pm t/scripts/perlscript +t/scripts/perlscript.pSgi t/scripts/shellscript t/scripts/subdir/empty t/scripts/subdir/success.pl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/META.json new/Test-Compile-v3.1.0/META.json --- old/Test-Compile-v3.0.1/META.json 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/META.json 2022-06-02 07:31:28.000000000 +0200 @@ -16,26 +16,26 @@ "prereqs" : { "configure" : { "requires" : { - "Module::Build" : "0.38" + "Module::Build" : "0.38", + "version" : "0.77" } }, "runtime" : { "requires" : { "Exporter" : "5.68", "parent" : "0.225", - "perl" : "v5.10.0", - "version" : "0" + "perl" : "v5.10.0" } } }, "provides" : { "Test::Compile" : { "file" : "lib/Test/Compile.pm", - "version" : "v3.0.1" + "version" : "v3.1.0" }, "Test::Compile::Internal" : { "file" : "lib/Test/Compile/Internal.pm", - "version" : "v3.0.1" + "version" : "v3.1.0" } }, "release_status" : "stable", @@ -47,6 +47,6 @@ "url" : "http://github.com/egiles/test-compile" } }, - "version" : "v3.0.1", + "version" : "v3.1.0", "x_serialization_backend" : "JSON::PP version 4.04" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/META.yml new/Test-Compile-v3.1.0/META.yml --- old/Test-Compile-v3.0.1/META.yml 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/META.yml 2022-06-02 07:31:28.000000000 +0200 @@ -5,6 +5,7 @@ build_requires: {} configure_requires: Module::Build: '0.38' + version: '0.77' dynamic_config: 1 generated_by: 'Module::Build version 0.4231, CPAN::Meta::Converter version 2.150010' license: perl @@ -15,17 +16,16 @@ provides: Test::Compile: file: lib/Test/Compile.pm - version: v3.0.1 + version: v3.1.0 Test::Compile::Internal: file: lib/Test/Compile/Internal.pm - version: v3.0.1 + version: v3.1.0 requires: Exporter: '5.68' parent: '0.225' perl: v5.10.0 - version: '0' resources: license: http://dev.perl.org/licenses/ repository: http://github.com/egiles/test-compile -version: v3.0.1 +version: v3.1.0 x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/Makefile.PL new/Test-Compile-v3.1.0/Makefile.PL --- old/Test-Compile-v3.0.1/Makefile.PL 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/Makefile.PL 2022-06-02 07:31:28.000000000 +0200 @@ -7,8 +7,7 @@ 'VERSION_FROM' => 'lib/Test/Compile.pm', 'PREREQ_PM' => { 'Exporter' => '5.68', - 'parent' => '0.225', - 'version' => 0 + 'parent' => '0.225' }, 'INSTALLDIRS' => 'site', 'EXE_FILES' => [], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/lib/Test/Compile/Internal.pm new/Test-Compile-v3.1.0/lib/Test/Compile/Internal.pm --- old/Test-Compile-v3.0.1/lib/Test/Compile/Internal.pm 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/lib/Test/Compile/Internal.pm 2022-06-02 07:31:28.000000000 +0200 @@ -3,7 +3,7 @@ use warnings; use strict; -use version; our $VERSION = qv("v3.0.1"); +use version; our $VERSION = version->declare("v3.1.0"); use File::Spec; use Test::Builder; use IPC::Open3 (); @@ -169,7 +169,7 @@ =item C<all_pl_files(@dirs)> Searches for and returns a list of perl script files - that is, any files that either -have a F<.pl> extension, or have no extension but have a perl shebang line. +have a case insensitive F<.pl>, F<.psgi> extension, or have no extension but have a perl shebang line. If you provide a list of C<@dirs>, it'll use that as a list of files to process, or directories to search for perl scripts. @@ -192,8 +192,8 @@ my @pl; for my $file ( $self->_find_files(@dirs) ) { - if ( $file =~ /\.pl$/ ) { - # Files with a .pl extension are perl scripts + if ( $file =~ /\.p(?:l|sgi)$/i ) { + # Files with .pl or .psgi extensions are perl scripts push @pl, $file; } elsif ( $file =~ /(?:^[^.]+$)/ ) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/lib/Test/Compile.pm new/Test-Compile-v3.1.0/lib/Test/Compile.pm --- old/Test-Compile-v3.0.1/lib/Test/Compile.pm 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/lib/Test/Compile.pm 2022-06-02 07:31:28.000000000 +0200 @@ -3,7 +3,7 @@ use warnings; use strict; -use version; our $VERSION = qv("v3.0.1"); +use version; our $VERSION = version->declare("v3.1.0"); use parent 'Exporter'; use Test::Compile::Internal; @@ -15,7 +15,7 @@ =head1 SYNOPSIS - use Test::Compile; + use Test::Compile qw(); my $test = Test::Compile->new(); $test->all_files_ok(); @@ -36,7 +36,8 @@ #!perl use strict; use warnings; - use Test::Compile; + use Test::Compile qw(); + my $test = Test::Compile->new(); $test->all_files_ok(); $test->done_testing(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/t/000-compile.t new/Test-Compile-v3.1.0/t/000-compile.t --- old/Test-Compile-v3.0.1/t/000-compile.t 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/t/000-compile.t 2022-06-02 07:31:28.000000000 +0200 @@ -3,7 +3,8 @@ use strict; use warnings; -use Test::Compile; +use Test::Compile qw(); + my $test = Test::Compile->new(); $test->all_files_ok(); $test->done_testing(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/t/100-internal--find-files-ignores-cvs.t new/Test-Compile-v3.1.0/t/100-internal--find-files-ignores-cvs.t --- old/Test-Compile-v3.0.1/t/100-internal--find-files-ignores-cvs.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Compile-v3.1.0/t/100-internal--find-files-ignores-cvs.t 2022-06-02 07:31:28.000000000 +0200 @@ -0,0 +1,24 @@ +#!perl + +use strict; +use warnings; + +use Test::More; +use Test::Compile::Internal; + +my $internal = Test::Compile::Internal->new(); + + +## Given + +## When +my @files; +my @cvsfiles; +@files = $internal->_find_files('t/scripts/'); +@cvsfiles = grep(/Ignore.pm/, @files); + +## Then +ok(scalar @files > 0, 'Found some files ...'); +ok(scalar @cvsfiles == 0, "Didn't fild the file in the CVS dir"); + +$internal->done_testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/t/100-internal--find-files-ignores-svn.t new/Test-Compile-v3.1.0/t/100-internal--find-files-ignores-svn.t --- old/Test-Compile-v3.0.1/t/100-internal--find-files-ignores-svn.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Compile-v3.1.0/t/100-internal--find-files-ignores-svn.t 2022-06-02 07:31:28.000000000 +0200 @@ -0,0 +1,24 @@ +#!perl + +use strict; +use warnings; + +use Test::More; +use Test::Compile::Internal; + +my $internal = Test::Compile::Internal->new(); + + +## Given + +## When +my @files; +my @snvfiles; +@files = $internal->_find_files('t/scripts/'); +@snvfiles = grep(/Ignore.pm/, @files); + +## Then +ok(scalar @files > 0, 'Found some files ...'); +ok(scalar @snvfiles == 0, "Didn't fild the file in the SVN dir"); + +$internal->done_testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/t/100-internal--find-files.t new/Test-Compile-v3.1.0/t/100-internal--find-files.t --- old/Test-Compile-v3.0.1/t/100-internal--find-files.t 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/t/100-internal--find-files.t 2022-06-02 07:31:28.000000000 +0200 @@ -20,13 +20,10 @@ is(scalar @files, 0 ,"Didn't find non existent file"); @files = sort $internal->_find_files('t/scripts/'); -is(scalar @files, 11 ,'Found all the files in the scripts dir'); +is(scalar @files, 12 ,'Found all the files in the scripts dir'); @files = sort $internal->_find_files('t/scripts/datafile'); is(scalar @files, 1 ,'Found the file we specified'); -## Hrmm, it would nice if _find_files could ignore this CVS dir -#@files = sort $internal->_find_files('t/scripts/CVS/'); -#is(scalar @files, 0 ,'Ignored the files in the CVS dir'); $internal->done_testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/t/100-internal-all-pl-files.t new/Test-Compile-v3.1.0/t/100-internal-all-pl-files.t --- old/Test-Compile-v3.0.1/t/100-internal-all-pl-files.t 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/t/100-internal-all-pl-files.t 2022-06-02 07:31:28.000000000 +0200 @@ -17,12 +17,13 @@ is(scalar @files,0,'Found correct number of scripts in default location'); @files = sort $internal->all_pl_files('t/scripts'); -is(scalar @files,5,'Found correct number of scripts in t/scripts'); +is(scalar @files,6,'Found correct number of scripts in t/scripts'); like($files[0],qr/t.scripts.failure.pl/,'Found script: failure.pl'); like($files[1],qr/t.scripts.lib.pl/,'Found script: lib.pl'); -like($files[2],qr/t.scripts.perlscript/,'Found script: perlscript'); -like($files[3],qr/t.scripts.subdir.success.pl/,'Found script: success.pl'); -like($files[4],qr/t.scripts.taint.pl/,'Found script: taint.pl'); +like($files[2],qr/t.scripts.perlscript$/,'Found script: perlscript'); +like($files[3],qr/t.scripts.perlscript.psgi/i,'Found script: perlscript.pSgi'); +like($files[4],qr/t.scripts.subdir.success.pl/,'Found script: success.pl'); +like($files[5],qr/t.scripts.taint.pl/,'Found script: taint.pl'); # Try specifying som files rather than directories my @search = ('t/scripts/failure.pl', 't/scripts/Module.pm'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/t/200-all-pl-files.t new/Test-Compile-v3.1.0/t/200-all-pl-files.t --- old/Test-Compile-v3.0.1/t/200-all-pl-files.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Compile-v3.1.0/t/200-all-pl-files.t 2022-06-02 07:31:28.000000000 +0200 @@ -0,0 +1,19 @@ +#!perl +use strict; +use warnings; +use Test::More tests => 2; + +use Test::Compile; + +# this file is mostly just to increase the coverage. +# ..The main test should be testing Test::Compile->all_pl_files() directly + +# Given +my $plinput = 't/scripts/subdir/success.pl'; + +# When +my @plfiles = all_pl_files($plinput); + +# Then +is(@plfiles, 1, 'got one specified PL file'); +is($plfiles[0], $plinput, 'got the specified PL file'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/t/perlcriticrc new/Test-Compile-v3.1.0/t/perlcriticrc --- old/Test-Compile-v3.0.1/t/perlcriticrc 2021-08-22 01:41:32.000000000 +0200 +++ new/Test-Compile-v3.1.0/t/perlcriticrc 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -# no strict 'refs' -[TestingAndDebugging::ProhibitNoStrict] -allow = refs - -[-BuiltinFunctions::ProhibitStringyEval] -[-ControlStructures::ProhibitMutatingListFunctions] -[-Subroutines::ProhibitExplicitReturnUndef] -[-Subroutines::ProhibitSubroutinePrototypes] -[-Variables::ProhibitConditionalDeclarations] - -# for mkdir $dir, 0777 -[-ValuesAndExpressions::ProhibitLeadingZeros] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Compile-v3.0.1/t/scripts/perlscript.pSgi new/Test-Compile-v3.1.0/t/scripts/perlscript.pSgi --- old/Test-Compile-v3.0.1/t/scripts/perlscript.pSgi 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Compile-v3.1.0/t/scripts/perlscript.pSgi 2022-06-02 07:31:28.000000000 +0200 @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "ok\n";