Hello community,

here is the log from the commit of package perl-Data-Compare for 
openSUSE:Factory checked in at 2015-04-25 21:16:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Data-Compare (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Data-Compare.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Data-Compare"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Data-Compare/perl-Data-Compare.changes      
2014-09-17 17:24:20.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Data-Compare.new/perl-Data-Compare.changes 
2015-04-25 21:16:46.000000000 +0200
@@ -1,0 +2,11 @@
+Thu Apr 16 21:11:04 UTC 2015 - [email protected]
+
+- updated to 1.25
+   see /usr/share/doc/packages/perl-Data-Compare/CHANGELOG
+
+  1.25    2013-04-15  DCANTRELL  Add Gianni Ceccarelli's tests and patch
+                                to Use refaddr & reftype to "do the right
+                                thing" when comparing objects that overload
+                                numification and stringification
+
+-------------------------------------------------------------------

Old:
----
  Data-Compare-1.24.tar.gz

New:
----
  Data-Compare-1.25.tar.gz
  cpanspec.yml

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

Other differences:
------------------
++++++ perl-Data-Compare.spec ++++++
--- /var/tmp/diff_new_pack.WKU4M5/_old  2015-04-25 21:16:47.000000000 +0200
+++ /var/tmp/diff_new_pack.WKU4M5/_new  2015-04-25 21:16:47.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Data-Compare
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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,14 +17,15 @@
 
 
 Name:           perl-Data-Compare
-Version:        1.24
+Version:        1.25
 Release:        0
 %define cpan_name Data-Compare
-Summary:        Compare perl data structures
+Summary:        Compare Perl Data Structures
 License:        GPL-1.0+ or Artistic-1.0
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Data-Compare/
-Source:         
http://www.cpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{version}.tar.gz
+Source0:        
http://www.cpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl

++++++ Data-Compare-1.24.tar.gz -> Data-Compare-1.25.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/CHANGELOG 
new/Data-Compare-1.25/CHANGELOG
--- old/Data-Compare-1.24/CHANGELOG     2014-04-05 19:32:44.000000000 +0200
+++ new/Data-Compare-1.25/CHANGELOG     2014-12-10 14:32:38.000000000 +0100
@@ -1,3 +1,8 @@
+1.25    2013-04-15  DCANTRELL  Add Gianni Ceccarelli's tests and patch
+                                to Use refaddr & reftype to "do the right
+                                thing" when comparing objects that overload
+                                numification and stringification
+
 1.24    2014-04-05  DCANTRELL  Bump the required JSON.pm version for
                                  tests - something's a bit broken around
                                  about v 2.53
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/MANIFEST 
new/Data-Compare-1.25/MANIFEST
--- old/Data-Compare-1.24/MANIFEST      2014-04-05 19:32:54.000000000 +0200
+++ new/Data-Compare-1.25/MANIFEST      2014-12-10 14:34:52.000000000 +0100
@@ -28,5 +28,8 @@
 GPL2.txt
 t/coverage.sh
 t/FIXME-large-structures.t
+MANIFEST.SKIP
+t/overload.t
+t/lib/SpecialClass.pm
 META.yml                                 Module YAML meta-data (added by 
MakeMaker)
 META.json                                Module JSON meta-data (added by 
MakeMaker)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/MANIFEST.SKIP 
new/Data-Compare-1.25/MANIFEST.SKIP
--- old/Data-Compare-1.24/MANIFEST.SKIP 1970-01-01 01:00:00.000000000 +0100
+++ new/Data-Compare-1.25/MANIFEST.SKIP 2014-11-21 12:11:44.000000000 +0100
@@ -0,0 +1,2 @@
+.travis.yml
+^\.git
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/META.json 
new/Data-Compare-1.25/META.json
--- old/Data-Compare-1.24/META.json     2014-04-05 19:32:54.000000000 +0200
+++ new/Data-Compare-1.25/META.json     2014-12-10 14:34:52.000000000 +0100
@@ -4,7 +4,7 @@
       "unknown"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter 
version 2.120921",
+   "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter 
version 2.120351",
    "license" : [
       "unknown"
    ],
@@ -46,5 +46,5 @@
          "url" : "https://github.com/DrHyde/perl-modules-Data-Compare";
       }
    },
-   "version" : "1.24"
+   "version" : "1.25"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/META.yml 
new/Data-Compare-1.25/META.yml
--- old/Data-Compare-1.24/META.yml      2014-04-05 19:32:54.000000000 +0200
+++ new/Data-Compare-1.25/META.yml      2014-12-10 14:34:52.000000000 +0100
@@ -7,7 +7,7 @@
 configure_requires:
   ExtUtils::MakeMaker: 0
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 
2.120921'
+generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 
2.120351'
 license: unknown
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -23,4 +23,4 @@
 resources:
   bugtracker: https://github.com/DrHyde/perl-modules-Data-Compare/issues/new
   repository: https://github.com/DrHyde/perl-modules-Data-Compare
-version: 1.24
+version: 1.25
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/lib/Data/Compare.pm 
new/Data-Compare-1.25/lib/Data/Compare.pm
--- old/Data-Compare-1.24/lib/Data/Compare.pm   2014-04-05 19:29:12.000000000 
+0200
+++ new/Data-Compare-1.25/lib/Data/Compare.pm   2014-12-10 14:31:08.000000000 
+0100
@@ -17,7 +17,7 @@
 
 @ISA     = qw(Exporter);
 @EXPORT  = qw(Compare);
-$VERSION = 1.24;
+$VERSION = 1.25;
 $DEBUG   = $ENV{PERL_DATA_COMPARE_DEBUG} || 0;
 
 my %handler;
@@ -144,7 +144,7 @@
     elsif ($refx ne $refy) { # not the same type
       $rval = 0;
     }
-    elsif ($x == $y) { # exactly the same reference
+    elsif (Scalar::Util::refaddr($x) == Scalar::Util::refaddr($y)) { # exactly 
the same reference
       $rval = 1;
     }
     elsif ($refx eq 'SCALAR' || $refx eq 'REF') {
@@ -184,7 +184,7 @@
       $rval = 0;
     }
     else { # a package name (object blessed)
-      my ($type) = "$x" =~ m/^$refx=(\S+)\(/;
+      my $type = Scalar::Util::reftype($x);
       if ($type eq 'HASH') {
         my %x = %$x;
         my %y = %$y;
@@ -405,7 +405,7 @@
 This program is free software; you can redistribute it and/or
 modify it under the same terms as Perl itself.
 
-Some parts copyright 2003 - 2013 David Cantrell.
+Some parts copyright 2003 - 2014 David Cantrell.
 
 Seeing that Fabien seems to have disappeared, David Cantrell has become
 a co-maintainer so he can apply needed patches.  The licence, of course,
@@ -415,6 +415,8 @@
 
 =head1 SEE ALSO
 
+L<Test::Deep::NoTest>
+
 perl(1), perlref(1)
 
 =cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/t/lib/SpecialClass.pm 
new/Data-Compare-1.25/t/lib/SpecialClass.pm
--- old/Data-Compare-1.24/t/lib/SpecialClass.pm 1970-01-01 01:00:00.000000000 
+0100
+++ new/Data-Compare-1.25/t/lib/SpecialClass.pm 2014-12-10 14:29:25.000000000 
+0100
@@ -0,0 +1,12 @@
+package SpecialClass;
+use strict;use warnings;
+use overload
+    '""' => \&to_string,
+    '0+' => \&to_number,
+        fallback=>1;
+
+sub new { my ($class,%data) = @_; bless {%data},$class }
+sub to_string { return $_[0]->{str} || 'foo' }
+sub to_number { return $_[0]->{num} || 12 }
+
+1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/t/overload.t 
new/Data-Compare-1.25/t/overload.t
--- old/Data-Compare-1.24/t/overload.t  1970-01-01 01:00:00.000000000 +0100
+++ new/Data-Compare-1.25/t/overload.t  2014-12-10 14:29:48.000000000 +0100
@@ -0,0 +1,15 @@
+use strict;
+use warnings;
+use lib 't/lib';
+use SpecialClass;
+
+use Data::Compare;
+use Test::More tests=>2;
+
+ok(!Compare(SpecialClass->new(str=>'bar'),
+            SpecialClass->new(str=>'bar',num=>15)),
+   'String overload does not fool it');
+
+ok(!Compare(SpecialClass->new(str=>'bar',num=>15),
+            SpecialClass->new(str=>'boo',num=>15)),
+   'Numeric overload does not fool it');
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-Compare-1.24/t/taint.t 
new/Data-Compare-1.25/t/taint.t
--- old/Data-Compare-1.24/t/taint.t     2011-07-23 15:49:47.000000000 +0200
+++ new/Data-Compare-1.25/t/taint.t     2014-09-24 14:22:57.000000000 +0200
@@ -16,7 +16,7 @@
     $ENV{PERL5LIB} = '';
     exec(
         join(' ',
-            $^X,
+            $Config{perlpath},
             '-Tw',
             (
                # map { "-I$_" }

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

Reply via email to