1
0
Fork 0
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:
shyouhei 2007-08-22 02:46:51 +00:00
parent 913747d1fa
commit c64c48ff32
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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