[rubygems/rubygems] Try fix flaky failures on Windows
It seems same race condition, maybe some Ruby bug. Just hoping this tweak may skip it. https://github.com/rubygems/rubygems/commit/29eb642026
This commit is contained in:
parent
6e73dcff05
commit
6406ac4d70
Notes:
git
2024-12-26 01:27:45 +00:00
@ -25,7 +25,7 @@ module Bundler
|
||||
end
|
||||
private_class_method :settings_method
|
||||
|
||||
(1..10).each {|v| define_method("bundler_#{v}_mode?") { major_version >= v } }
|
||||
(1..10).each {|v| define_method("bundler_#{v}_mode?") { @major_version >= v } }
|
||||
|
||||
settings_flag(:allow_offline_install) { bundler_3_mode? }
|
||||
settings_flag(:auto_clean_without_path) { bundler_3_mode? }
|
||||
@ -44,11 +44,7 @@ module Bundler
|
||||
|
||||
def initialize(bundler_version)
|
||||
@bundler_version = Gem::Version.create(bundler_version)
|
||||
@major_version = @bundler_version.segments.first
|
||||
end
|
||||
|
||||
def major_version
|
||||
@bundler_version.segments.first
|
||||
end
|
||||
private :major_version
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user