summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-12 16:53:19 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-13 16:22:09 +0900
commitfdf0589a954343c963731cf4b9e97fef6de415a3 (patch)
tree360d0ab833d0eea4ac170c0973657bbfe9ef2886 /lib
parentb49346ee7344b6febd69cf2d1dd8161b6a4e774e (diff)
Surpressing double warnings
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 d9e4d7539c..79714939bd 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -116,7 +116,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]
+ if Gem::BUNDLED_GEMS::SINCE[path] && !Gem::BUNDLED_GEMS::WARNED[path]
warn path + Gem::BUNDLED_GEMS.build_message(path)
end
super