iconara/cql-rb — pull request #111 by jasonmk (2014-06-20 17:15:57+00:00)
Title: Allows TimeUuid and Uuid to be compared for equality

Currently, if you try to compare a Uuid and TimeUuid, there's some weirdness because of how Comparable implements ==.

[2] pry(main)> id = Cql::TimeUuid::Generator.new.next
=> #
[3] pry(main)> id2 = Cql::Uuid.new(id.value)
=> #
[4] pry(main)> id2 == id
=> true
[5] pry(main)> id == id2
=> false

This patch reverses the order of operations allowing a Uuid and TimeUuid with the same value to be equal.