Hello community,

here is the log from the commit of package perl-Test-Script for 
openSUSE:Factory checked in at 2017-03-12 20:01:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-Script (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Test-Script.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Test-Script"

Sun Mar 12 20:01:31 2017 rev:23 rq:477088 version:1.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Test-Script/perl-Test-Script.changes        
2017-02-16 17:05:22.313122780 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Test-Script.new/perl-Test-Script.changes   
2017-03-12 20:01:32.306655673 +0100
@@ -1,0 +2,9 @@
+Sun Mar  5 07:26:41 UTC 2017 - [email protected]
+
+- updated to 1.16
+   see /usr/share/doc/packages/perl-Test-Script/Changes
+
+  1.16      2017-03-04 12:16:10 -0500
+    - Stricter useage of plans.
+
+-------------------------------------------------------------------

Old:
----
  Test-Script-1.15.tar.gz

New:
----
  Test-Script-1.16.tar.gz

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

Other differences:
------------------
++++++ perl-Test-Script.spec ++++++
--- /var/tmp/diff_new_pack.eHWDoF/_old  2017-03-12 20:01:32.914569653 +0100
+++ /var/tmp/diff_new_pack.eHWDoF/_new  2017-03-12 20:01:32.922568521 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Test-Script
-Version:        1.15
+Version:        1.16
 Release:        0
 %define cpan_name Test-Script
 Summary:        Basic cross-platform tests for scripts
@@ -75,7 +75,7 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
-%doc author.yml Changes README t2
+%doc author.yml Changes README
 %license LICENSE
 
 %changelog

++++++ Test-Script-1.15.tar.gz -> Test-Script-1.16.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/Changes new/Test-Script-1.16/Changes
--- old/Test-Script-1.15/Changes        2017-02-13 21:08:54.000000000 +0100
+++ new/Test-Script-1.16/Changes        2017-03-04 18:16:13.000000000 +0100
@@ -1,5 +1,8 @@
 Revision history for Perl extension Test-Script
 
+1.16      2017-03-04 12:16:10 -0500
+  - Stricter useage of plans.
+
 1.15      2017-02-14 07:08:51 +1100
   - Fix bug where list reference arguments to script_compiles
     and script_runs are modified (gh#9)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/MANIFEST 
new/Test-Script-1.16/MANIFEST
--- old/Test-Script-1.15/MANIFEST       2017-02-13 21:08:54.000000000 +0100
+++ new/Test-Script-1.16/MANIFEST       2017-03-04 18:16:13.000000000 +0100
@@ -29,6 +29,7 @@
 t/bin/signal.pl
 t2/bug_gh9.t
 t2/test_script__exports.t
+t2/test_script__import.t
 t2/test_script__script_compiles.t
 t2/test_script__script_runs.t
 xt/author/eol.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/META.json 
new/Test-Script-1.16/META.json
--- old/Test-Script-1.15/META.json      2017-02-13 21:08:54.000000000 +0100
+++ new/Test-Script-1.16/META.json      2017-03-04 18:16:13.000000000 +0100
@@ -5,7 +5,7 @@
       "Adam Kennedy"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150005",
+   "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150010",
    "license" : [
       "perl_5"
    ],
@@ -67,7 +67,7 @@
          "web" : "https://github.com/plicease/Test-Script";
       }
    },
-   "version" : "1.15",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0225"
+   "version" : "1.16",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0227"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/META.yml 
new/Test-Script-1.16/META.yml
--- old/Test-Script-1.15/META.yml       2017-02-13 21:08:54.000000000 +0100
+++ new/Test-Script-1.16/META.yml       2017-03-04 18:16:13.000000000 +0100
@@ -13,7 +13,7 @@
   ExtUtils::MakeMaker: '0'
   perl: '5.006'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150005'
+generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -30,5 +30,5 @@
   bugtracker: https://github.com/plicease/Test-Script/issues
   homepage: https://metacpan.org/pod/Test::Script
   repository: git://github.com/plicease/Test-Script.git
-version: '1.15'
+version: '1.16'
 x_serialization_backend: 'YAML::Tiny version 1.70'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/Makefile.PL 
new/Test-Script-1.16/Makefile.PL
--- old/Test-Script-1.15/Makefile.PL    2017-02-13 21:08:54.000000000 +0100
+++ new/Test-Script-1.16/Makefile.PL    2017-03-04 18:16:13.000000000 +0100
@@ -44,7 +44,7 @@
     "Test::More" => "0.96",
     "Test::Tester" => 0
   },
-  "VERSION" => "1.15",
+  "VERSION" => "1.16",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/README new/Test-Script-1.16/README
--- old/Test-Script-1.15/README 2017-02-13 21:08:54.000000000 +0100
+++ new/Test-Script-1.16/README 2017-03-04 18:16:13.000000000 +0100
@@ -4,7 +4,7 @@
 
 VERSION
 
-    version 1.15
+    version 1.16
 
 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/dist.ini 
new/Test-Script-1.16/dist.ini
--- old/Test-Script-1.15/dist.ini       2017-02-13 21:08:54.000000000 +0100
+++ new/Test-Script-1.16/dist.ini       2017-03-04 18:16:13.000000000 +0100
@@ -4,7 +4,7 @@
 license          = Perl_5
 copyright_holder = Adam Kennedy
 copyright_year   = 2006
-version          = 1.15
+version          = 1.16
 
 [@Author::Plicease]
 :version           = 1.94
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/lib/Test/Script.pm 
new/Test-Script-1.16/lib/Test/Script.pm
--- old/Test-Script-1.15/lib/Test/Script.pm     2017-02-13 21:08:54.000000000 
+0100
+++ new/Test-Script-1.16/lib/Test/Script.pm     2017-03-04 18:16:13.000000000 
+0100
@@ -1,7 +1,7 @@
 package Test::Script;
 
 # ABSTRACT: Basic cross-platform tests for scripts
-our $VERSION = '1.15'; # VERSION
+our $VERSION = '1.16'; # VERSION
 
 
 use 5.006;
@@ -37,7 +37,10 @@
   my $pack = caller;
   my $test = Test::Builder->new;
   $test->exported_to($pack);
-  $test->plan(@_);
+  if(defined $_[0] && $_[0] =~ /^(?:no_plan|skip_all|tests)$/)
+  {
+    $test->plan(@_);
+  }
   foreach ( @EXPORT ) {
     $self->export_to_level(1, $self, $_);
   }
@@ -315,7 +318,7 @@
 
 =head1 VERSION
 
-version 1.15
+version 1.16
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Script-1.15/t2/test_script__import.t 
new/Test-Script-1.16/t2/test_script__import.t
--- old/Test-Script-1.15/t2/test_script__import.t       1970-01-01 
01:00:00.000000000 +0100
+++ new/Test-Script-1.16/t2/test_script__import.t       2017-03-04 
18:16:13.000000000 +0100
@@ -0,0 +1,36 @@
+use Test2::Bundle::Extended;
+use Test::Script ();
+
+is(
+  intercept { Test::Script->import(tests => 42) },
+  array {
+    event Plan => sub {
+      call directive => '';
+      call max => 42;
+    };
+  },
+  'with tests',
+);
+
+is(
+  intercept { Test::Script->import(skip_all => 'foo') },
+  array {
+    event Plan => sub {
+      call directive => 'SKIP';
+      call reason => 'foo';
+    };
+  },
+  'with skip',
+);
+
+is(
+  # does not appear to emit any events.
+  intercept { Test::Script->import('no_plan'); done_testing },
+  array {
+    event Plan => sub {
+    };
+  },
+  'with no plan',
+);
+
+done_testing;


Reply via email to