lib/compact_index/gem.rb in compact_index-0.10.0 vs lib/compact_index/gem.rb in compact_index-0.11.0

- old
+ new

@@ -1,4 +1,8 @@ # frozen_string_literal: true module CompactIndex - Gem = Struct.new(:name, :versions) + Gem = Struct.new(:name, :versions) do + def <=>(other) + name <=> other.name + end + end end