lib/rspec/support/comparable_version.rb in rspec-support-3.9.3 vs lib/rspec/support/comparable_version.rb in rspec-support-3.9.4
- old
+ new
@@ -8,10 +8,10 @@
def initialize(string)
@string = string
end
- def <=>(other)
+ def <=>(other) # rubocop:disable Metrics/AbcSize
other = self.class.new(other) unless other.is_a?(self.class)
return 0 if string == other.string
longer_segment_count = [self, other].map { |version| version.segments.count }.max