Skip to content

Commit

Permalink
[rubygems/rubygems] Restore previous way of loading monitor
Browse files Browse the repository at this point in the history
I'm not sure why but this particular change seems to have introduced
some flaky test failures. So I'll revert it.

rubygems/rubygems@668488014b
  • Loading branch information
deivid-rodriguez authored and matzbot committed May 13, 2024
1 parent d1c172d commit 5319587
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bundler/rubygems_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

module Bundler
class RubygemsIntegration
autoload :Monitor, "monitor"
require "monitor"

EXT_LOCK = Monitor.new

def initialize
@replaced_methods = {}
Expand Down Expand Up @@ -171,7 +173,7 @@ def ui=(obj)
end

def ext_lock
@ext_lock ||= Monitor.new
EXT_LOCK
end

def spec_from_gem(path)
Expand Down

0 comments on commit 5319587

Please sign in to comment.