Hello community,

here is the log from the commit of package perl-Test-Warnings for 
openSUSE:Factory checked in at 2019-12-25 10:54:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-Warnings (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Test-Warnings.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Test-Warnings"

Wed Dec 25 10:54:46 2019 rev:12 rq:759025 version:0.028

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Test-Warnings/perl-Test-Warnings.changes    
2019-10-07 13:38:52.836698638 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Test-Warnings.new.6675/perl-Test-Warnings.changes
  2019-12-25 10:55:11.585636668 +0100
@@ -1,0 +2,10 @@
+Sun Dec 22 03:12:43 UTC 2019 -  <[email protected]>
+
+- updated to 0.028
+   see /usr/share/doc/packages/perl-Test-Warnings/Changes
+
+  0.028     2019-12-21 20:16:01Z
+            - allow for calling warnings->import being called after importing
+              the "warnings" sub
+
+-------------------------------------------------------------------

Old:
----
  Test-Warnings-0.027.tar.gz

New:
----
  Test-Warnings-0.028.tar.gz

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

Other differences:
------------------
++++++ perl-Test-Warnings.spec ++++++
--- /var/tmp/diff_new_pack.3DiXBs/_old  2019-12-25 10:55:11.945636781 +0100
+++ /var/tmp/diff_new_pack.3DiXBs/_new  2019-12-25 10:55:11.945636781 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Test-Warnings
-Version:        0.027
+Version:        0.028
 Release:        0
 %define cpan_name Test-Warnings
 Summary:        Test for warnings and the lack of them

++++++ Test-Warnings-0.027.tar.gz -> Test-Warnings-0.028.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/Changes 
new/Test-Warnings-0.028/Changes
--- old/Test-Warnings-0.027/Changes     2019-09-28 05:54:54.000000000 +0200
+++ new/Test-Warnings-0.028/Changes     2019-12-21 21:16:07.000000000 +0100
@@ -1,5 +1,9 @@
 Revision history for Test-Warnings
 
+0.028     2019-12-21 20:16:01Z
+          - allow for calling warnings->import being called after importing
+            the "warnings" sub
+
 0.027     2019-09-28 03:54:47Z
           - new :fail_on_warning feature, for more easily seeing where the
             surprising warning appeared during testing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/MANIFEST 
new/Test-Warnings-0.028/MANIFEST
--- old/Test-Warnings-0.027/MANIFEST    2019-09-28 05:54:54.000000000 +0200
+++ new/Test-Warnings-0.028/MANIFEST    2019-12-21 21:16:07.000000000 +0100
@@ -42,6 +42,7 @@
 t/19-propagate-nonexistent-subname.t
 t/20-propagate-stub.t
 t/21-fail-on-warning.t
+t/22-warnings-bareword.t
 t/lib/SilenceStderr.pm
 t/zzz-check-breaks.t
 xt/author/00-compile.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/META.json 
new/Test-Warnings-0.028/META.json
--- old/Test-Warnings-0.027/META.json   2019-09-28 05:54:54.000000000 +0200
+++ new/Test-Warnings-0.028/META.json   2019-12-21 21:16:07.000000000 +0100
@@ -181,7 +181,7 @@
    "provides" : {
       "Test::Warnings" : {
          "file" : "lib/Test/Warnings.pm",
-         "version" : "0.027"
+         "version" : "0.028"
       }
    },
    "release_status" : "stable",
@@ -199,10 +199,10 @@
       "x_IRC" : "irc://irc.perl.org/#perl-qa",
       "x_MailingList" : "http://lists.perl.org/list/perl-qa.html";
    },
-   "version" : "0.027",
+   "version" : "0.028",
    "x_Dist_Zilla" : {
       "perl" : {
-         "version" : "5.031004"
+         "version" : "5.031006"
       },
       "plugins" : [
          {
@@ -853,7 +853,7 @@
             "class" : "Dist::Zilla::Plugin::EnsureLatestPerl",
             "config" : {
                "Dist::Zilla::Plugin::EnsureLatestPerl" : {
-                  "Module::CoreList" : "5.20190920"
+                  "Module::CoreList" : "5.20191120"
                }
             },
             "name" : "@Author::ETHER/EnsureLatestPerl",
@@ -1070,7 +1070,7 @@
                   "branch" : null,
                   "changelog" : "Changes",
                   "signed" : 0,
-                  "tag" : "v0.027",
+                  "tag" : "v0.028",
                   "tag_format" : "v%V",
                   "tag_message" : "v%v%t"
                },
@@ -1382,12 +1382,12 @@
       "File::pushd" : "< 1.004"
    },
    "x_contributors" : [
-      "A. Sinan Unur <[email protected]>",
       "Graham Knop <[email protected]>",
+      "A. Sinan Unur <[email protected]>",
       "Leon Timmermans <[email protected]>"
    ],
-   "x_generated_by_perl" : "v5.31.4",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 4.12",
+   "x_generated_by_perl" : "v5.31.6",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.17",
    "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later",
    "x_static_install" : 1,
    "x_use_unsafe_inc" : 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/META.yml 
new/Test-Warnings-0.028/META.yml
--- old/Test-Warnings-0.027/META.yml    2019-09-28 05:54:54.000000000 +0200
+++ new/Test-Warnings-0.028/META.yml    2019-12-21 21:16:07.000000000 +0100
@@ -30,7 +30,7 @@
 provides:
   Test::Warnings:
     file: lib/Test/Warnings.pm
-    version: '0.027'
+    version: '0.028'
 requires:
   Carp: '0'
   Exporter: '0'
@@ -45,10 +45,10 @@
   bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Warnings
   homepage: https://github.com/karenetheridge/Test-Warnings
   repository: https://github.com/karenetheridge/Test-Warnings.git
-version: '0.027'
+version: '0.028'
 x_Dist_Zilla:
   perl:
-    version: '5.031004'
+    version: '5.031006'
   plugins:
     -
       class: Dist::Zilla::Plugin::FileFinder::Filter
@@ -547,7 +547,7 @@
       class: Dist::Zilla::Plugin::EnsureLatestPerl
       config:
         Dist::Zilla::Plugin::EnsureLatestPerl:
-          Module::CoreList: '5.20190920'
+          Module::CoreList: '5.20191120'
       name: '@Author::ETHER/EnsureLatestPerl'
       version: '0.008'
     -
@@ -710,7 +710,7 @@
           branch: ~
           changelog: Changes
           signed: 0
-          tag: v0.027
+          tag: v0.028
           tag_format: v%V
           tag_message: v%v%t
         Dist::Zilla::Role::Git::Repo:
@@ -943,10 +943,10 @@
 x_breaks:
   File::pushd: '< 1.004'
 x_contributors:
-  - 'A. Sinan Unur <[email protected]>'
   - 'Graham Knop <[email protected]>'
+  - 'A. Sinan Unur <[email protected]>'
   - 'Leon Timmermans <[email protected]>'
-x_generated_by_perl: v5.31.4
+x_generated_by_perl: v5.31.6
 x_serialization_backend: 'YAML::Tiny version 1.73'
 x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
 x_static_install: 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/Makefile.PL 
new/Test-Warnings-0.028/Makefile.PL
--- old/Test-Warnings-0.027/Makefile.PL 2019-09-28 05:54:54.000000000 +0200
+++ new/Test-Warnings-0.028/Makefile.PL 2019-12-21 21:16:07.000000000 +0100
@@ -30,7 +30,7 @@
     "Test::More" => "0.94",
     "if" => 0
   },
-  "VERSION" => "0.027",
+  "VERSION" => "0.028",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/README 
new/Test-Warnings-0.028/README
--- old/Test-Warnings-0.027/README      2019-09-28 05:54:54.000000000 +0200
+++ new/Test-Warnings-0.028/README      2019-12-21 21:16:07.000000000 +0100
@@ -1,5 +1,5 @@
 This archive contains the distribution Test-Warnings,
-version 0.027:
+version 0.028:
 
   Test for warnings and the lack of them
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/lib/Test/Warnings.pm 
new/Test-Warnings-0.028/lib/Test/Warnings.pm
--- old/Test-Warnings-0.027/lib/Test/Warnings.pm        2019-09-28 
05:54:54.000000000 +0200
+++ new/Test-Warnings-0.028/lib/Test/Warnings.pm        2019-12-21 
21:16:07.000000000 +0100
@@ -1,11 +1,11 @@
 use strict;
 use warnings;
-package Test::Warnings; # git description: v0.026-14-g4e3ad06
+package Test::Warnings; # git description: v0.027-4-g76bf83a
 # vim: set ts=8 sts=4 sw=4 tw=115 et :
 # ABSTRACT: Test for warnings and the lack of them
 # KEYWORDS: testing tests warnings
 
-our $VERSION = '0.027';
+our $VERSION = '0.028';
 
 use parent 'Exporter';
 use Test::Builder;
@@ -77,8 +77,14 @@
     }
 };
 
-sub warnings(&)
+sub warnings(;&)
 {
+    # if someone manually does warnings->import in the same namespace this is
+    # imported into, this sub will be called.  in that case, just return the
+    # string "warnings" so it calls the correct method.
+    if (!@_) {
+        return 'warnings';
+    }
     my $code = shift;
     my @warnings;
     local $SIG{__WARN__} = sub {
@@ -161,7 +167,7 @@
 
 =head1 VERSION
 
-version 0.027
+version 0.028
 
 =head1 SYNOPSIS
 
@@ -453,17 +459,17 @@
 
 =head1 CONTRIBUTORS
 
-=for stopwords A. Sinan Unur Graham Knop Leon Timmermans
+=for stopwords Graham Knop A. Sinan Unur Leon Timmermans
 
 =over 4
 
 =item *
 
-A. Sinan Unur <[email protected]>
+Graham Knop <[email protected]>
 
 =item *
 
-Graham Knop <[email protected]>
+A. Sinan Unur <[email protected]>
 
 =item *
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/t/22-warnings-bareword.t 
new/Test-Warnings-0.028/t/22-warnings-bareword.t
--- old/Test-Warnings-0.027/t/22-warnings-bareword.t    1970-01-01 
01:00:00.000000000 +0100
+++ new/Test-Warnings-0.028/t/22-warnings-bareword.t    2019-12-21 
21:16:07.000000000 +0100
@@ -0,0 +1,31 @@
+use strict;
+use warnings;
+
+use Test::More 0.88;
+use Test::Warnings ':no_end_test', 'warnings';
+
+my $e;
+my $no_warn_sub;
+my $warn_sub;
+{
+    no warnings;
+    if (!eval q{
+        $no_warn_sub = sub { return 1 + undef };
+        BEGIN { warnings->import }
+        $warn_sub = sub { return 1 + undef };
+        1;
+    }) {
+        $e = $@;
+    }
+}
+
+is $e, undef,
+    'warnings->import succeeds after importing "warnings" sub';
+
+ok !warnings { $no_warn_sub->() },
+    'no warnings worked as expected';
+
+like +(warnings { $warn_sub->() })[0], qr{uninitialized value},
+    'correct warnings were enabled after warnings->import';
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/xt/author/eol.t 
new/Test-Warnings-0.028/xt/author/eol.t
--- old/Test-Warnings-0.027/xt/author/eol.t     2019-09-28 05:54:54.000000000 
+0200
+++ new/Test-Warnings-0.028/xt/author/eol.t     2019-12-21 21:16:07.000000000 
+0100
@@ -40,6 +40,7 @@
     't/19-propagate-nonexistent-subname.t',
     't/20-propagate-stub.t',
     't/21-fail-on-warning.t',
+    't/22-warnings-bareword.t',
     't/lib/SilenceStderr.pm',
     't/zzz-check-breaks.t',
     'xt/author/00-compile.t',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/xt/author/no-tabs.t 
new/Test-Warnings-0.028/xt/author/no-tabs.t
--- old/Test-Warnings-0.027/xt/author/no-tabs.t 2019-09-28 05:54:54.000000000 
+0200
+++ new/Test-Warnings-0.028/xt/author/no-tabs.t 2019-12-21 21:16:07.000000000 
+0100
@@ -40,6 +40,7 @@
     't/19-propagate-nonexistent-subname.t',
     't/20-propagate-stub.t',
     't/21-fail-on-warning.t',
+    't/22-warnings-bareword.t',
     't/lib/SilenceStderr.pm',
     't/zzz-check-breaks.t',
     'xt/author/00-compile.t',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Warnings-0.027/xt/release/changes_has_content.t 
new/Test-Warnings-0.028/xt/release/changes_has_content.t
--- old/Test-Warnings-0.027/xt/release/changes_has_content.t    2019-09-28 
05:54:54.000000000 +0200
+++ new/Test-Warnings-0.028/xt/release/changes_has_content.t    2019-12-21 
21:16:07.000000000 +0100
@@ -2,7 +2,7 @@
 
 note 'Checking Changes';
 my $changes_file = 'Changes';
-my $newver = '0.027';
+my $newver = '0.028';
 my $trial_token = '-TRIAL';
 my $encoding = 'UTF-8';
 


Reply via email to