summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-12 16:59:13 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-13 16:22:09 +0900
commitfe5329f032c4c71b58ffe5ca3ba32ed955adfc01 (patch)
tree2247c3dcbfc4180b4046decaae7b4384913206b1 /lib
parent62eea99a1c492530319f63411cf54294b9d73791 (diff)
Ignore warning on LoadError when running under Bundler
Diffstat (limited to 'lib')
-rw-r--r--lib/bundled_gems.rb2
1 files changed, 1 insertions, 1 deletions
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