Hello community,

here is the log from the commit of package perl-Test-Deep for openSUSE:Factory 
checked in at 2020-03-05 23:18:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-Deep (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Test-Deep.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Test-Deep"

Thu Mar  5 23:18:04 2020 rev:27 rq:781130 version:1.130

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Test-Deep/perl-Test-Deep.changes    
2018-04-26 13:34:06.212716583 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Test-Deep.new.26092/perl-Test-Deep.changes 
2020-03-05 23:18:09.601173112 +0100
@@ -1,0 +2,15 @@
+Mon Mar  2 03:16:19 UTC 2020 -  <[email protected]>
+
+- updated to 1.130
+   see /usr/share/doc/packages/perl-Test-Deep/Changes
+
+  1.130     2020-03-01
+          - no changes since 1.129
+  
+  1.129     2020-01-26 - TRIAL RELEASE
+          - documentation fixes (thanks, Daniel Böhmer!)
+          - allow NoTest to be used without breaking other Test::Deep
+            (thanks, Alexander Karelas!)
+          - added true/false optional imports (thanks, Denis Ibaev!)
+
+-------------------------------------------------------------------

Old:
----
  Test-Deep-1.128.tar.gz

New:
----
  Test-Deep-1.130.tar.gz

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

Other differences:
------------------
++++++ perl-Test-Deep.spec ++++++
--- /var/tmp/diff_new_pack.QpJCgY/_old  2020-03-05 23:18:10.329173524 +0100
+++ /var/tmp/diff_new_pack.QpJCgY/_new  2020-03-05 23:18:10.337173529 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Test-Deep
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,18 +12,18 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           perl-Test-Deep
-Version:        1.128
+Version:        1.130
 Release:        0
 %define cpan_name Test-Deep
 Summary:        Extremely flexible deep comparison
 License:        Artistic-1.0 OR GPL-1.0-or-later
 Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/dist/Test-Deep/
+Url:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
@@ -64,11 +64,11 @@
 %setup -q -n %{cpan_name}-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %check
-%{__make} test
+make test
 
 %install
 %perl_make_install

++++++ Test-Deep-1.128.tar.gz -> Test-Deep-1.130.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Deep-1.128/Changes new/Test-Deep-1.130/Changes
--- old/Test-Deep-1.128/Changes 2018-04-19 18:02:43.000000000 +0200
+++ new/Test-Deep-1.130/Changes 2020-03-01 10:28:21.000000000 +0100
@@ -1,5 +1,14 @@
 Revision history for Test-Deep
 
+1.130     2020-03-01
+        - no changes since 1.129
+
+1.129     2020-01-26 - TRIAL RELEASE
+        - documentation fixes (thanks, Daniel Böhmer!)
+        - allow NoTest to be used without breaking other Test::Deep
+          (thanks, Alexander Karelas!)
+        - added true/false optional imports (thanks, Denis Ibaev!)
+
 1.128     2018-04-18
         - numerous small improvements to documentation; thanks to
           Fabrice Gabolde, Daniel Böhmer, Lance Wicks, Matthew Horsfall
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Deep-1.128/META.json 
new/Test-Deep-1.130/META.json
--- old/Test-Deep-1.128/META.json       2018-04-19 18:08:12.000000000 +0200
+++ new/Test-Deep-1.130/META.json       2020-03-01 10:28:42.000000000 +0100
@@ -4,13 +4,13 @@
       "Fergal Daly <[email protected]>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter 
version 2.150010",
+   "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter 
version 2.150010",
    "license" : [
       "perl_5"
    ],
    "meta-spec" : {
       "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec";,
-      "version" : "2"
+      "version" : 2
    },
    "name" : "Test-Deep",
    "no_index" : {
@@ -58,6 +58,6 @@
       "x_IRC" : "irc://irc.perl.org/#perl-qa",
       "x_MailingList" : "http://lists.perl.org/list/perl-qa.html";
    },
-   "version" : "1.128",
-   "x_serialization_backend" : "JSON::PP version 2.27400_02"
+   "version" : "1.130",
+   "x_serialization_backend" : "JSON::PP version 4.02"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Deep-1.128/META.yml new/Test-Deep-1.130/META.yml
--- old/Test-Deep-1.128/META.yml        2018-04-19 18:08:12.000000000 +0200
+++ new/Test-Deep-1.130/META.yml        2020-03-01 10:28:42.000000000 +0100
@@ -9,7 +9,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 
2.150010'
+generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -29,5 +29,5 @@
   bugtracker: http://github.com/rjbs/Test-Deep/issues
   homepage: http://github.com/rjbs/Test-Deep/
   repository: https://github.com/rjbs/Test-Deep.git
-version: '1.128'
+version: '1.130'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Deep-1.128/lib/Test/Deep/NoTest.pm 
new/Test-Deep-1.130/lib/Test/Deep/NoTest.pm
--- old/Test-Deep-1.128/lib/Test/Deep/NoTest.pm 2013-04-13 16:51:30.000000000 
+0200
+++ new/Test-Deep-1.130/lib/Test/Deep/NoTest.pm 2020-01-26 16:48:42.000000000 
+0100
@@ -18,6 +18,7 @@
   # make the stack look like it should for use Test::Deep
   my $pkg = shift;
   unshift(@_, "Test::Deep");
+  push @_, '_notest';
   goto &$import;
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Deep-1.128/lib/Test/Deep.pm 
new/Test-Deep-1.130/lib/Test/Deep.pm
--- old/Test-Deep-1.128/lib/Test/Deep.pm        2018-04-19 18:05:07.000000000 
+0200
+++ new/Test-Deep-1.130/lib/Test/Deep.pm        2020-03-01 10:28:30.000000000 
+0100
@@ -21,7 +21,7 @@
 
 our ($Stack, %Compared, $CompareCache, %WrapCache, $Shallow);
 
-our $VERSION = '1.128';
+our $VERSION = '1.130';
 $VERSION =~ tr/_//d;
 
 require Exporter;
@@ -91,7 +91,10 @@
 }
 
 {
-  our @EXPORT_OK = qw( descend render_stack cmp_details deep_diag );
+  our @EXPORT_OK = qw(
+    descend render_stack cmp_details deep_diag
+    true false
+  );
 
   our %EXPORT_TAGS;
   $EXPORT_TAGS{preload} = [];
@@ -130,6 +133,15 @@
 
 sub import {
   my $self = shift;
+
+  my $from_notest = grep {$_ eq '_notest'} @_;
+  if ($from_notest) {
+      @_ = grep {$_ ne '_notest'} @_;
+  } else {
+    require Test::Builder;
+    $Test = Test::Builder->new;
+  }
+
   my @sans_preload = grep {; $_ ne ':preload' } @_;
   if (@_ != @sans_preload) {
     require Test::Deep::All;
@@ -544,9 +556,9 @@
 
 sub noneof
 {
-        require Test::Deep::Set;
+  require Test::Deep::Set;
 
-        return Test::Deep::Set->new(1, "none", @_);
+  return Test::Deep::Set->new(1, "none", @_);
 }
 
 sub cmp_set
@@ -603,6 +615,16 @@
   return Test::Deep::SubHash->new($val);
 }
 
+sub true
+{
+  bool(1);
+}
+
+sub false
+{
+  bool(0);
+}
+
 sub builder
 {
   if (@_)
@@ -1035,14 +1057,14 @@
   cmp_deeply(
     $obj,
     listmethods(
-      name => "John",
+      name => [ "John" ],
       ["favourites", "food"] => ["Mapo tofu", "Gongbao chicken"]
     )
   );
 
 is the equivalent of checking that
 
-  $obj->name eq "John"
+  cmp_deeply([$obj->name], ["John"]);
   cmp_deeply([$obj->favourites("food")], ["Mapo tofu", "Gongbao chicken"]);
 
 The methods will be called in the order you supply them.
@@ -1342,9 +1364,11 @@
 work fine for almost all situations, however it will not work when <$got_v>
 is an overloaded value who's string and numerical values differ.
 
-=head3 bool
+=head3 bool, true, false
 
   cmp_deeply( $got, bool($value) );
+  cmp_deeply( $got, true );
+  cmp_deeply( $got, false );
 
 C<$value> is anything you like but it's probably best to use 0 or 1
 
@@ -1352,6 +1376,8 @@
 is they will give the same result when used in boolean context, like in an
 C<if()> statement.
 
+B<Note:> C<true> and C<false> are only imported by special request.
+
 =head3 code
 
   cmp_deeply( $got, code(\&subref) );
@@ -1417,7 +1443,7 @@
 
 This does a set comparison, that is, it compares two arrays but ignores the
 order of the elements and it ignores duplicate elements, but ensures that all
-items in in C<@elements> will be in C<$got> and all items in C<$got> will be
+items in C<@elements> will be in C<$got> and all items in C<$got> will be
 in C<@elements>.
 
 So the following tests will be passes, and will be equivalent:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Deep-1.128/t/boolean.t 
new/Test-Deep-1.130/t/boolean.t
--- old/Test-Deep-1.128/t/boolean.t     2017-01-01 17:39:39.000000000 +0100
+++ new/Test-Deep-1.130/t/boolean.t     2020-01-26 17:04:24.000000000 +0100
@@ -4,19 +4,27 @@
 
 use Std;
 
+use Test::Deep qw(true false);
+
 {
   check_tests(
     sub {
       cmp_deeply(1, bool(1), "num 1");
+      cmp_deeply(1, true, "num 1");
       cmp_deeply("abds", bool(1), "string");
+      cmp_deeply("abds", true, "string");
       cmp_deeply(0, bool(0), "num 0");
+      cmp_deeply(0, false, "num 0");
       cmp_deeply("", bool(0), "string");
+      cmp_deeply("", false, "string");
+      cmp_deeply(undef, bool(0), "undef");
+      cmp_deeply(undef, false, "undef");
     },
     [
       ({
         actual_ok => 1,
         diag => "",
-      }) x 4
+      }) x 10
     ],
     "ok"
   );
@@ -24,22 +32,26 @@
   check_tests(
     sub {
       cmp_deeply(1, bool(0), "num 1");
+      cmp_deeply(1, false, "num 1");
       cmp_deeply("abds", bool(0), "string");
+      cmp_deeply("abds", false, "string");
       cmp_deeply(0, bool(1), "num 0");
+      cmp_deeply(0, true, "num 0");
       cmp_deeply("", bool(1), "string");
+      cmp_deeply("", true, "string");
     },
     [
-      {
+      ({
         actual_ok => 0,
         diag => <<EOM,
 Comparing \$data as a boolean
    got : true ('1')
 expect : false ('0')
 EOM
-      },
+      }) x 2,
       ({
         actual_ok => 0,
-      }) x 3,
+      }) x 6,
     ],
     "string not eq"
   );


Reply via email to