diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 08:34:52 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 08:34:52 +0000 |
commit | 5cab66cbcfd2c1d1b1da916b7e7b2be8b41cc06a (patch) | |
tree | 3a6084f26658f6990a285aa752c62a22be517274 /lib/rubygems.rb | |
parent | 88f5a4ff2d2201a455a4b056acccefd42eb18ac4 (diff) | |
download | ruby-5cab66cbcfd2c1d1b1da916b7e7b2be8b41cc06a.tar.gz |
* lib/rubygems.rb (Gem.load_yaml): return if Kernel#gem is not defined
yet. This causes crash if test-all requires libraries in a certain
order. A simple reproducible code is
ruby --disable-gem -e'require"yaml";require"minitest/autorun"'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 1494e915f7..72669fe65b 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -536,6 +536,7 @@ module Gem def self.load_yaml return if @yaml_loaded + return unless defined?(gem) test_syck = ENV['TEST_SYCK'] |