app/models/version.rb in cms_scanner-0.0.37.12 vs app/models/version.rb in cms_scanner-0.0.38.0
- old
+ new
@@ -32,10 +32,10 @@
# @param [ Version, String ] other
def <=>(other)
other = self.class.new(other) unless other.is_a?(self.class) # handle potential '.1' version
Gem::Version.new(number) <=> Gem::Version.new(other.number)
- rescue
+ rescue ArgumentError
false
end
def to_s
number