diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-23 18:27:33 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-23 21:10:50 +0200 |
commit | b3f692588b75451d4260f90db7fac46461569e87 (patch) | |
tree | 89b7733b3f69b534500da22917e3abb6ae87a917 | |
parent | 9d733d92abe4e492f07027fc5928a5a1172d6b31 (diff) | |
download | bundler-b3f692588b75451d4260f90db7fac46461569e87.tar.gz |
Move require to the place where it's needed
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 32ddf185a0..6dea944e83 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -1,12 +1,12 @@ # frozen_string_literal: true -require "monitor" - module Bundler class RubygemsIntegration if defined?(Gem::Ext::Builder::CHDIR_MONITOR) EXT_LOCK = Gem::Ext::Builder::CHDIR_MONITOR else + require "monitor" + EXT_LOCK = Monitor.new end |