Fix NullToken equality

This commit is contained in:
Jack Nagel 2015-03-17 21:37:03 -04:00
parent 0d4f241d48
commit 03b309cc76

View File

@ -30,6 +30,8 @@ class Version
def <=>(other) def <=>(other)
case other case other
when NullToken
0
when NumericToken when NumericToken
other.value == 0 ? 0 : -1 other.value == 0 ? 0 : -1
when AlphaToken, BetaToken, RCToken when AlphaToken, BetaToken, RCToken