mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/rubygems/indexer.rb: suppress random test-all error
by Bundler integration, like: http://ci.rvm.jp/results/trunk-no-mjit@silicon-docker/1479769 This resurrects r65629 which was accidentally reverted by r65904. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a2456daf94
commit
af6adb9982
1 changed files with 8 additions and 1 deletions
|
@ -4,10 +4,17 @@ require 'rubygems/package'
|
|||
require 'time'
|
||||
require 'tmpdir'
|
||||
|
||||
rescue_exceptions = [LoadError]
|
||||
begin
|
||||
require 'bundler/errors'
|
||||
rescue LoadError # this rubygems + old ruby
|
||||
else # this rubygems + ruby trunk with bundler
|
||||
rescue_exceptions << Bundler::GemfileNotFound
|
||||
end
|
||||
begin
|
||||
gem 'builder'
|
||||
require 'builder/xchar'
|
||||
rescue LoadError
|
||||
rescue *rescue_exceptions
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue