diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-09 06:06:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-09 06:06:56 +0000 |
commit | e98d4947b71e8a3ecf6a3e4dd8542f8397ae2384 (patch) | |
tree | 12f703f127267613154b80ecc9c84e3c3234a333 | |
parent | 2cbb3d821c41934f080266a8b88879dbaa9ca66f (diff) | |
download | ruby-e98d4947b71e8a3ecf6a3e4dd8542f8397ae2384.tar.gz |
ignore rake load error
rake is not available until installation now, so skip rake
packagetask even if it cannot load until it is actually needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/rubygems/test_case.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index fa4b124165..306edcc3f6 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -1439,7 +1439,10 @@ begin rescue Gem::LoadError end -require 'rake/packagetask' +begin + require 'rake/packagetask' +rescue LoadError +end begin gem 'rdoc' |