Hello community,

here is the log from the commit of package perl-Test-CheckDeps for 
openSUSE:Factory checked in at 2013-11-26 19:32:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-CheckDeps (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Test-CheckDeps.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Test-CheckDeps"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Test-CheckDeps/perl-Test-CheckDeps.changes  
2013-10-06 14:31:56.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Test-CheckDeps.new/perl-Test-CheckDeps.changes 
    2013-11-26 19:32:25.000000000 +0100
@@ -1,0 +2,10 @@
+Mon Nov 25 07:38:54 UTC 2013 - [email protected]
+
+- updated to 0.010
+         - Revert adding conventional [Test::CheckDeps] test, to avoid 
circular dependency
+         - Added Synopsis
+         - $Test::Builder::Level increased, so failing tests appear to come
+           from the .t file rather than Test/CheckDeps.pm
+         - also test 'develop' prereqs when AUTHOR_TESTING
+
+-------------------------------------------------------------------

Old:
----
  Test-CheckDeps-0.008.tar.gz

New:
----
  Test-CheckDeps-0.010.tar.gz

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

Other differences:
------------------
++++++ perl-Test-CheckDeps.spec ++++++
--- /var/tmp/diff_new_pack.fO3BIi/_old  2013-11-26 19:32:25.000000000 +0100
+++ /var/tmp/diff_new_pack.fO3BIi/_new  2013-11-26 19:32:25.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Test-CheckDeps
-Version:        0.008
+Version:        0.010
 Release:        0
 %define cpan_name Test-CheckDeps
 Summary:        Check for presence of dependencies

++++++ Test-CheckDeps-0.008.tar.gz -> Test-CheckDeps-0.010.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-CheckDeps-0.008/Changes 
new/Test-CheckDeps-0.010/Changes
--- old/Test-CheckDeps-0.008/Changes    2013-09-25 13:50:51.000000000 +0200
+++ new/Test-CheckDeps-0.010/Changes    2013-10-09 18:10:57.000000000 +0200
@@ -1,5 +1,14 @@
 Revision history for Test-CheckDeps
 
+0.010     2013-10-09 18:10:39 Europe/Amsterdam
+          - Revert adding conventional [Test::CheckDeps] test, to avoid 
circular dependency
+
+0.009     2013-10-09 15:39:01 Europe/Amsterdam
+          - Added Synopsis
+          - $Test::Builder::Level increased, so failing tests appear to come
+            from the .t file rather than Test/CheckDeps.pm
+          - also test 'develop' prereqs when AUTHOR_TESTING
+
 0.008     2013-09-25 13:49:59 Europe/Amsterdam
           - Switch to MakeMaker to fix bootstrapping issues
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-CheckDeps-0.008/META.json 
new/Test-CheckDeps-0.010/META.json
--- old/Test-CheckDeps-0.008/META.json  2013-09-25 13:50:51.000000000 +0200
+++ new/Test-CheckDeps-0.010/META.json  2013-10-09 18:10:57.000000000 +0200
@@ -47,6 +47,12 @@
          }
       }
    },
+   "provides" : {
+      "Test::CheckDeps" : {
+         "file" : "lib/Test/CheckDeps.pm",
+         "version" : "0.010"
+      }
+   },
    "release_status" : "stable",
    "resources" : {
       "bugtracker" : {
@@ -59,7 +65,7 @@
          "web" : "https://github.com/Leont/test-checkdeps";
       }
    },
-   "version" : "0.008",
+   "version" : "0.010",
    "x_contributors" : [
       "Karen Etheridge <[email protected]>",
       "Leon Timmermans <[email protected]>"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-CheckDeps-0.008/META.yml 
new/Test-CheckDeps-0.010/META.yml
--- old/Test-CheckDeps-0.008/META.yml   2013-09-25 13:50:51.000000000 +0200
+++ new/Test-CheckDeps-0.010/META.yml   2013-10-09 18:10:57.000000000 +0200
@@ -16,6 +16,10 @@
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: 1.4
 name: Test-CheckDeps
+provides:
+  Test::CheckDeps:
+    file: lib/Test/CheckDeps.pm
+    version: 0.010
 requires:
   CPAN::Meta: 2.120920
   CPAN::Meta::Check: 0.007
@@ -28,7 +32,7 @@
 resources:
   bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Test-CheckDeps
   repository: git://github.com/Leont/test-checkdeps.git
-version: 0.008
+version: 0.010
 x_contributors:
   - 'Karen Etheridge <[email protected]>'
   - 'Leon Timmermans <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-CheckDeps-0.008/Makefile.PL 
new/Test-CheckDeps-0.010/Makefile.PL
--- old/Test-CheckDeps-0.008/Makefile.PL        2013-09-25 13:50:51.000000000 
+0200
+++ new/Test-CheckDeps-0.010/Makefile.PL        2013-10-09 18:10:57.000000000 
+0200
@@ -34,7 +34,7 @@
     "IPC::Open3" => 0,
     "Test::More" => "0.88"
   },
-  "VERSION" => "0.008",
+  "VERSION" => "0.010",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-CheckDeps-0.008/README 
new/Test-CheckDeps-0.010/README
--- old/Test-CheckDeps-0.008/README     2013-09-25 13:50:51.000000000 +0200
+++ new/Test-CheckDeps-0.010/README     2013-10-09 18:10:57.000000000 +0200
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution Test-CheckDeps,
-version 0.008:
+version 0.010:
 
   Check for presence of dependencies
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-CheckDeps-0.008/lib/Test/CheckDeps.pm 
new/Test-CheckDeps-0.010/lib/Test/CheckDeps.pm
--- old/Test-CheckDeps-0.008/lib/Test/CheckDeps.pm      2013-09-25 
13:50:51.000000000 +0200
+++ new/Test-CheckDeps-0.010/lib/Test/CheckDeps.pm      2013-10-09 
18:10:57.000000000 +0200
@@ -1,6 +1,6 @@
 package Test::CheckDeps;
 {
-  $Test::CheckDeps::VERSION = '0.008';
+  $Test::CheckDeps::VERSION = '0.010';
 }
 use strict;
 use warnings FATAL => 'all';
@@ -26,21 +26,24 @@
 
 sub check_dependencies {
        my $level = $level_of{shift || 'classic'};
+       local $Test::Builder::Level = $Test::Builder::Level + 1;
        my $metafile = first { -e $_ } qw/MYMETA.json MYMETA.yml META.json 
META.yml/ or return $builder->ok(0, "No META information provided\n");
        my $meta = CPAN::Meta->load_file($metafile);
        check_dependencies_opts($meta, $_, 'requires') for qw/configure build 
test runtime/;
-       check_dependencies_opts($meta, 'runtime', 'conflicts') if $level > 0;
-       if ($level > 1) {
+       check_dependencies_opts($meta, 'runtime', 'conflicts') if $level >= 
$level_of{classic};
+       if ($level >= $level_of{recommends}) {
                $builder->todo_start('recommends are not mandatory');
                check_dependencies_opts($meta, $_, 'recommends') for 
qw/configure build test runtime/;
                $builder->todo_end();
 
-               if ($level > 2) {
+               if ($level >= $level_of{suggests}) {
                        $builder->todo_start('suggests are not mandatory');
                        check_dependencies_opts($meta, $_, 'suggests') for 
qw/configure build test runtime/;
                        $builder->todo_end();
                }
        }
+       check_dependencies_opts($meta, 'develop', 'requires') if 
$ENV{AUTHOR_TESTING};
+
        return;
 }
 
@@ -51,6 +54,7 @@
        my $raw = $reqs->as_string_hash;
        my $ret = check_requirements($reqs, $type);
 
+       local $Test::Builder::Level = $Test::Builder::Level + 1;
        for my $module (sort keys %{$ret}) {
                $builder->ok(!defined $ret->{$module}, "$module satisfies '" . 
$raw->{$module} . "'")
                        or $builder->diag($ret->{$module});
@@ -63,6 +67,10 @@
 
 #ABSTRACT: Check for presence of dependencies
 
+# vim: set ts=2 sw=2 noet nolist :
+
+__END__
+
 =pod
 
 =head1 NAME
@@ -71,7 +79,16 @@
 
 =head1 VERSION
 
-version 0.008
+version 0.010
+
+=head1 SYNOPSIS
+
+ use Test::More 0.94;
+ use Test::CheckDeps 0.007;
+ 
+ check_dependencies();
+
+ done_testing();
 
 =head1 DESCRIPTION
 
@@ -89,8 +106,9 @@
 
 =item * requires
 
-All 'requires' dependencies are checked (for the configure, build, test and
-runtime phases)
+All 'requires' dependencies are checked (the configure, build, test and
+runtime phases are always checked, and the develop phase is also tested when
+AUTHOR_TESTING is set)
 
 =item * classic
 
@@ -125,7 +143,3 @@
 the same terms as the Perl 5 programming language system itself.
 
 =cut
-
-__END__
-
-# vi:noet:sts=2:sw=2:ts=2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-CheckDeps-0.008/t/10-basics.t 
new/Test-CheckDeps-0.010/t/10-basics.t
--- old/Test-CheckDeps-0.008/t/10-basics.t      2013-09-25 13:50:51.000000000 
+0200
+++ new/Test-CheckDeps-0.010/t/10-basics.t      2013-10-09 18:10:57.000000000 
+0200
@@ -4,10 +4,15 @@
 use warnings;
 
 use Test::More 0.88;
+use List::Util qw/first/;
+
+# we need a META.json to do anything
+ok(first { -e $_ } qw/MYMETA.json MYMETA.yml META.json META.yml/, 'META.* 
found')
+       or diag 'this test requires a built dist - you must run "dzil test"';
 
 use Test::CheckDeps;
 
 check_dependencies('recommends');
 
 done_testing;
-# vi:noet:sts=2:sw=2:ts=2
+# vim: set ts=2 sw=2 noet nolist :

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

Reply via email to