Hello community, here is the log from the commit of package perl-Test-Deep for openSUSE:Factory checked in at 2013-06-06 13:31:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Deep (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Deep.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Deep" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Deep/perl-Test-Deep.changes 2012-02-20 16:16:33.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Test-Deep.new/perl-Test-Deep.changes 2013-06-06 13:31:24.000000000 +0200 @@ -1,0 +2,7 @@ +Tue Jun 4 15:02:11 UTC 2013 - [email protected] + +- updated to 0.110 + Allow methods() and listmethods() to work again on class methods + (RT#77804) (thanks, Ricardo Signes!) + +------------------------------------------------------------------- Old: ---- Test-Deep-0.109.tar.gz New: ---- Test-Deep-0.110.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Deep.spec ++++++ --- /var/tmp/diff_new_pack.rUC9md/_old 2013-06-06 13:31:24.000000000 +0200 +++ /var/tmp/diff_new_pack.rUC9md/_new 2013-06-06 13:31:24.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Deep # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products 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,7 +17,7 @@ Name: perl-Test-Deep -Version: 0.109 +Version: 0.110 Release: 0 %define cpan_name Test-Deep Summary: Extremely flexible deep comparison ++++++ Test-Deep-0.109.tar.gz -> Test-Deep-0.110.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-0.109/CHANGES new/Test-Deep-0.110/CHANGES --- old/Test-Deep-0.109/CHANGES 2012-02-17 03:41:37.000000000 +0100 +++ new/Test-Deep-0.110/CHANGES 2012-06-16 17:43:48.000000000 +0200 @@ -1,5 +1,10 @@ Revision history for Test-Deep +0.110 2012-06-16 + + Allow methods() and listmethods() to work again on class methods + (RT#77804) (thanks, Ricardo Signes!) + 0.109 2012-02-16 UNIVERSAL::isa and UNIVERAL::can are no longer called as functions: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-0.109/META.json new/Test-Deep-0.110/META.json --- old/Test-Deep-0.109/META.json 2012-02-17 03:44:29.000000000 +0100 +++ new/Test-Deep-0.110/META.json 2012-06-16 17:44:48.000000000 +0200 @@ -4,7 +4,7 @@ "Fergal Daly <[email protected]>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120351", + "generated_by" : "ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120921", "license" : [ "unknown" ], @@ -41,5 +41,5 @@ } }, "release_status" : "stable", - "version" : "0.109" + "version" : "0.110" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-0.109/META.yml new/Test-Deep-0.110/META.yml --- old/Test-Deep-0.109/META.yml 2012-02-17 03:44:29.000000000 +0100 +++ new/Test-Deep-0.110/META.yml 2012-06-16 17:44:47.000000000 +0200 @@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: 0 dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120351' +generated_by: 'ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120921' license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -23,4 +23,4 @@ Test::More: 0 Test::NoWarnings: 0.02 Test::Tester: 0.04 -version: 0.109 +version: 0.110 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-0.109/lib/Test/Deep/ArrayEach.pm new/Test-Deep-0.110/lib/Test/Deep/ArrayEach.pm --- old/Test-Deep-0.109/lib/Test/Deep/ArrayEach.pm 2010-09-25 21:32:52.000000000 +0200 +++ new/Test-Deep-0.110/lib/Test/Deep/ArrayEach.pm 2012-04-01 17:54:26.000000000 +0200 @@ -4,6 +4,7 @@ package Test::Deep::ArrayEach; use Test::Deep::Cmp; +use Scalar::Util (); sub init { @@ -19,9 +20,18 @@ my $self = shift; my $got = shift; + return unless Scalar::Util::reftype($got) eq 'ARRAY'; my $exp = [ ($self->{val}) x @$got ]; return Test::Deep::descend($got, $exp); } +sub renderExp +{ + my $self = shift; + my $exp = shift; + + return '[ ' . $self->SUPER::renderExp($self->{val}) . ', ... ]'; +} + 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-0.109/lib/Test/Deep/Methods.pm new/Test-Deep-0.110/lib/Test/Deep/Methods.pm --- old/Test-Deep-0.109/lib/Test/Deep/Methods.pm 2012-02-10 23:54:38.000000000 +0100 +++ new/Test-Deep-0.110/lib/Test/Deep/Methods.pm 2012-04-01 18:33:02.000000000 +0200 @@ -38,11 +38,13 @@ $data->{method} = $method; my ($call, $exp_res) = @$method; - my ($name) = @$call; + my ($name, @args) = @$call; - my $got_res = Scalar::Util::blessed($got) && $got->can($name) ? - $self->call_method($got, $call) : - $Test::Deep::DNE; + my $got_res; + if (! eval { $got_res = $self->call_method($got, $call); 1 }) { + die $@ unless $@ =~ /\ACan't locate object method "\Q$name"/; + $got_res = $Test::Deep::DNE; + } next if Test::Deep::descend($got_res, $exp_res); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-0.109/lib/Test/Deep.pm new/Test-Deep-0.110/lib/Test/Deep.pm --- old/Test-Deep-0.109/lib/Test/Deep.pm 2012-02-17 03:38:23.000000000 +0100 +++ new/Test-Deep-0.110/lib/Test/Deep.pm 2012-06-16 17:43:54.000000000 +0200 @@ -21,7 +21,7 @@ our ($Stack, %Compared, $CompareCache, %WrapCache, $Shallow); -our $VERSION = '0.109'; +our $VERSION = '0.110'; $VERSION = eval $VERSION; require Exporter; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-0.109/t/listmethods.t new/Test-Deep-0.110/t/listmethods.t --- old/Test-Deep-0.109/t/listmethods.t 2010-09-25 21:32:52.000000000 +0200 +++ new/Test-Deep-0.110/t/listmethods.t 2012-06-16 17:42:18.000000000 +0200 @@ -3,12 +3,11 @@ use t::std; +foreach my $thing (fake->new, 'fake') { - my $obj = fake->new; - check_test( sub { - cmp_deeply($obj, listmethods(meth1 => ["val1"], meth2 => ['a', 'b'])); + cmp_deeply($thing, listmethods(meth1 => ["val1"], meth2 => ['a', 'b'])); }, { actual_ok => 1, @@ -18,7 +17,7 @@ ); check_test( sub { - cmp_deeply($obj, listmethods(meth1 => ["val1"], meth2 => ['a', 'c'])); + cmp_deeply($thing, listmethods(meth1 => ["val1"], meth2 => ['a', 'c'])); }, { actual_ok => 0, @@ -32,7 +31,7 @@ ); check_test( sub { - cmp_deeply($obj, listmethods(['plus1', 2] => ["a", "a", "a"])); + cmp_deeply($thing, listmethods(['plus1', 2] => ["a", "a", "a"])); }, { actual_ok => 1, @@ -42,7 +41,7 @@ ); check_test( sub { - cmp_deeply($obj, listmethods(['plus1', 2] => ["a", "b", "a"])); + cmp_deeply($thing, listmethods(['plus1', 2] => ["a", "b", "a"])); }, { actual_ok => 0, @@ -58,7 +57,7 @@ my $v3 = ['val3']; check_test( sub { - cmp_deeply($obj, listmethods(meth1 => ["val1"], meth3 => $v3)); + cmp_deeply($thing, listmethods(meth1 => ["val1"], meth3 => $v3)); }, { actual_ok => 0, @@ -73,7 +72,7 @@ } { - my $obj = fake->new; + my $obj = fake->new; check_test( sub { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Deep-0.109/t/methods.t new/Test-Deep-0.110/t/methods.t --- old/Test-Deep-0.109/t/methods.t 2010-09-25 21:32:52.000000000 +0200 +++ new/Test-Deep-0.110/t/methods.t 2012-06-16 17:42:18.000000000 +0200 @@ -3,12 +3,11 @@ use t::std; +foreach my $thing (fake->new, 'fake') { - my $obj = fake->new; - check_test( sub { - cmp_deeply($obj, methods(meth1 => "val1", meth2 => ['a', 'b'])); + cmp_deeply($thing, methods(meth1 => "val1", meth2 => ['a', 'b'])); }, { actual_ok => 1, @@ -18,7 +17,7 @@ ); check_test( sub { - cmp_deeply($obj, methods(meth1 => "val1", meth2 => ['a', 'c'])); + cmp_deeply($thing, methods(meth1 => "val1", meth2 => ['a', 'c'])); }, { actual_ok => 0, @@ -32,7 +31,7 @@ ); check_test( sub { - cmp_deeply($obj, methods(['plus1', 2] => 3)); + cmp_deeply($thing, methods(['plus1', 2] => 3)); }, { actual_ok => 1, @@ -42,7 +41,7 @@ ); check_test( sub { - cmp_deeply($obj, methods(['plus1', 2] => 2)); + cmp_deeply($thing, methods(['plus1', 2] => 2)); }, { actual_ok => 0, @@ -57,7 +56,7 @@ check_test( sub { - cmp_deeply($obj, methods(meth1 => "val1", meth3 => "val3")); + cmp_deeply($thing, methods(meth1 => "val1", meth3 => "val3")); }, { actual_ok => 0, @@ -72,7 +71,7 @@ } { - my $obj = fake->new; + my $obj = fake->new; check_test( sub { -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
