Ignore warning on LoadError when running under Bundler

This commit is contained in:
Hiroshi SHIBATA 2023-10-12 16:59:13 +09:00
parent 62eea99a1c
commit fe5329f032

View File

@ -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