Skip to content

Commit

Permalink
* lib/base64.rb (Deprecated): super in bound method calls original
Browse files Browse the repository at this point in the history
  name method in stable version.  [ruby-dev:23916]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jul 16, 2004
1 parent e1ae794 commit 56e149c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
5 changes: 4 additions & 1 deletion ChangeLog
@@ -1,8 +1,11 @@
Fri Jul 16 15:21:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
Fri Jul 16 15:23:53 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>

* eval.c (return_jump, break_jump): raise unexpceted local jump
exception directly. [ruby-dev:23740]

* lib/base64.rb (Deprecated): super in bound method calls original
name method in stable version. [ruby-dev:23916]

Fri Jul 16 11:31:49 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>

* lib/test/unit/ui/{fox,gtk,gtk2}/testrunner.rb: remove
Expand Down
15 changes: 6 additions & 9 deletions lib/base64.rb
Expand Up @@ -119,16 +119,13 @@ def b64encode(bin, len = 60)
module Deprecated # :nodoc:
include Base64

def _deprecated_base64(*args)
m0, m1 = caller(0)
m = m0[/\`(.*?)\'\z/, 1]
warn("#{m1}: #{m} is deprecated; use Base64.#{m} instead")
super
end
dep = instance_method(:_deprecated_base64)
remove_method(:_deprecated_base64)
for m in Base64.private_instance_methods(false)
define_method(m, dep)
module_eval %{
def #{m}(*args)
warn("\#{caller(1)[0]}: #{m} is deprecated; use Base64.#{m} instead")
super
end
}
end
end
end
Expand Down

0 comments on commit 56e149c

Please sign in to comment.