1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Load gems properly. Fixes [ruby-core:31377]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
evan 2010-07-21 06:30:40 +00:00
parent 6e2850aa46
commit 6113a5add0
3 changed files with 26 additions and 6 deletions

View file

@ -29,7 +29,9 @@ module Kernel
gem_original_require path
rescue LoadError => load_error
if load_error.message.end_with?(path)
return true if Gem.try_activate(path)
if Gem.try_activate(path)
return gem_original_require(path)
end
end
raise load_error