r67643 - in /branches/upstream/libdata-serializer-perl/current: ./ lib/Data/ t/

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Fri Jan 21 22:35:19 UTC 2011


Author: periapt-guest
Date: Fri Jan 21 22:35:12 2011
New Revision: 67643

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=67643
Log:
[svn-upgrade] new version libdata-serializer-perl (0.57)

Modified:
    branches/upstream/libdata-serializer-perl/current/Changes
    branches/upstream/libdata-serializer-perl/current/META.yml
    branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm
    branches/upstream/libdata-serializer-perl/current/t/02-01-Orig-Raw.t
    branches/upstream/libdata-serializer-perl/current/t/02-02-Fast-Raw.t
    branches/upstream/libdata-serializer-perl/current/t/03-Non-Portable.t
    branches/upstream/libdata-serializer-perl/current/t/04-01-Compress-Zlib.t
    branches/upstream/libdata-serializer-perl/current/t/04-02-Compress-PPMd.t
    branches/upstream/libdata-serializer-perl/current/t/05-Encryption.t
    branches/upstream/libdata-serializer-perl/current/t/06-B64-Encoding.t
    branches/upstream/libdata-serializer-perl/current/t/07-01-MD5-Digest.t
    branches/upstream/libdata-serializer-perl/current/t/07-02-SHA1-Digest.t
    branches/upstream/libdata-serializer-perl/current/t/07-03-SHA-256-Digest.t
    branches/upstream/libdata-serializer-perl/current/t/08-Store-Retrieve.t

Modified: branches/upstream/libdata-serializer-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/Changes?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/Changes (original)
+++ branches/upstream/libdata-serializer-perl/current/Changes Fri Jan 21 22:35:12 2011
@@ -1,4 +1,9 @@
 Revision history for Perl extension Data::Serializer
+
+0.57  Mon Jan  17 2011
+	- Updated remainder of test suite to armor against XML::Simple dependency problems that I first 
+	  attempted to fix in 0.53.  Only modified tests, no change to module code
+		Thanks to the cpantesters automated reporting for finding this.
 
 0.56  Fri Jan  14 2011
 	- Moved store/retrieve internals to Data::Serializer::Persistent (internals only)

Modified: branches/upstream/libdata-serializer-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/META.yml?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/META.yml (original)
+++ branches/upstream/libdata-serializer-perl/current/META.yml Fri Jan 21 22:35:12 2011
@@ -17,7 +17,7 @@
 provides:
   Data::Serializer:
     file: lib/Data/Serializer.pm
-    version: 0.56
+    version: 0.57
   Data::Serializer::Bencode:
     file: lib/Data/Serializer/Bencode.pm
     version: 0.03
@@ -105,4 +105,4 @@
   IO::File: 0
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.56
+version: 0.57

Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm Fri Jan 21 22:35:12 2011
@@ -7,7 +7,7 @@
 use Carp;
 require 5.004 ;
 
-$VERSION = '0.56';
+$VERSION = '0.57';
 
 #Global cache of modules we've loaded
 my %_MODULES;

Modified: branches/upstream/libdata-serializer-perl/current/t/02-01-Orig-Raw.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/02-01-Orig-Raw.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/02-01-Orig-Raw.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/02-01-Orig-Raw.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/02-02-Fast-Raw.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/02-02-Fast-Raw.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/02-02-Fast-Raw.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/02-02-Fast-Raw.t Fri Jan 21 22:35:12 2011
@@ -18,6 +18,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/03-Non-Portable.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/03-Non-Portable.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/03-Non-Portable.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/03-Non-Portable.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/04-01-Compress-Zlib.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/04-01-Compress-Zlib.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/04-01-Compress-Zlib.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/04-01-Compress-Zlib.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/04-02-Compress-PPMd.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/04-02-Compress-PPMd.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/04-02-Compress-PPMd.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/04-02-Compress-PPMd.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/05-Encryption.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/05-Encryption.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/05-Encryption.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/05-Encryption.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/06-B64-Encoding.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/06-B64-Encoding.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/06-B64-Encoding.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/06-B64-Encoding.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/07-01-MD5-Digest.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/07-01-MD5-Digest.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/07-01-MD5-Digest.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/07-01-MD5-Digest.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/07-02-SHA1-Digest.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/07-02-SHA1-Digest.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/07-02-SHA1-Digest.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/07-02-SHA1-Digest.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/07-03-SHA-256-Digest.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/07-03-SHA-256-Digest.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/07-03-SHA-256-Digest.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/07-03-SHA-256-Digest.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,22 @@
 		push(@serializers, $serializer);
 	}
 }
+
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);

Modified: branches/upstream/libdata-serializer-perl/current/t/08-Store-Retrieve.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-serializer-perl/current/t/08-Store-Retrieve.t?rev=67643&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/t/08-Store-Retrieve.t (original)
+++ branches/upstream/libdata-serializer-perl/current/t/08-Store-Retrieve.t Fri Jan 21 22:35:12 2011
@@ -19,6 +19,21 @@
 		push(@serializers, $serializer);
 	}
 }
+#
+# XML::Simple has an internal dependency of either XML::SAX or XML::Parser, so we need to test for those
+# too, and if we don't find them, act like XML::Simple is not installed
+#
+if (grep {/^XML::Simple$/} @serializers) {
+        if (eval "require XML::SAX") {
+                $T->msg("Found XML::SAX to support XML::Simple");
+        } elsif (eval "require XML::Parser") {
+                $T->msg("Found XML::Parser to support XML::Simple");
+        } else {
+                $T->msg("Could not find XML::Parser or XML::SAX, removing XML::Simple") unless (@serializers);
+                @serializers = grep {!/^XML::Simple$/} @serializers;
+        }
+}
+
 
 
 $T->msg("No serializers found!!") unless (@serializers);




More information about the Pkg-perl-cvs-commits mailing list