From fcc36d767b60329692b27d685ba867848da6aa04 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Thu, 6 Jun 2019 16:49:40 +0900 Subject: [PATCH] Revert "Stop `circular require` warning" This reverts commit c2a9c350249588677cf68b506539093504927eac. It cannot stop `circular require` warning. --- lib/rubygems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 33502f6946..3508a1f3aa 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -1207,7 +1207,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} ENV["BUNDLE_GEMFILE"] ||= File.expand_path(path) require 'rubygems/user_interaction' Gem::DefaultUserInteraction.use_ui(ui) do - require "bundler" unless caller_locations.any? { |location| location.path.end_with?("bundler.rb") } + require "bundler" begin @gemdeps = Bundler.setup ensure