commit perl-Test-Deep for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package perl-Test-Deep for openSUSE:Factory checked in at 2017-05-20 10:07:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Deep (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Deep.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Test-Deep" Sat May 20 10:07:48 2017 rev:25 rq:494767 version:1.127 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Deep/perl-Test-Deep.changes 2017-01-10 10:38:27.673803249 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Test-Deep.new/perl-Test-Deep.changes 2017-05-20 10:08:16.621546164 +0200 @@ -1,0 +2,13 @@ +Sat May 6 06:40:36 UTC 2017 - coolo@suse.com + +- updated to 1.127 + see /usr/share/doc/packages/perl-Test-Deep/Changes + + 1.127 2017-05-04 + - no code changes from previous release + + 1.126_001 2017-04-17 + - do not eagerly convert simple scalars into tests in the all, any, and + none tests; this was breaking LeafWrapper application + +------------------------------------------------------------------- Old: ---- Test-Deep-1.126.tar.gz New: ---- Test-Deep-1.127.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Deep.spec ++++++ --- /var/tmp/diff_new_pack.ctB2WY/_old 2017-05-20 10:08:17.145472134 +0200 +++ /var/tmp/diff_new_pack.ctB2WY/_new 2017-05-20 10:08:17.149471569 +0200 @@ -17,14 +17,14 @@ Name: perl-Test-Deep -Version: 1.126 +Version: 1.127 Release: 0 %define cpan_name Test-Deep Summary: Extremely flexible deep comparison License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-Deep/ -Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -58,7 +58,7 @@ matching instead. Test::Deep provides pattern matching for complex data structures -Test::Deep has *_a lot_* of exports. See the /EXPORTS manpage below. +Test::Deep has *_a lot_* of exports. See EXPORTS below. %prep %setup -q -n %{cpan_name}-%{version} ++++++ Test-Deep-1.126.tar.gz -> Test-Deep-1.127.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/Changes new/Test-Deep-1.127/Changes --- old/Test-Deep-1.126/Changes 2017-01-01 17:39:39.000000000 +0100 +++ new/Test-Deep-1.127/Changes 2017-05-04 16:05:16.000000000 +0200 @@ -1,5 +1,12 @@ Revision history for Test-Deep +1.127 2017-05-04 + - no code changes from previous release + +1.126_001 2017-04-17 + - do not eagerly convert simple scalars into tests in the all, any, and + none tests; this was breaking LeafWrapper application + 1.126 2016-12-27 - no changes since v1.125_001 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/MANIFEST new/Test-Deep-1.127/MANIFEST --- old/Test-Deep-1.126/MANIFEST 2017-01-01 17:40:31.000000000 +0100 +++ new/Test-Deep-1.127/MANIFEST 2017-05-04 16:12:10.000000000 +0200 @@ -67,6 +67,7 @@ t/ignore.t t/import.t t/isa.t +t/leaf-wrapper.t t/lib/Over.pm t/lib/Std.pm t/listmethods.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/META.json new/Test-Deep-1.127/META.json --- old/Test-Deep-1.126/META.json 2017-01-01 17:40:31.000000000 +0100 +++ new/Test-Deep-1.127/META.json 2017-05-04 16:12:10.000000000 +0200 @@ -58,6 +58,6 @@ "x_IRC" : "irc://irc.perl.org/#perl-qa", "x_MailingList" : "http://lists.perl.org/list/perl-qa.html" }, - "version" : "1.126", + "version" : "1.127", "x_serialization_backend" : "JSON::PP version 2.27400" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/META.yml new/Test-Deep-1.127/META.yml --- old/Test-Deep-1.126/META.yml 2017-01-01 17:40:31.000000000 +0100 +++ new/Test-Deep-1.127/META.yml 2017-05-04 16:12:10.000000000 +0200 @@ -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.126' +version: '1.127' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/lib/Test/Deep/All.pm new/Test-Deep-1.127/lib/Test/Deep/All.pm --- old/Test-Deep-1.126/lib/Test/Deep/All.pm 2017-01-01 17:39:39.000000000 +0100 +++ new/Test-Deep-1.127/lib/Test/Deep/All.pm 2017-05-04 16:05:16.000000000 +0200 @@ -13,7 +13,7 @@ my @list = map { (Scalar::Util::blessed($_) && $_->isa('Test::Deep::All')) ? @{ $_->{val} } - : Test::Deep::wrap($_) + : $_ } @_; $self->{val} = \@list; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/lib/Test/Deep/Any.pm new/Test-Deep-1.127/lib/Test/Deep/Any.pm --- old/Test-Deep-1.126/lib/Test/Deep/Any.pm 2017-01-01 17:39:39.000000000 +0100 +++ new/Test-Deep-1.127/lib/Test/Deep/Any.pm 2017-05-04 16:05:16.000000000 +0200 @@ -13,7 +13,7 @@ my @list = map { (Scalar::Util::blessed($_) && $_->isa('Test::Deep::Any')) ? @{ $_->{val} } - : Test::Deep::wrap($_) + : $_ } @_; $self->{val} = \@list; @@ -36,8 +36,8 @@ { my $self = shift; - my $expect = $self->{val}; - my $things = join(", ", map {$_->renderExp} @$expect); + my @expect = map {; Test::Deep::wrap($_) } @{ $self->{val} }; + my $things = join(", ", map {$_->renderExp} @expect); return "Any of ( $things )"; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/lib/Test/Deep/None.pm new/Test-Deep-1.127/lib/Test/Deep/None.pm --- old/Test-Deep-1.126/lib/Test/Deep/None.pm 2016-07-20 04:23:19.000000000 +0200 +++ new/Test-Deep-1.127/lib/Test/Deep/None.pm 2017-05-04 16:05:16.000000000 +0200 @@ -12,7 +12,7 @@ my @list = map { eval { $_->isa('Test::Deep::None') } ? @{ $_->{val} } - : Test::Deep::wrap($_) + : $_ } @_; $self->{val} = \@list; @@ -35,8 +35,8 @@ { my $self = shift; - my $expect = $self->{val}; - my $things = join(", ", map {$_->renderExp} @$expect); + my @expect = map {; Test::Deep::wrap($_) } @{ $self->{val} }; + my $things = join(", ", map {$_->renderExp} @expect); return "None of ( $things )"; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/lib/Test/Deep.pm new/Test-Deep-1.127/lib/Test/Deep.pm --- old/Test-Deep-1.126/lib/Test/Deep.pm 2017-01-01 17:39:39.000000000 +0100 +++ new/Test-Deep-1.127/lib/Test/Deep.pm 2017-05-04 16:05:16.000000000 +0200 @@ -21,7 +21,7 @@ our ($Stack, %Compared, $CompareCache, %WrapCache, $Shallow); -our $VERSION = '1.126'; +our $VERSION = '1.127'; $VERSION =~ tr/_//d; require Exporter; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/t/leaf-wrapper.t new/Test-Deep-1.127/t/leaf-wrapper.t --- old/Test-Deep-1.126/t/leaf-wrapper.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Deep-1.127/t/leaf-wrapper.t 2017-05-04 16:05:16.000000000 +0200 @@ -0,0 +1,68 @@ +use strict; +use warnings; +use lib 't/lib'; + +use Std; + +{ + check_test( + sub { + cmp_deeply( Test::Deep::EqOverloaded->new, 5); + }, + { + actual_ok => 0, + }, + "comparing a plain scalar leaf against obj without eq" + ); + + { + local $Test::Deep::LeafWrapper = \&str; + check_tests( + sub { + cmp_deeply( Test::Deep::EqOverloaded->new, 5); + cmp_deeply( Test::Deep::EqOverloaded->new, 6); + }, + [ + { + actual_ok => 1, + }, + { + actual_ok => 0, + }, + ], + "comparing a plain scalar leaf against obj with eq" + ); + } + + { + check_tests( + sub { + my $t1 = 5; + my $t2 = any(5); + my $t3 = all(5); + local $Test::Deep::LeafWrapper = \&str; + cmp_deeply(Test::Deep::EqOverloaded->new, $t1); + cmp_deeply(Test::Deep::EqOverloaded->new, $t2); + cmp_deeply(Test::Deep::EqOverloaded->new, $t3); + }, + [ + { + actual_ok => 1, + }, + { + actual_ok => 1, + }, + { + actual_ok => 1, + }, + ], + "comparing a plain scalar leaf against obj with eq via any() and all()" + ); + } +} + +{ + package Test::Deep::EqOverloaded; + use overload q{""} => sub { "5" }, fallback => 1; + sub new { my $self = {}; bless $self; } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.126/t/shallow.t new/Test-Deep-1.127/t/shallow.t --- old/Test-Deep-1.126/t/shallow.t 2017-01-01 17:39:39.000000000 +0100 +++ new/Test-Deep-1.127/t/shallow.t 2017-05-04 16:05:16.000000000 +0200 @@ -91,38 +91,3 @@ "deep after shallow not eq" ); } - -{ - check_test( - sub { - cmp_deeply( Test::Deep::EqOverloaded->new, 5); - }, - { - actual_ok => 0, - }, - "comparing a plain scalar leaf against obj without eq" - ); - - local $Test::Deep::LeafWrapper = \&str; - check_tests( - sub { - cmp_deeply( Test::Deep::EqOverloaded->new, 5); - cmp_deeply( Test::Deep::EqOverloaded->new, 6); - }, - [ - { - actual_ok => 1, - }, - { - actual_ok => 0, - }, - ], - "comparing a plain scalar leaf against obj with eq" - ); -} - -{ - package Test::Deep::EqOverloaded; - use overload q{""} => sub { "5" }, fallback => 1; - sub new { my $self = {}; bless $self; } -}
participants (1)
-
root@hilbert.suse.de