diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-12-18 16:38:25 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-12-18 17:07:31 +0100 |
commit | 4df7b22f53ed5113bd988a4831135b9a617f9a5f (patch) | |
tree | 74d789512b9161caeda33baa73006275dfd4de81 /lib/bundler | |
parent | e92ab5e72445d3f4048fa610db73b239c7a1ec5e (diff) | |
download | bundler-4df7b22f53ed5113bd988a4831135b9a617f9a5f.tar.gz |
Make sure to `require "rubygems"` explicitlyrequire_rubygems
Some setups have `--disable=gems` in `RUBYOPT`, and sometimes use
`bundler` without modifying that env. Let's not break those setups just
to save a `require`.
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 17f2d7d9fa..f06e8d68a9 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "rubygems" + module Bundler class RubygemsIntegration if defined?(Gem::Ext::Builder::CHDIR_MONITOR) |