ryanking/simple_uuid — pull request #9 by brightbits (2013-01-23 08:30:08+00:00)
Title: Ensure ==/to_s work correctly when raw bytes are passed in different encodings

ensure they are forced to ASCII-8BIT(binary) encoding so ==/to_s doesn't return strings that are encoded differently

I've made allowances for rubies that don't support the force_encoding method (1.8)

--

Initially the added test failed with:

test_equality_with_encoding(UUIDTest)
<> expected but was
<>.