Hello community,

here is the log from the commit of package perl-CPAN-Meta-Check for 
openSUSE:Factory checked in at 2013-07-29 21:09:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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    
    2013-06-28 11:51:46.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-CPAN-Meta-Check.new/perl-CPAN-Meta-Check.changes
   2013-07-29 21:09:08.000000000 +0200
@@ -1,0 +2,6 @@
+Sat Jul 27 11:58:28 UTC 2013 - [email protected]
+
+- updated to 0.006
+     Fixed bad dereference during conflicts checking
+
+-------------------------------------------------------------------

Old:
----
  CPAN-Meta-Check-0.005.tar.gz

New:
----
  CPAN-Meta-Check-0.006.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-CPAN-Meta-Check.spec ++++++
--- /var/tmp/diff_new_pack.WGhzNw/_old  2013-07-29 21:09:09.000000000 +0200
+++ /var/tmp/diff_new_pack.WGhzNw/_new  2013-07-29 21:09:09.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           perl-CPAN-Meta-Check
-Version:        0.005
+Version:        0.006
 Release:        0
 %define cpan_name CPAN-Meta-Check
 Summary:        Verify requirements in a CPAN::Meta object

++++++ CPAN-Meta-Check-0.005.tar.gz -> CPAN-Meta-Check-0.006.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CPAN-Meta-Check-0.005/Changes 
new/CPAN-Meta-Check-0.006/Changes
--- old/CPAN-Meta-Check-0.005/Changes   2013-04-22 17:27:57.000000000 +0200
+++ new/CPAN-Meta-Check-0.006/Changes   2013-07-27 00:24:39.000000000 +0200
@@ -1,5 +1,8 @@
 Revision history for CPAN-Meta-Check
 
+0.006     2013-07-27 00:24:21 Europe/Amsterdam
+          Fixed bad dereference during conflicts checking
+
 0.005     2013-04-22 17:27:50 Europe/Amsterdam
           Converted from Test::Differences to Test::Deep
           Don't load CPAN::Meta from CPAN::Meta::Check
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CPAN-Meta-Check-0.005/META.json 
new/CPAN-Meta-Check-0.006/META.json
--- old/CPAN-Meta-Check-0.005/META.json 2013-04-22 17:27:57.000000000 +0200
+++ new/CPAN-Meta-Check-0.006/META.json 2013-07-27 00:24:39.000000000 +0200
@@ -4,7 +4,7 @@
       "Leon Timmermans <[email protected]>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 4.300033, CPAN::Meta::Converter 
version 2.130880",
+   "generated_by" : "Dist::Zilla version 4.300035, CPAN::Meta::Converter 
version 2.120921",
    "license" : [
       "perl_5"
    ],
@@ -56,9 +56,9 @@
       "repository" : {
          "type" : "git",
          "url" : "git://github.com/Leont/cpan-meta-check.git",
-         "web" : "http://github.com/Leont/cpan-meta-check";
+         "web" : "https://github.com/Leont/cpan-meta-check";
       }
    },
-   "version" : "0.005"
+   "version" : "0.006"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CPAN-Meta-Check-0.005/META.yml 
new/CPAN-Meta-Check-0.006/META.yml
--- old/CPAN-Meta-Check-0.005/META.yml  2013-04-22 17:27:57.000000000 +0200
+++ new/CPAN-Meta-Check-0.006/META.yml  2013-07-27 00:24:39.000000000 +0200
@@ -11,7 +11,7 @@
 configure_requires:
   ExtUtils::MakeMaker: 6.30
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300033, CPAN::Meta::Converter version 
2.130880'
+generated_by: 'Dist::Zilla version 4.300035, CPAN::Meta::Converter version 
2.120921'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -28,4 +28,4 @@
 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.005
+version: 0.006
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CPAN-Meta-Check-0.005/Makefile.PL 
new/CPAN-Meta-Check-0.006/Makefile.PL
--- old/CPAN-Meta-Check-0.005/Makefile.PL       2013-04-22 17:27:57.000000000 
+0200
+++ new/CPAN-Meta-Check-0.006/Makefile.PL       2013-07-27 00:24:39.000000000 
+0200
@@ -34,7 +34,7 @@
     "Test::Deep" => 0,
     "Test::More" => "0.88"
   },
-  "VERSION" => "0.005",
+  "VERSION" => "0.006",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CPAN-Meta-Check-0.005/README 
new/CPAN-Meta-Check-0.006/README
--- old/CPAN-Meta-Check-0.005/README    2013-04-22 17:27:57.000000000 +0200
+++ new/CPAN-Meta-Check-0.006/README    2013-07-27 00:24:39.000000000 +0200
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution CPAN-Meta-Check,
-version 0.005:
+version 0.006:
 
   Verify requirements in a CPAN::Meta object
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CPAN-Meta-Check-0.005/lib/CPAN/Meta/Check.pm 
new/CPAN-Meta-Check-0.006/lib/CPAN/Meta/Check.pm
--- old/CPAN-Meta-Check-0.005/lib/CPAN/Meta/Check.pm    2013-04-22 
17:27:57.000000000 +0200
+++ new/CPAN-Meta-Check-0.006/lib/CPAN/Meta/Check.pm    2013-07-27 
00:24:39.000000000 +0200
@@ -1,6 +1,6 @@
 package CPAN::Meta::Check;
 {
-  $CPAN::Meta::Check::VERSION = '0.005';
+  $CPAN::Meta::Check::VERSION = '0.006';
 }
 use strict;
 use warnings;
@@ -32,7 +32,7 @@
        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\'', 
$version, $module, $reqs->requirements_for_module($module) if 
$reqs->accepts_module($module, $version);
        return;
 }
 
@@ -75,11 +75,12 @@
        return grep { defined } values %{ $issues };
 }
 
+# vi:noet:sts=2:sw=2:ts=2
 1;
 
 #ABSTRACT: Verify requirements in a CPAN::Meta object
 
-
+__END__
 
 =pod
 
@@ -89,7 +90,7 @@
 
 =head1 VERSION
 
-version 0.005
+version 0.006
 
 =head1 SYNOPSIS
 
@@ -103,7 +104,7 @@
 
 =head2 check_requirements($reqs, $type)
 
-This function checks if all dependencies in C<$reqs> (a 
L<CPAN::Meta::Requirements|CPAN::Meta::Requirements> object) are met, taking 
into account that 'conflicts' dependencies have to be checked in reverse. It 
returns a hash with the modules as values and any problems as keys, the value 
for a succesfully found module will be undef.
+This function checks if all dependencies in C<$reqs> (a 
L<CPAN::Meta::Requirements|CPAN::Meta::Requirements> object) are met, taking 
into account that 'conflicts' dependencies have to be checked in reverse. It 
returns a hash with the modules as keys and any problems as values; the value 
for a successfully found module will be undef.
 
 =head2 verify_dependencies($meta, $phases, $types, $incdirs)
 
@@ -111,7 +112,7 @@
 
 =head2 requirements_for($meta, $phases, $types, incdirs)
 
-This function returns a unified 
L<CPAN::Meta::Requirements|CPAN::Meta::Requirements> object for all C<$type> 
requirements for C<$phases>. $phases may be either one (scalar) value or an 
arrayref of valid values as defined by the L<CPAN::Meta spec|CPAN::Meta::Spec>. 
C<$type> must be a a relationship as defined by the same spec. Modules are 
searched for in C<@$incdirs>, defaulting to C<@INC>.
+This function returns a unified 
L<CPAN::Meta::Requirements|CPAN::Meta::Requirements> object for all C<$type> 
requirements for C<$phases>. $phases may be either one (scalar) value or an 
arrayref of valid values as defined by the L<CPAN::Meta spec|CPAN::Meta::Spec>. 
C<$type> must be a relationship as defined by the same spec. Modules are 
searched for in C<@$incdirs>, defaulting to C<@INC>.
 
 =head1 SEE ALSO
 
@@ -135,7 +136,3 @@
 the same terms as the Perl 5 programming language system itself.
 
 =cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CPAN-Meta-Check-0.005/t/00-compile.t 
new/CPAN-Meta-Check-0.006/t/00-compile.t
--- old/CPAN-Meta-Check-0.005/t/00-compile.t    2013-04-22 17:27:57.000000000 
+0200
+++ new/CPAN-Meta-Check-0.006/t/00-compile.t    2013-07-27 00:24:39.000000000 
+0200
@@ -70,4 +70,5 @@
             script_compiles( $file, "$script script compiles" );
         }
     }
+
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CPAN-Meta-Check-0.005/t/10-basics.t 
new/CPAN-Meta-Check-0.006/t/10-basics.t
--- old/CPAN-Meta-Check-0.005/t/10-basics.t     2013-04-22 17:27:57.000000000 
+0200
+++ new/CPAN-Meta-Check-0.006/t/10-basics.t     2013-07-27 00:24:39.000000000 
+0200
@@ -21,6 +21,12 @@
                        'This::Should::Be::NonExistent' => 1,
                        Carp => 99999,
                },
+               conflicts => {
+                       'CPAN::Meta' => '<= 100.0',                             
                                                # check should fail
+                       'Test::More' => '== ' . Test::More->VERSION,    # check 
should fail
+                       'Test::Deep' => '<= 0.01',                              
                                                # check should pass (up to 0.01 
is bad)
+
+    },
        },
        build => {
                requires => {
@@ -39,6 +45,19 @@
 
 my $pre_rec = $meta->effective_prereqs->requirements_for('runtime', 
'recommends');
 cmp_deeply([ sort +$pre_rec->required_modules ], [ qw/Carp Pod::Text 
This::Should::Be::NonExistent/ ], 'The right recommendations are present');
-cmp_deeply(check_requirements($pre_rec, 'recommends'), { Carp => "Installed 
version ($Carp::VERSION) of Carp is not in range '99999'", 'Pod::Text' => 
undef, 'This::Should::Be::NonExistent' => 'Module 
\'This::Should::Be::NonExistent\' is not installed' }, 'Recommendations give 
the right errors');
+cmp_deeply(check_requirements($pre_rec, 'recommends'), {
+               Carp => "Installed version ($Carp::VERSION) of Carp is not in 
range '99999'",
+               'Pod::Text' => undef,
+               'This::Should::Be::NonExistent' => 'Module 
\'This::Should::Be::NonExistent\' is not installed',
+       }, 'Recommendations give the right errors');
+
+my $pre_con = $meta->effective_prereqs->requirements_for('runtime', 
'conflicts');
+cmp_deeply([ sort +$pre_con->required_modules ], [ qw/CPAN::Meta Test::Deep 
Test::More/ ], 'The right conflicts are present');
+cmp_deeply(check_requirements($pre_con, 'conflicts'), {
+               'CPAN::Meta' => "Installed version ($CPAN::Meta::VERSION) of 
CPAN::Meta is in range '<= 100.0'",
+               'Test::More' => "Installed version ($Test::More::VERSION) of 
Test::More is in range '== $Test::More::VERSION'",
+               'Test::Deep' => undef,
+       }, 'Conflicts give the right errors');
 
 done_testing();
+# vi:noet:sts=2:sw=2:ts=2

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to