diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-07-19 20:57:33 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-07-25 06:23:22 +0000 |
commit | bb61e45ae7be8fb456561369d2c37600694f2887 (patch) | |
tree | f13ad9199777e6e4b04a63c11c01b9feaaa99ef9 /lib | |
parent | 95cde6e4c22946c03ddaa66f055d7671cd51e0ad (diff) | |
download | ruby-bb61e45ae7be8fb456561369d2c37600694f2887.tar.gz |
[rubygems/rubygems] Keep Kernel#require private
https://github.com/rubygems/rubygems/commit/cd59e73efa
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 9852c440c7..b8003a1c75 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -247,7 +247,11 @@ module Bundler end kernel_class.send(:no_warning_require, file) end - kernel_class.send(:public, :require) + if kernel_class == ::Kernel + kernel_class.send(:private, :require) + else + kernel_class.send(:public, :require) + end end end |