BSON.deserialize should return OrderedHash, not Hash

This commit is contained in:
Jim Menard 2009-01-09 14:26:30 -05:00
parent a36e6a669d
commit 3158d50879

View File

@ -102,7 +102,7 @@ class BSON
@buf = ByteBuffer.new(buf.to_a) if buf
@buf.rewind
@buf.get_int # eat message size
doc = {}
doc = OrderedHash.new
while @buf.more?
type = @buf.get
case type