diff options
author | David RodrÃguez <[email protected]> | 2024-08-02 16:40:41 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-08-05 12:16:49 +0800 |
commit | 5258e8b1cd780419c71f320d25370f8138f2e805 (patch) | |
tree | c9cc18092412a93f94b96b5fe9087d9839ff9435 /lib | |
parent | f4a23d96e23e2fda99eac665977c4b93c0bfc04b (diff) |
Make sure to always use the right `warn`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11296
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundled_gems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index 9d6e01141a..476750572a 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -66,7 +66,7 @@ module Gem::BUNDLED_GEMS kernel_class.send(:alias_method, :no_warning_require, :require) kernel_class.send(:define_method, :require) do |name| if message = ::Gem::BUNDLED_GEMS.warning?(name, specs: spec_names) # rubocop:disable Style/HashSyntax - warn message, :uplevel => 1 + Kernel.warn message, :uplevel => 1 end kernel_class.send(:no_warning_require, name) end |