From: Gisle Aas Date: Sun, 16 Nov 2008 20:53:15 +0000 (+0000) Subject: Sync up with Digest-MD5-2.38 from CPAN X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=47a7661deb880b9c5c3ea4517c4908096fdff41f;p=p5sagit%2Fp5-mst-13.2.git Sync up with Digest-MD5-2.38 from CPAN p4raw-id: //depot/perl@34854 --- diff --git a/ext/Digest/MD5/Changes b/ext/Digest/MD5/Changes index c4d7d1f..3d1c723 100644 --- a/ext/Digest/MD5/Changes +++ b/ext/Digest/MD5/Changes @@ -1,3 +1,16 @@ +2008-11-14 Gisle Aas + + Release 2.38 + + The 2.37 tarball was infected by various '._*' files. + Thank you, Mac OS X! + + Applied warning fix from Geoff Richards [RT#19643] + + Applied compatiblity fix from Alexandr Ciornii [RT#30348] + + + 2008-11-12 Gisle Aas Release 2.37 diff --git a/ext/Digest/MD5/MD5.pm b/ext/Digest/MD5/MD5.pm index 32fc1aa..0f536bb 100644 --- a/ext/Digest/MD5/MD5.pm +++ b/ext/Digest/MD5/MD5.pm @@ -3,7 +3,7 @@ package Digest::MD5; use strict; use vars qw($VERSION @ISA @EXPORT_OK); -$VERSION = '2.37'; +$VERSION = '2.38'; require Exporter; *import = \&Exporter::import; diff --git a/ext/Digest/MD5/MD5.xs b/ext/Digest/MD5/MD5.xs index 9f3689d..a743b05 100644 --- a/ext/Digest/MD5/MD5.xs +++ b/ext/Digest/MD5/MD5.xs @@ -709,6 +709,11 @@ md5(...) if (len == 11 && memEQ("Digest::MD5", data, 11)) { msg = "probably called as class method"; } + else if (SvROK(ST(0))) { + SV* sv = SvRV(ST(0)); + if (SvOBJECT(sv) && strEQ(HvNAME(SvSTASH(sv)), "Digest::MD5")) + msg = "probably called as method"; + } } if (msg) { const char *f = (ix == F_BIN) ? "md5" : diff --git a/ext/Digest/MD5/Makefile.PL b/ext/Digest/MD5/Makefile.PL index a3f79da..7ce7da5 100644 --- a/ext/Digest/MD5/Makefile.PL +++ b/ext/Digest/MD5/Makefile.PL @@ -1,6 +1,5 @@ #!perl -w -BEGIN { require 5.006 } use strict; use Config qw(%Config); use ExtUtils::MakeMaker; @@ -21,12 +20,14 @@ if ($^O eq 'VMS') { push(@extra, 'INSTALLDIRS' => 'perl') if $] >= 5.008; push(@extra, 'MAN3PODS' => {}) if $PERL_CORE; # Pods built by installman. +push @extra, 'LICENSE' => 'perl' if $ExtUtils::MakeMaker::VERSION >= "6.30"; WriteMakefile( 'NAME' => 'Digest::MD5', 'VERSION_FROM' => 'MD5.pm', 'PREREQ_PM' => { 'File::Spec' => 0, 'Digest::base' => '1.00', + 'XSLoader' => 0, }, @extra, 'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, diff --git a/ext/Digest/MD5/t/files.t b/ext/Digest/MD5/t/files.t index 4c41b32..5f2f792 100644 --- a/ext/Digest/MD5/t/files.t +++ b/ext/Digest/MD5/t/files.t @@ -20,27 +20,27 @@ use Digest::MD5 qw(md5 md5_hex md5_base64); my $EXPECT; if (ord "A" == 193) { # EBCDIC $EXPECT = <