summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-23 18:27:33 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-23 21:10:50 +0200
commitb3f692588b75451d4260f90db7fac46461569e87 (patch)
tree89b7733b3f69b534500da22917e3abb6ae87a917
parent9d733d92abe4e492f07027fc5928a5a1172d6b31 (diff)
downloadbundler-b3f692588b75451d4260f90db7fac46461569e87.tar.gz
Move require to the place where it's needed
-rw-r--r--lib/bundler/rubygems_integration.rb4
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