summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodriguez <deivid.rodriguez@riseup.net>2024-05-13 15:03:32 +0200
committergit <svn-admin@ruby-lang.org>2024-05-13 18:04:55 +0000
commit5319587ac32e168dbaba452585e3f3861082ee8d (patch)
treebcdc67e41fbe835fcef81cce206ec27e95ac566b
parentd1c172dfd0296efda404e85bfc42cd8720b65cea (diff)
[rubygems/rubygems] Restore previous way of loading monitor
I'm not sure why but this particular change seems to have introduced some flaky test failures. So I'll revert it. https://github.com/rubygems/rubygems/commit/668488014b
-rw-r--r--lib/bundler/rubygems_integration.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index 6980b32236..494030eab2 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -4,7 +4,9 @@ require "rubygems" unless defined?(Gem)
module Bundler
class RubygemsIntegration
- autoload :Monitor, "monitor"
+ require "monitor"
+
+ EXT_LOCK = Monitor.new
def initialize
@replaced_methods = {}
@@ -171,7 +173,7 @@ module Bundler
end
def ext_lock
- @ext_lock ||= Monitor.new
+ EXT_LOCK
end
def spec_from_gem(path)