mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/digest/lib/digest.rb (Digest::self.const_missing): avoid
infinite recursive const_missing call. [ruby-talk:262193] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
913747d1fa
commit
c64c48ff32
2 changed files with 5 additions and 3 deletions
|
@ -12,9 +12,11 @@ module Digest
|
|||
begin
|
||||
require lib
|
||||
rescue LoadError => e
|
||||
raise LoadError, "library not found for class Digest::#{name} -- #{lib}"
|
||||
raise LoadError, "library not found for class Digest::#{name} -- #{lib}", caller(1)
|
||||
end
|
||||
unless Digest.const_defined?(name)
|
||||
raise NameError, "uninitialized constant Digest::#{name}", caller(1)
|
||||
end
|
||||
|
||||
Digest.const_get(name)
|
||||
end
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define RUBY_RELEASE_DATE "2007-08-22"
|
||||
#define RUBY_VERSION_CODE 186
|
||||
#define RUBY_RELEASE_CODE 20070822
|
||||
#define RUBY_PATCHLEVEL 79
|
||||
#define RUBY_PATCHLEVEL 80
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue