From fe5329f032c4c71b58ffe5ca3ba32ed955adfc01 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 12 Oct 2023 16:59:13 +0900 Subject: [PATCH] Ignore warning on LoadError when running under Bundler --- lib/bundled_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index 0e67ed9fbc..9006a1eba8 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -118,7 +118,7 @@ end # If loading library is not part of the default gems and the bundled gems, warn it. class LoadError def message - if Gem::BUNDLED_GEMS::SINCE[path] && !Gem::BUNDLED_GEMS::WARNED[path] + if !defined?(Bundler) && Gem::BUNDLED_GEMS::SINCE[path] && !Gem::BUNDLED_GEMS::WARNED[path] warn path + Gem::BUNDLED_GEMS.build_message(path) end super