diff options
| author | David Rodriguez <deivid.rodriguez@riseup.net> | 2024-05-13 15:03:32 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-05-13 18:04:55 +0000 |
| commit | 5319587ac32e168dbaba452585e3f3861082ee8d (patch) | |
| tree | bcdc67e41fbe835fcef81cce206ec27e95ac566b /lib | |
| parent | d1c172dfd0296efda404e85bfc42cd8720b65cea (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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bundler/rubygems_integration.rb | 6 |
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) |
