Hello community,
here is the log from the commit of package perl-Test-Compile for
openSUSE:Factory checked in at 2019-06-19 21:13:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-Compile (Old)
and /work/SRC/openSUSE:Factory/.perl-Test-Compile.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Compile"
Wed Jun 19 21:13:58 2019 rev:4 rq:710859 version:2.0.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Test-Compile/perl-Test-Compile.changes
2015-09-30 05:52:19.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Test-Compile.new.4811/perl-Test-Compile.changes
2019-06-19 21:14:33.934872624 +0200
@@ -1,0 +2,17 @@
+Wed Jun 19 05:32:26 UTC 2019 - Stephan Kulow
<coolo@please-enter-an-email-address>
+
+- updated to 2.0.0
+ see /usr/share/doc/packages/perl-Test-Compile/Changes
+
+ v2.0_0 2019-06-18 (DEV RELEASE)
+ Łukasz Hejnak <[email protected]>
+ - Replaced import() with Exporter usage.
+ - Added all_files_ok to the procedural mode.
+ - Added .git to list of directories ignored when looking for pm/pl files.
+ - Added an else clause for pl_file_compiles so that it catches file not
found errors.
+ Evan Giles <[email protected]>
+ - Remove 'exported_to' function
+ - Remove cleanup steps from the Build.PL file
+ - Bump version number for backwards incompatible changes (semver.org)
+
+-------------------------------------------------------------------
Old:
----
Test-Compile-v1.3.0.tar.gz
New:
----
Test-Compile-v2.0.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Test-Compile.spec ++++++
--- /var/tmp/diff_new_pack.OHKnhC/_old 2019-06-19 21:14:35.154873867 +0200
+++ /var/tmp/diff_new_pack.OHKnhC/_new 2019-06-19 21:14:35.158873871 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-Compile
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,28 +12,32 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Test-Compile
-Version: 1.3.0
+Version: 2.0.0
Release: 0
%define cpan_name Test-Compile
Summary: Check whether Perl files compile correctly
-License: Artistic-1.0 or GPL-1.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/Test-Compile/
-Source0:
http://www.cpan.org/authors/id/E/EG/EGILES/%{cpan_name}-v%{version}.tar.gz
+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
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
+BuildRequires: perl(Exporter) >= 5.68
BuildRequires: perl(Module::Build) >= 0.380000
BuildRequires: perl(UNIVERSAL::require)
+BuildRequires: perl(parent) >= 0.225
BuildRequires: perl(version)
+Requires: perl(Exporter) >= 5.68
Requires: perl(UNIVERSAL::require)
+Requires: perl(parent) >= 0.225
Requires: perl(version)
Recommends: perl(Devel::CheckOS)
%{perl_requires}
@@ -60,10 +64,10 @@
%prep
%setup -q -n %{cpan_name}-v%{version}
-find . -type f -print0 | xargs -0 chmod 644
+find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
@@ -75,6 +79,7 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes LICENSE README
+%doc Changes README
+%license LICENSE
%changelog
++++++ Test-Compile-v1.3.0.tar.gz -> Test-Compile-v2.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/Build.PL
new/Test-Compile-v2.0.0/Build.PL
--- old/Test-Compile-v1.3.0/Build.PL 2015-09-24 06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/Build.PL 2019-06-18 12:37:50.000000000 +0200
@@ -15,6 +15,8 @@
'perl' => '5.6.2',
'UNIVERSAL::require' => 0,
'version' => 0,
+ 'parent' => '0.225',
+ 'Exporter' => '5.68',
},
recommends => {
'Devel::CheckOS' => 0,
@@ -25,7 +27,6 @@
repository => "http://github.com/egiles/test-compile",
}
},
- add_to_cleanup => [ 'Makefile.PL', 'META.yml' ],
);
$build->create_build_script;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/Changes
new/Test-Compile-v2.0.0/Changes
--- old/Test-Compile-v1.3.0/Changes 2015-09-24 06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/Changes 2019-06-18 12:37:50.000000000 +0200
@@ -1,7 +1,20 @@
Revision history for Perl extension Test-Compile
+v2.0_0 2019-06-18 (DEV RELEASE)
+ Łukasz Hejnak <[email protected]>
+ - Replaced import() with Exporter usage.
+ - Added all_files_ok to the procedural mode.
+ - Added .git to list of directories ignored when looking for pm/pl files.
+ - Added an else clause for pl_file_compiles so that it catches file not
found errors.
+ Evan Giles <[email protected]>
+ - Remove 'exported_to' function
+ - Remove cleanup steps from the Build.PL file
+ - Bump version number for backwards incompatible changes (semver.org)
+
v1.3.0 2015-09-24 (Evan Giles <[email protected]>)
- Announce the deprecation the procedural functions (long overdue)
+
+v1.2.2 UNRELEASED (Evan Giles <[email protected]>)
- Remove the 'use 5.6.2' statements, they cause warnings.
- Fix some spelling errors
- Move the xt tests into the main test directory
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/MANIFEST
new/Test-Compile-v2.0.0/MANIFEST
--- old/Test-Compile-v1.3.0/MANIFEST 2015-09-24 06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/MANIFEST 2019-06-18 12:37:50.000000000 +0200
@@ -17,6 +17,7 @@
t/100-internal-pl-file-compiles.t
t/100-internal-pm-file-compiles.t
t/100-internal-verbose.t
+t/200-import-check.t
t/200-pl-file-ok.t
t/200-pl-file-ok-vms.t
t/200-taint.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/META.json
new/Test-Compile-v2.0.0/META.json
--- old/Test-Compile-v1.3.0/META.json 2015-09-24 06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/META.json 2019-06-18 12:37:50.000000000 +0200
@@ -4,7 +4,7 @@
"Evan Giles <[email protected]>"
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.421",
+ "generated_by" : "Module::Build version 0.4224",
"license" : [
"perl_5"
],
@@ -24,7 +24,9 @@
"Devel::CheckOS" : "0"
},
"requires" : {
+ "Exporter" : "5.68",
"UNIVERSAL::require" : "0",
+ "parent" : "0.225",
"perl" : "v5.6.2",
"version" : "0"
}
@@ -33,11 +35,11 @@
"provides" : {
"Test::Compile" : {
"file" : "lib/Test/Compile.pm",
- "version" : "v1.3.0"
+ "version" : "v2.0.0"
},
"Test::Compile::Internal" : {
"file" : "lib/Test/Compile/Internal.pm",
- "version" : "v1.3.0"
+ "version" : "v2.0.0"
}
},
"release_status" : "stable",
@@ -49,5 +51,6 @@
"url" : "http://github.com/egiles/test-compile"
}
},
- "version" : "v1.3.0"
+ "version" : "v2.0.0",
+ "x_serialization_backend" : "JSON::PP version 2.27400_02"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/META.yml
new/Test-Compile-v2.0.0/META.yml
--- old/Test-Compile-v1.3.0/META.yml 2015-09-24 06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/META.yml 2019-06-18 12:37:50.000000000 +0200
@@ -6,7 +6,7 @@
configure_requires:
Module::Build: '0.38'
dynamic_config: 1
-generated_by: 'Module::Build version 0.421, CPAN::Meta::Converter version
2.142690'
+generated_by: 'Module::Build version 0.4224, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -15,17 +15,20 @@
provides:
Test::Compile:
file: lib/Test/Compile.pm
- version: v1.3.0
+ version: v2.0.0
Test::Compile::Internal:
file: lib/Test/Compile/Internal.pm
- version: v1.3.0
+ version: v2.0.0
recommends:
Devel::CheckOS: '0'
requires:
+ Exporter: '5.68'
UNIVERSAL::require: '0'
+ parent: '0.225'
perl: v5.6.2
version: '0'
resources:
license: http://dev.perl.org/licenses/
repository: http://github.com/egiles/test-compile
-version: v1.3.0
+version: v2.0.0
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/Makefile.PL
new/Test-Compile-v2.0.0/Makefile.PL
--- old/Test-Compile-v1.3.0/Makefile.PL 2015-09-24 06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/Makefile.PL 2019-06-18 12:37:50.000000000 +0200
@@ -1,16 +1,18 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.4210
+# Note: this file was auto-generated by Module::Build::Compat version 0.4224
require 5.006002;
use ExtUtils::MakeMaker;
WriteMakefile
(
- 'NAME' => 'Test::Compile',
- 'INSTALLDIRS' => 'site',
'VERSION_FROM' => 'lib/Test/Compile.pm',
'PL_FILES' => {},
- 'EXE_FILES' => [],
+ 'INSTALLDIRS' => 'site',
'PREREQ_PM' => {
+ 'Exporter' => '5.68',
+ 'parent' => '0.225',
'version' => 0,
'UNIVERSAL::require' => 0
- }
+ },
+ 'NAME' => 'Test::Compile',
+ 'EXE_FILES' => []
)
;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/README
new/Test-Compile-v2.0.0/README
--- old/Test-Compile-v1.3.0/README 2015-09-24 06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/README 2019-06-18 12:37:50.000000000 +0200
@@ -8,6 +8,8 @@
Requires perl v5.6.2, plus
* UNIVERSAL::require
* version
+ * parent
+ * Exporter
INSTALLATION
Standard process for building & installing modules:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/lib/Test/Compile/Internal.pm
new/Test-Compile-v2.0.0/lib/Test/Compile/Internal.pm
--- old/Test-Compile-v1.3.0/lib/Test/Compile/Internal.pm 2015-09-24
06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/lib/Test/Compile/Internal.pm 2019-06-18
12:37:50.000000000 +0200
@@ -3,7 +3,7 @@
use warnings;
use strict;
-use version; our $VERSION = qv("v1.3.0");
+use version; our $VERSION = qv("v2.0_0");
use File::Spec;
use UNIVERSAL::require;
use Test::Builder;
@@ -171,6 +171,10 @@
system($^X, (map { "-I$_" } @inc), "-c$taint", $file);
return ($? == 0);
}
+ else {
+ $self->{test}->diag("$file could not be found") if
$self->verbose();
+ return 0;
+ }
}
);
}
@@ -246,18 +250,6 @@
$self->{test}->plan(@args);
}
-=item C<exported_to($caller)>
-
-Tells C<Test::Builder> what package you exported your functions to. I am
-not sure why you would want to do that, or whether it would do you any good.
-
-=cut
-
-sub exported_to {
- my ($self, @args) = @_;
- $self->{test}->exported_to(@args);
-}
-
=item C<diag(@msgs)>
Prints out the given C<@msgs>. Like print, arguments are simply appended
@@ -328,7 +320,7 @@
my @newfiles = readdir DH;
closedir DH;
@newfiles = File::Spec->no_upwards(@newfiles);
- @newfiles = grep { $_ ne "CVS" && $_ ne ".svn" } @newfiles;
+ @newfiles = grep { $_ ne "CVS" && $_ ne ".svn" && $_ ne ".git" }
@newfiles;
for my $newfile (@newfiles) {
my $filename = File::Spec->catfile($file, $newfile);
if (-f $filename) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/lib/Test/Compile.pm
new/Test-Compile-v2.0.0/lib/Test/Compile.pm
--- old/Test-Compile-v1.3.0/lib/Test/Compile.pm 2015-09-24 06:11:38.000000000
+0200
+++ new/Test-Compile-v2.0.0/lib/Test/Compile.pm 2019-06-18 12:37:50.000000000
+0200
@@ -3,7 +3,8 @@
use warnings;
use strict;
-use version; our $VERSION = qv("v1.3.0");
+use version; our $VERSION = qv("v2.0_0");
+use parent 'Exporter';
use UNIVERSAL::require;
use Test::Compile::Internal;
@@ -22,7 +23,7 @@
$test->done_testing();
# The procedural way (deprecated)
- use Test::Compile;
+ use Test::Compile qw( all_pm_files_ok );
all_pm_files_ok();
=head1 DESCRIPTION
@@ -47,21 +48,18 @@
=cut
-sub import {
- my $self = shift;
- my $caller = caller;
- for my $func (
- qw(
- pm_file_ok pl_file_ok all_pm_files all_pl_files all_pm_files_ok
- all_pl_files_ok
- )
- ) {
- no strict 'refs';
- *{ $caller . "::" . $func } = \&$func;
- }
- $Test->exported_to($caller);
- $Test->plan(@_);
-}
+our @EXPORT_OK = qw(
+ pm_file_ok
+ pl_file_ok
+
+ all_files_ok
+ all_pm_files_ok
+ all_pl_files_ok
+
+ all_pm_files
+ all_pl_files
+);
+our %EXPORT_TAGS = ('all' => \@EXPORT_OK);
=head1 METHODS
@@ -148,11 +146,6 @@
Defines how many tests you plan to run.
-=item C<exported_to($caller)>
-
-Tells C<Test::Builder> what package you exported your functions to. I am
-not sure why you would want to do that, or whether it would do you any good.
-
=item C<diag(@msgs)>
Prints out the given C<@msgs>. Like print, arguments are simply appended
@@ -210,7 +203,9 @@
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
- all_pm_files_ok();
+ my $test = Test::Compile->new();
+ $test->all_pm_files_ok();
+ $test->done_testing();
=cut
@@ -248,7 +243,9 @@
eval "use Test::Compile";
plan skip_all => "Test::Compile required for testing compilation"
if $@;
- all_pl_files_ok();
+ my $test = Test::Compile->new();
+ $test->all_pl_files_ok();
+ $test->done_testing();
=cut
@@ -351,13 +348,26 @@
The order of the files returned is machine-dependent. If you want them
sorted, you'll have to sort them yourself.
-=back
=cut
sub all_pl_files {
return $Test->all_pl_files(@_);
}
+=item C<all_files_ok(@dirs)>
+
+Checks all the perl files it can find for compilation errors.
+
+If C<@dirs> is defined then it is taken as an array of directories to
+be searched for perl files, otherwise it searches some default locations
+- see L</all_pm_files()> and L</all_pl_files()>.
+
+=back
+=cut
+sub all_files_ok {
+ return $Test->all_files_ok(@_);
+}
+
sub _verbose {
return $Test->verbose(@_);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/t/200-import-check.t
new/Test-Compile-v2.0.0/t/200-import-check.t
--- old/Test-Compile-v1.3.0/t/200-import-check.t 1970-01-01
01:00:00.000000000 +0100
+++ new/Test-Compile-v2.0.0/t/200-import-check.t 2019-06-18
12:37:50.000000000 +0200
@@ -0,0 +1,39 @@
+#!perl -w
+use strict;
+use warnings;
+use Test::More;
+use Test::Compile;
+Test::Compile::_verbose(0);
+
+plan skip_all => "Test::Exception required for checking exceptions"
+ unless eval "use Test::Exception; 1";
+
+my @METHODS = qw(
+ pm_file_ok
+ pl_file_ok
+
+ all_files_ok
+ all_pm_files_ok
+ all_pl_files_ok
+
+ all_pm_files
+ all_pl_files
+);
+
+# try to use the methods, despite not exporting them
+for my $m (@METHODS) {
+ is(__PACKAGE__->can($m), undef, "$m not auto-imported");
+}
+
+# now run (inherited) import by hand with specified method
+Test::Compile->import('pl_file_ok');
+
+lives_ok ( sub {
+ pl_file_ok('t/scripts/subdir/success.pl', 'success.pl compiles');
+}, 'pl_file_ok imported correctly');
+
+# finally use the "all" tag to import all methods and check if it worked
+diag 'Use :all import tag and check if methods got imported correctly';
+Test::Compile->import(':all');
+can_ok(__PACKAGE__, @METHODS);
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/t/200-pl-file-ok-vms.t
new/Test-Compile-v2.0.0/t/200-pl-file-ok-vms.t
--- old/Test-Compile-v1.3.0/t/200-pl-file-ok-vms.t 2015-09-24
06:11:38.000000000 +0200
+++ new/Test-Compile-v2.0.0/t/200-pl-file-ok-vms.t 2019-06-18
12:37:50.000000000 +0200
@@ -2,7 +2,7 @@
use strict;
use warnings;
use Test::More tests => 1;
-use Test::Compile;
+use Test::Compile qw( pl_file_ok );
# cheap emulation
$^O = 'VMS';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/t/200-pl-file-ok.t
new/Test-Compile-v2.0.0/t/200-pl-file-ok.t
--- old/Test-Compile-v1.3.0/t/200-pl-file-ok.t 2015-09-24 06:11:38.000000000
+0200
+++ new/Test-Compile-v2.0.0/t/200-pl-file-ok.t 2019-06-18 12:37:50.000000000
+0200
@@ -2,7 +2,7 @@
use strict;
use warnings;
use Test::More tests => 1;
-use Test::Compile;
+use Test::Compile qw( pl_file_ok );
Test::Compile::_verbose(0);
pl_file_ok('t/scripts/subdir/success.pl', 'success.pl compiles');
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/t/200-taint.t
new/Test-Compile-v2.0.0/t/200-taint.t
--- old/Test-Compile-v1.3.0/t/200-taint.t 2015-09-24 06:11:38.000000000
+0200
+++ new/Test-Compile-v2.0.0/t/200-taint.t 2019-06-18 12:37:50.000000000
+0200
@@ -2,7 +2,7 @@
use strict;
use warnings;
use Test::More tests => 1;
-use Test::Compile;
+use Test::Compile qw( pl_file_ok );
Test::Compile::_verbose(0);
pl_file_ok('t/scripts/taint.pl', 'taint.pl compiles');
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-Compile-v1.3.0/t/scripts/lib.pl
new/Test-Compile-v2.0.0/t/scripts/lib.pl
--- old/Test-Compile-v1.3.0/t/scripts/lib.pl 2015-09-24 06:11:38.000000000
+0200
+++ new/Test-Compile-v2.0.0/t/scripts/lib.pl 2019-06-18 12:37:50.000000000
+0200
@@ -3,6 +3,7 @@
BEGIN {
require strict;
require warnings;
+ require parent;
require Test::Builder;
require File::Spec;
require UNIVERSAL::require;