End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Source::Local#<=>
<=>(other)
lib/rubygems/source/local.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/source/local.rb, line 17
def <=>(other)
case other
when Gem::Source::Installed,
Gem::Source::Lock then
-1
when Gem::Source::Local then
0
when Gem::Source then
1
else
nil
end
end
Local sorts before Gem::Source and after Gem::Source::Installed