diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-11-08 13:35:44 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-13 11:33:00 +0000 |
commit | 8e64c87f64508bf7192d44581632aff6dce15bf6 (patch) | |
tree | 49e5db7dafa85a0bc8aba0900a4e7fd03d6c0421 /lib/bundler/rubygems_ext.rb | |
parent | 50a5b76decf21f833da6c838e7acc7f991e47e00 (diff) |
[rubygems/rubygems] Make sure to `require "rubygems"` explicitly
This is also done in bundler/lib/bundler/rubygems_integration.rb, but
bundler/lib/bundler.rb loads this file before it.
https://github.com/rubygems/rubygems/commit/8840d8507b
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 77e87288c3..1d5a42cbbe 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -2,6 +2,8 @@ require "pathname" +require "rubygems" unless defined?(Gem) + require "rubygems/specification" # We can't let `Gem::Source` be autoloaded in the `Gem::Specification#source` |