ruby-changes:14090
From: knu <ko1@a...>
Date: Tue, 24 Nov 2009 16:21:25 +0900 (JST)
Subject: [ruby-changes:14090] Ruby:r25903 (ruby_1_8): * ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Add an
knu 2009-11-24 16:21:12 +0900 (Tue, 24 Nov 2009) New Revision: 25903 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25903 Log: * ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Add an obsoleteness warning under -w/-v. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/digest/lib/md5.rb branches/ruby_1_8/ext/digest/lib/sha1.rb Index: ruby_1_8/ext/digest/lib/md5.rb =================================================================== --- ruby_1_8/ext/digest/lib/md5.rb (revision 25902) +++ ruby_1_8/ext/digest/lib/md5.rb (revision 25903) @@ -3,6 +3,8 @@ # $RoughId: md5.rb,v 1.4 2001/07/13 15:38:27 knu Exp $ # $Id$ +warn "require 'md5' is obsolete; require 'digest' and use Digest::MD5." if $VERBOSE + require 'digest/md5' class MD5 < Digest::MD5 Index: ruby_1_8/ext/digest/lib/sha1.rb =================================================================== --- ruby_1_8/ext/digest/lib/sha1.rb (revision 25902) +++ ruby_1_8/ext/digest/lib/sha1.rb (revision 25903) @@ -3,6 +3,8 @@ # $RoughId: sha1.rb,v 1.4 2001/07/13 15:38:27 knu Exp $ # $Id$ +warn "require 'sha1' is obsolete; require 'digest' and use Digest::SHA1." if $VERBOSE + require 'digest/sha1' class SHA1 < Digest::SHA1 Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 25902) +++ ruby_1_8/ChangeLog (revision 25903) @@ -1,3 +1,8 @@ +Tue Nov 24 16:18:35 2009 Akinori MUSHA <knu@i...> + + * ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Add an + obsoleteness warning under -w/-v. + Mon Nov 23 23:59:26 2009 Nobuyoshi Nakada <nobu@r...> * eval.c (rb_method_missing): adjusted format and argument number. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/