Hello community,
here is the log from the commit of package perl-CPAN-Meta-Check for openSUSE:Factory checked in at 2016-12-05 16:31:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-CPAN-Meta-Check (Old)
and /work/SRC/openSUSE:Factory/.perl-CPAN-Meta-Check.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-CPAN-Meta-Check"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-CPAN-Meta-Check/perl-CPAN-Meta-Check.changes 2016-08-03 11:36:01.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-CPAN-Meta-Check.new/perl-CPAN-Meta-Check.changes 2016-12-05 16:31:34.000000000 +0100
@@ -1,0 +2,10 @@
+Sat Nov 26 06:07:40 UTC 2016 - coolo@suse.com
+
+- updated to 0.014
+ see /usr/share/doc/packages/perl-CPAN-Meta-Check/Changes
+
+ 0.014 2016-11-25 13:09:01+01:00 Europe/Amsterdam
+ - Undef versions are now passed through to CPAN::Meta::Requirements
+ for the check, rather than failing with "Missing version" errors.
+
+-------------------------------------------------------------------
Old:
----
CPAN-Meta-Check-0.013.tar.gz
New:
----
CPAN-Meta-Check-0.014.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-CPAN-Meta-Check.spec ++++++
--- /var/tmp/diff_new_pack.OVXcN0/_old 2016-12-05 16:31:35.000000000 +0100
+++ /var/tmp/diff_new_pack.OVXcN0/_new 2016-12-05 16:31:35.000000000 +0100
@@ -17,7 +17,7 @@
Name: perl-CPAN-Meta-Check
-Version: 0.013
+Version: 0.014
Release: 0
%define cpan_name CPAN-Meta-Check
Summary: Verify requirements in a CPAN::Meta object
++++++ CPAN-Meta-Check-0.013.tar.gz -> CPAN-Meta-Check-0.014.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/Changes new/CPAN-Meta-Check-0.014/Changes
--- old/CPAN-Meta-Check-0.013/Changes 2016-07-20 22:26:09.000000000 +0200
+++ new/CPAN-Meta-Check-0.014/Changes 2016-11-25 13:09:04.000000000 +0100
@@ -1,5 +1,9 @@
Revision history for CPAN-Meta-Check
+0.014 2016-11-25 13:09:01+01:00 Europe/Amsterdam
+ - Undef versions are now passed through to CPAN::Meta::Requirements
+ for the check, rather than failing with "Missing version" errors.
+
0.013 2016-07-20 22:26:07+02:00 Europe/Amsterdam
Make tests more resilient against dev versions of dependencies
@@ -10,7 +14,7 @@
Declare the minimum version required for the "merged_requirements" interface
0.010 2015-01-30 19:10:49+01:00 Europe/Amsterdam
- bump Module::Metdata prereq for $VERSION parsing (RT#101095)
+ bump Module::Metadata prereq for $VERSION parsing (RT#101095)
Consistently require same version of CPAN::Meta::Requirements
0.009 2014-06-20 19:37:43+02:00 Europe/Amsterdam
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/MANIFEST new/CPAN-Meta-Check-0.014/MANIFEST
--- old/CPAN-Meta-Check-0.013/MANIFEST 2016-07-20 22:26:09.000000000 +0200
+++ new/CPAN-Meta-Check-0.014/MANIFEST 2016-11-25 13:09:04.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.005.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.007.
Changes
INSTALL
LICENSE
@@ -10,6 +10,8 @@
dist.ini
lib/CPAN/Meta/Check.pm
t/10-basics.t
+t/20-undef-version.t
+t/lib/Local/HasNoVersion.pm
xt/author/00-compile.t
xt/author/pod-coverage.t
xt/author/pod-syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/META.json new/CPAN-Meta-Check-0.014/META.json
--- old/CPAN-Meta-Check-0.013/META.json 2016-07-20 22:26:09.000000000 +0200
+++ new/CPAN-Meta-Check-0.014/META.json 2016-11-25 13:09:04.000000000 +0100
@@ -4,7 +4,7 @@
"Leon Timmermans "
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 6.005, CPAN::Meta::Converter version 2.150005",
+ "generated_by" : "Dist::Zilla version 6.007, CPAN::Meta::Converter version 2.150005",
"license" : [
"perl_5"
],
@@ -51,6 +51,7 @@
"Env" : "0",
"Test::Deep" : "0",
"Test::More" : "0.88",
+ "lib" : "0",
"perl" : "5.006"
}
}
@@ -58,7 +59,7 @@
"provides" : {
"CPAN::Meta::Check" : {
"file" : "lib/CPAN/Meta/Check.pm",
- "version" : "0.013"
+ "version" : "0.014"
}
},
"release_status" : "stable",
@@ -73,11 +74,12 @@
"web" : "https://github.com/Leont/cpan-meta-check"
}
},
- "version" : "0.013",
+ "version" : "0.014",
"x_contributors" : [
"David Steinbrunner ",
"Karen Etheridge ",
"Leon Timmermans "
- ]
+ ],
+ "x_serialization_backend" : "Cpanel::JSON::XS version 3.0215"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/META.yml new/CPAN-Meta-Check-0.014/META.yml
--- old/CPAN-Meta-Check-0.013/META.yml 2016-07-20 22:26:09.000000000 +0200
+++ new/CPAN-Meta-Check-0.014/META.yml 2016-11-25 13:09:04.000000000 +0100
@@ -7,12 +7,13 @@
Env: '0'
Test::Deep: '0'
Test::More: '0.88'
+ lib: '0'
perl: '5.006'
configure_requires:
ExtUtils::MakeMaker: '0'
perl: '5.006'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.005, CPAN::Meta::Converter version 2.150005'
+generated_by: 'Dist::Zilla version 6.007, CPAN::Meta::Converter version 2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,7 +22,7 @@
provides:
CPAN::Meta::Check:
file: lib/CPAN/Meta/Check.pm
- version: '0.013'
+ version: '0.014'
requires:
CPAN::Meta::Prereqs: '2.132830'
CPAN::Meta::Requirements: '2.121'
@@ -34,8 +35,9 @@
resources:
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-Check
repository: git://github.com/Leont/cpan-meta-check.git
-version: '0.013'
+version: '0.014'
x_contributors:
- 'David Steinbrunner '
- 'Karen Etheridge '
- 'Leon Timmermans '
+x_serialization_backend: 'YAML::Tiny version 1.69'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/Makefile.PL new/CPAN-Meta-Check-0.014/Makefile.PL
--- old/CPAN-Meta-Check-0.013/Makefile.PL 2016-07-20 22:26:09.000000000 +0200
+++ new/CPAN-Meta-Check-0.014/Makefile.PL 2016-11-25 13:09:04.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.005.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.007.
use strict;
use warnings;
@@ -29,9 +29,10 @@
"CPAN::Meta" => "2.120920",
"Env" => 0,
"Test::Deep" => 0,
- "Test::More" => "0.88"
+ "Test::More" => "0.88",
+ "lib" => 0
},
- "VERSION" => "0.013",
+ "VERSION" => "0.014",
"test" => {
"TESTS" => "t/*.t"
}
@@ -48,6 +49,7 @@
"Test::Deep" => 0,
"Test::More" => "0.88",
"base" => 0,
+ "lib" => 0,
"strict" => 0,
"warnings" => 0
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/README new/CPAN-Meta-Check-0.014/README
--- old/CPAN-Meta-Check-0.013/README 2016-07-20 22:26:09.000000000 +0200
+++ new/CPAN-Meta-Check-0.014/README 2016-11-25 13:09:04.000000000 +0100
@@ -1,7 +1,7 @@
This archive contains the distribution CPAN-Meta-Check,
-version 0.013:
+version 0.014:
Verify requirements in a CPAN::Meta object
@@ -11,5 +11,5 @@
the same terms as the Perl 5 programming language system itself.
-This README file was generated by Dist::Zilla::Plugin::Readme v6.005.
+This README file was generated by Dist::Zilla::Plugin::Readme v6.007.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/dist.ini new/CPAN-Meta-Check-0.014/dist.ini
--- old/CPAN-Meta-Check-0.013/dist.ini 2016-07-20 22:26:09.000000000 +0200
+++ new/CPAN-Meta-Check-0.014/dist.ini 2016-11-25 13:09:04.000000000 +0100
@@ -8,3 +8,13 @@
install_tool = eumm
[Prereqs]
CPAN::Meta::Prereqs = 2.132830
+
+[Git::CheckFor::MergeConflicts]
+
+[Git::CheckFor::CorrectBranch]
+:version = 0.004
+release_branch = master
+
+[Git::Remote::Check]
+branch = master
+remote_branch = master
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/lib/CPAN/Meta/Check.pm new/CPAN-Meta-Check-0.014/lib/CPAN/Meta/Check.pm
--- old/CPAN-Meta-Check-0.013/lib/CPAN/Meta/Check.pm 2016-07-20 22:26:09.000000000 +0200
+++ new/CPAN-Meta-Check-0.014/lib/CPAN/Meta/Check.pm 2016-11-25 13:09:04.000000000 +0100
@@ -1,5 +1,5 @@
package CPAN::Meta::Check;
-$CPAN::Meta::Check::VERSION = '0.013';
+$CPAN::Meta::Check::VERSION = '0.014';
use strict;
use warnings;
@@ -19,9 +19,11 @@
my $metadata = Module::Metadata->new_from_module($module, inc => $dirs);
return "Module '$module' is not installed" if not defined $metadata;
+
my $version = eval { $metadata->version };
- return "Missing version info for module '$module'" if $reqs->requirements_for_module($module) and not $version;
- return sprintf 'Installed version (%s) of %s is not in range \'%s\'', $version, $module, $reqs->requirements_for_module($module) if not $reqs->accepts_module($module, $version || 0);
+ return sprintf 'Installed version (%s) of %s is not in range \'%s\'',
+ (defined $version ? $version : 'undef'), $module, $reqs->requirements_for_module($module)
+ if not $reqs->accepts_module($module, $version || 0);
return;
}
@@ -29,9 +31,11 @@
my ($reqs, $module, $dirs) = @_;
my $metadata = Module::Metadata->new_from_module($module, inc => $dirs);
return if not defined $metadata;
+
my $version = eval { $metadata->version };
- return "Missing version info for module '$module'" if not $version;
- return sprintf 'Installed version (%s) of %s is in range \'%s\'', $version, $module, $reqs->requirements_for_module($module) if $reqs->accepts_module($module, $version);
+ return sprintf 'Installed version (%s) of %s is in range \'%s\'',
+ (defined $version ? $version : 'undef'), $module, $reqs->requirements_for_module($module)
+ if $reqs->accepts_module($module, $version);
return;
}
@@ -76,7 +80,7 @@
=head1 VERSION
-version 0.013
+version 0.014
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/t/20-undef-version.t new/CPAN-Meta-Check-0.014/t/20-undef-version.t
--- old/CPAN-Meta-Check-0.013/t/20-undef-version.t 1970-01-01 01:00:00.000000000 +0100
+++ new/CPAN-Meta-Check-0.014/t/20-undef-version.t 2016-11-25 13:09:04.000000000 +0100
@@ -0,0 +1,56 @@
+use strict;
+use warnings;
+
+use Test::More 0.88;
+use Test::Deep;
+use CPAN::Meta 2.120920;
+use CPAN::Meta::Check 'check_requirements';
+
+use lib 't/lib';
+
+my %prereq_struct = (
+ runtime => {
+ requires => {
+ 'Local::HasNoVersion' => '!= 1.0', # check should pass
+ },
+ conflicts => {
+ 'Local::HasNoVersion' => '>= 1.0', # check should pass
+ },
+ },
+ test => {
+ requires => {
+ 'Local::HasNoVersion' => '== 1.0', # check should fail
+ },
+ conflicts => {
+ 'Local::HasNoVersion' => '<= 1.0', # check should fail
+ },
+ },
+);
+
+my %expected_issues = (
+ runtime => {
+ conflicts => { 'Local::HasNoVersion' => undef },
+ requires => { 'Local::HasNoVersion' => undef },
+ },
+ test => {
+ conflicts => { 'Local::HasNoVersion' => re(qr/Installed version \(undef\) of Local::HasNoVersion is in range '<= 1.0'/) },
+ requires => { 'Local::HasNoVersion' => re(qr/Installed version \(undef\) of Local::HasNoVersion is not in range '== 1.0'/) },
+ },
+);
+
+my $meta = CPAN::Meta->create({ prereqs => \%prereq_struct, version => 1, name => 'Foo' }, { lazy_validation => 1 });
+
+foreach my $phase (sort keys %expected_issues) {
+ foreach my $type (sort keys %{$expected_issues{$phase}}) {
+ my $issues = check_requirements($meta->effective_prereqs->requirements_for($phase, $type), $type, ['t/lib']);
+ cmp_deeply(
+ $issues,
+ $expected_issues{$phase}{$type},
+ "$phase $type checked",
+ )
+ or diag 'CPAN::Meta::Check returned: ', explain $issues;
+ }
+}
+
+done_testing;
+# vi:noet:sts=2:sw=2:ts=2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Check-0.013/t/lib/Local/HasNoVersion.pm new/CPAN-Meta-Check-0.014/t/lib/Local/HasNoVersion.pm
--- old/CPAN-Meta-Check-0.013/t/lib/Local/HasNoVersion.pm 1970-01-01 01:00:00.000000000 +0100
+++ new/CPAN-Meta-Check-0.014/t/lib/Local/HasNoVersion.pm 2016-11-25 13:09:04.000000000 +0100
@@ -0,0 +1,3 @@
+package Local::HasNoVersion;
+# no $VERSION declaration implies undef
+1;