Hello community, here is the log from the commit of package perl-Test-Deep for openSUSE:Factory checked in at 2018-04-26 13:34:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Deep (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Deep.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Deep" Thu Apr 26 13:34:04 2018 rev:26 rq:599318 version:1.128 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Deep/perl-Test-Deep.changes 2017-05-20 10:08:16.621546164 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Test-Deep.new/perl-Test-Deep.changes 2018-04-26 13:34:06.212716583 +0200 @@ -1,0 +2,11 @@ +Fri Apr 20 06:03:00 UTC 2018 - [email protected] + +- updated to 1.128 + see /usr/share/doc/packages/perl-Test-Deep/Changes + + 1.128 2018-04-18 + - numerous small improvements to documentation; thanks to + Fabrice Gabolde, Daniel Böhmer, Lance Wicks, Matthew Horsfall + - improved CI setup; thanks to eadjei and Philip J. Ludlam + +------------------------------------------------------------------- Old: ---- Test-Deep-1.127.tar.gz New: ---- Test-Deep-1.128.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Deep.spec ++++++ --- /var/tmp/diff_new_pack.wxhoz5/_old 2018-04-26 13:34:06.740697238 +0200 +++ /var/tmp/diff_new_pack.wxhoz5/_new 2018-04-26 13:34:06.740697238 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Deep # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -17,11 +17,11 @@ Name: perl-Test-Deep -Version: 1.127 +Version: 1.128 Release: 0 %define cpan_name Test-Deep Summary: Extremely flexible deep comparison -License: Artistic-1.0 or GPL-1.0+ +License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-Deep/ Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz @@ -44,7 +44,7 @@ Test::Deep uses the Test::Builder framework. Test::Deep gives you very flexible ways to check that the result you got is -the result you were expecting. At it's simplest it compares two structures +the result you were expecting. At its simplest it compares two structures by going through each level, ensuring that the values match, that arrays and hashes have the same elements and that references are blessed into the correct class. It also handles circular data structures without getting ++++++ Test-Deep-1.127.tar.gz -> Test-Deep-1.128.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.127/Changes new/Test-Deep-1.128/Changes --- old/Test-Deep-1.127/Changes 2017-05-04 16:05:16.000000000 +0200 +++ new/Test-Deep-1.128/Changes 2018-04-19 18:02:43.000000000 +0200 @@ -1,5 +1,10 @@ Revision history for Test-Deep +1.128 2018-04-18 + - numerous small improvements to documentation; thanks to + Fabrice Gabolde, Daniel Böhmer, Lance Wicks, Matthew Horsfall + - improved CI setup; thanks to eadjei and Philip J. Ludlam + 1.127 2017-05-04 - no code changes from previous release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.127/META.json new/Test-Deep-1.128/META.json --- old/Test-Deep-1.127/META.json 2017-05-04 16:12:10.000000000 +0200 +++ new/Test-Deep-1.128/META.json 2018-04-19 18:08:12.000000000 +0200 @@ -4,7 +4,7 @@ "Fergal Daly <[email protected]>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150005", + "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -58,6 +58,6 @@ "x_IRC" : "irc://irc.perl.org/#perl-qa", "x_MailingList" : "http://lists.perl.org/list/perl-qa.html" }, - "version" : "1.127", - "x_serialization_backend" : "JSON::PP version 2.27400" + "version" : "1.128", + "x_serialization_backend" : "JSON::PP version 2.27400_02" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.127/META.yml new/Test-Deep-1.128/META.yml --- old/Test-Deep-1.127/META.yml 2017-05-04 16:12:10.000000000 +0200 +++ new/Test-Deep-1.128/META.yml 2018-04-19 18:08:12.000000000 +0200 @@ -9,7 +9,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150005' +generated_by: 'ExtUtils::MakeMaker version 7.24, 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.127' +version: '1.128' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.127/Makefile.PL new/Test-Deep-1.128/Makefile.PL --- old/Test-Deep-1.127/Makefile.PL 2015-09-29 22:19:58.000000000 +0200 +++ new/Test-Deep-1.128/Makefile.PL 2018-04-19 17:57:59.000000000 +0200 @@ -19,22 +19,32 @@ my $mm_ver = ExtUtils::MakeMaker->VERSION; +my %t_prereq = ( + 'Test::More' => '0.88', + 'Test::Tester' => $tt_prereq, +); + +my %prereq = ( + 'Test::Builder' => '0', + 'Scalar::Util' => '1.09', + + # apparently CPAN doesn't get the version of Scalar::Util + 'List::Util' => '1.09', + + ($mm_ver < 6.55_01 ? %t_prereq : ()), +); + +my %extra_meta = $mm_ver >= 6.55_01 + ? $mm_ver >= 6.63_03 ? (TEST_REQUIRES => \%t_prereq) + : (BUILD_REQUIRES => \%t_prereq) + : (); + WriteMakefile( AUTHOR => 'Fergal Daly <[email protected]>', NAME => 'Test::Deep', VERSION_FROM => './lib/Test/Deep.pm', - PREREQ_PM => { - 'Test::Builder' => '0', - 'Scalar::Util' => '1.09', - - # apparently CPAN doesn't get the version of Scalar::Util - 'List::Util' => '1.09', - }, - - ( $ExtUtils::MakeMaker::VERSION < 6.63_03 ? 'BUILD_REQUIRES' : 'TEST_REQUIRES' ) => { - 'Test::More' => '0.88', - 'Test::Tester' => $tt_prereq, - }, + PREREQ_PM => \%prereq, + %extra_meta, LICENSE => "perl", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.127/README new/Test-Deep-1.128/README --- old/Test-Deep-1.127/README 2013-04-13 16:51:30.000000000 +0200 +++ new/Test-Deep-1.128/README 2018-04-19 13:40:11.000000000 +0200 @@ -1,4 +1,4 @@ -This module gives you lots of flexibility when testing deep structres. +This module gives you lots of flexibility when testing deep structures. Install as usual - untar it the @@ -7,4 +7,4 @@ make test make install -See the pod for full deatils of how to use this. +See the pod for full details of how to use this. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-1.127/lib/Test/Deep.pm new/Test-Deep-1.128/lib/Test/Deep.pm --- old/Test-Deep-1.127/lib/Test/Deep.pm 2017-05-04 16:05:16.000000000 +0200 +++ new/Test-Deep-1.128/lib/Test/Deep.pm 2018-04-19 18:05:07.000000000 +0200 @@ -21,7 +21,7 @@ our ($Stack, %Compared, $CompareCache, %WrapCache, $Shallow); -our $VERSION = '1.127'; +our $VERSION = '1.128'; $VERSION =~ tr/_//d; require Exporter; @@ -646,7 +646,7 @@ cmp_deeply( $object, noclass({value => 5}), - "object looks ok, not checking it's class" + "object looks ok, not checking its class" ); cmp_deeply( @@ -658,11 +658,11 @@ =head1 DESCRIPTION If you don't know anything about automated testing in Perl then you should -probably read about Test::Simple and Test::More before preceding. -Test::Deep uses the Test::Builder framework. +probably read about L<Test::Simple> and L<Test::More> before preceding. +Test::Deep uses the L<Test::Builder> framework. Test::Deep gives you very flexible ways to check that the result you got is -the result you were expecting. At it's simplest it compares two structures +the result you were expecting. At its simplest it compares two structures by going through each level, ensuring that the values match, that arrays and hashes have the same elements and that references are blessed into the correct class. It also handles circular data structures without getting @@ -833,7 +833,7 @@ This will now check that $person->{Children} is an array and that every element of that array also matches C<$person_cmp>, this includes checking -that it's children also match the same pattern and so on. +that its children also match the same pattern and so on. =head2 Circular data structures @@ -972,7 +972,7 @@ $got, { name => 'John', - rando m => ignore(), + random => ignore(), address => [ '5 A street', 'a town', 'a country' ], } ); @@ -1053,9 +1053,9 @@ cmp_deeply( $got, shallow($thing) ); -$thing is a ref. +C<$thing> is a ref. -This prevents Test::Deep from looking inside $thing. It allows you to +This prevents Test::Deep from looking inside C<$thing>. It allows you to check that C<$got_v> and C<$thing> are references to the same variable. So my @a = @b = (1, 2, 3); @@ -1072,12 +1072,12 @@ cmp_deeply( $got, noclass($thing) ); -$thing is a structure to be compared against. +C<$thing> is a structure to be compared against. This makes Test::Deep ignore the class of objects, so it just looks at the data they contain. Class checking will be turned off until Test::Deep is finished comparing C<$got_v> against C<$thing>. Once Test::Deep comes out of -C<$thing> it will go back to it's previous setting for checking class. +C<$thing> it will go back to its previous setting for checking class. This can be useful when you want to check that objects have been constructed correctly but you don't want to write lots of @@ -1261,7 +1261,7 @@ C<$thing> is a structure to be compared against. <$got_v> must be an array reference. Each element of it will be compared to -$thing. This is useful when you have an array of similar things, for example +C<$thing>. This is useful when you have an array of similar things, for example objects of a known type and you don't want to have to repeat the same test for each one. @@ -1283,7 +1283,7 @@ Except it will not explode if C<$got> is not an array reference. It will check that each of the objects in C<@$got> is a MyFile and that each one -gives the correct results for it's methods. +gives the correct results for its methods. You could go further, if for example there were 3 files and you knew the size of each one you could do this @@ -1459,6 +1459,13 @@ cmp_deeply([2,3,3], subsetof(1,2,4,5) ) # Fail: 3 extra cmp_deeply([2,3,3], subsetof(1,2,4,5,3)) # Pass +=head3 none + + cmp_deeply( $got, none(@elements) ); + +@elements is an array of elements, wherein no elements in C<@elements> may +be equal to C<$got_v>. + =head3 noneof cmp_deeply( \@got, noneof(@elements) ); @@ -1688,7 +1695,7 @@ =head1 USING TEST::DEEP WITH TEST::BUILDER -Combining C<cmp_details> and C<test_diag> makes it possible to use +Combining C<cmp_details> and C<deep_diag> makes it possible to use Test::Deep in your own test classes. In a L<Test::Builder> subclass, create a test method in the following @@ -1748,7 +1755,7 @@ A special comparison (SC) is simply an object that inherits from Test::Deep::Cmp. Whenever C<$expected_v> is an SC then instead of checking -C<$got_v eq $expected_v>, we pass control over to the SC and let it do it's +C<$got_v eq $expected_v>, we pass control over to the SC and let it do its thing. Test::Deep exports lots of SC constructors, to make it easy for you to use @@ -1765,7 +1772,7 @@ method should just return true or false. This gives you enough to write your own SCs but I haven't documented how -diagnostics works because it's about to get an overhaul. +diagnostics works because it's about to get an overhaul (theoretically). =head1 EXPORTS
