Commit Graph

30 Commits

Author SHA1 Message Date
Mike Dirolf 0a60ad0d7b support for long type in pure ruby [enc|dec]oder 2009-08-03 17:57:44 -04:00
Mike Dirolf 6cd976398e minor: c ext return dates as UTC, update credits, tweak last commit 2009-07-16 16:32:57 -04:00
David James 91b1b0ad8f Fix dates to return as UTC.
Signed-off-by: Mike Dirolf <mike@dirolf.com>
2009-07-17 04:26:56 +08:00
Mike Dirolf 37d6e16fe7 test and fix for BSON w/ negative integers. raise RangeError for out of range ints 2009-05-15 11:19:13 -04:00
Mike Dirolf a9aa5e5271 fix for pure ruby encoder when _id is a falsey value. more tests 2009-05-12 14:21:17 -04:00
Mike Dirolf 02b37f6e48 decoder for data_timestamp 2009-04-22 13:49:56 -04:00
Mike Dirolf 0f546eb5c5 add new code type rather than doing hacks based on field name. use code_w_scope instead of code 2009-03-12 15:34:15 -04:00
Mike Dirolf 56fddf79d4 dbrefs only need an oid and a collection, not all this extra cruft... 2009-03-10 14:17:01 -04:00
Mike Dirolf e93b02137c test an ordered hash and encode them specially in c 2009-03-05 14:58:34 -05:00
Mike Dirolf 709e819523 handle symbol keys as well as strings 2009-03-05 10:27:19 -05:00
Mike Dirolf 24e695b40d encoder for binary 2009-03-04 17:38:06 -05:00
Mike Dirolf 27d6106376 bad test in 1.9 2009-03-02 11:49:56 -05:00
Mike Dirolf 453e09ce9e another test 2009-02-27 12:06:53 -05:00
Mike Dirolf 8af440308b more strict tests 2009-02-27 11:27:07 -05:00
Jim Menard 28daeb6600 Support binary subtypes in Ruby driver. Bumped patch version number.
Binary type is now a subclass of ByteArray with an additional subtype value
that defaults to 2. BSON special-cases subtype 2 to write out the extra length
int.
2009-02-02 10:07:01 -05:00
Jim Menard dc3ef378d3 Fixed BSON serialization bug: was modifying objects with ids. 2009-01-28 15:38:31 -05:00
Jim Menard 8a10a5d37d Fixed BSON behavior: now correctly writes _id first. 2009-01-27 16:26:42 -05:00
Jim Menard 1bbb9fb78f BSON serialize now takes a ByteBuffer. 2009-01-26 13:52:11 -05:00
Jim Menard c65278afc7 Make sure _id gets written first when serializing BSON. 2009-01-26 09:02:18 -05:00
Jim Menard 6d2a012c7f Removed incorrect comments in tests. 2009-01-14 16:23:35 -05:00
Jim Menard f5c06d2b62 New RegexpOfHolding class that maintains unknown option flags. 2009-01-13 09:12:13 -05:00
Jim Menard c6bd4fc100 Added the XGen::Mongo::Driver::Undefined data type (yuck) 2009-01-12 12:08:02 -05:00
Jim Menard 78fdfe0eb9 Support BINARY. Lots more tests. NOTE: since some of them fail, I have commented out the tests for now. 2009-01-09 19:58:53 -05:00
Jim Menard 341fe3d90f Added BSON support for symbols 2009-01-09 18:20:53 -05:00
Jim Menard 97fa97bd2c Pass parent, name, and database to DBRef constructor when deserializing BSON 2009-01-09 15:22:10 -05:00
Jim Menard c8200c4cc6 Start of DBRef support 2009-01-08 14:43:30 -05:00
Jim Menard b4f11caff8 include XGen::Mongo::Driver in test classes 2008-12-18 21:57:20 -05:00
Jim Menard e8f3696c77 Fixed boolean BSON type constant. More tests. 2008-12-16 07:33:39 -05:00
Jim Menard c75bee763b Found and fixed code deserialization bug. 2008-12-16 07:23:22 -05:00
Jim Menard bce01bbaa6 Fixed byte buffer double encoding problem. Made byte buffer work under Ruby 1.9. 2008-12-16 07:20:20 -05:00