End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Source::Lock.new
new(source)
lib/rubygems/source/lock.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/source/lock.rb, line 17
def initialize(source)
@wrapped = source
end
Creates a new Lock source that wraps source and moves it earlier in the sort list.