Commit Graph

707 Commits

Author SHA1 Message Date
Mike Dirolf
8bc4bb9962 do a db.error at the end of each teardown. hopefully this will fix the out of order messages that we've been experiencing 2009-03-13 17:09:19 -04:00
Mike Dirolf
1840c23364 include c extension in gem 2009-03-13 15:25:24 -04:00
Mike Dirolf
ff5507ad26 a bunch of updates to the gemspec 2009-03-13 15:22:01 -04:00
Mike Dirolf
2500996ce4 more debugging 2009-03-13 15:05:49 -04:00
Mike Dirolf
c706e79813 use configurable extension for installing c ext 2009-03-13 12:04:54 -04:00
Mike Dirolf
13c407cd85 support for db.eval 2009-03-13 11:03:52 -04:00
Mike Dirolf
4e406ac7c9 count doesn't exist on cursors, just collections 2009-03-12 18:38:11 -04:00
Mike Dirolf
888d2bac7c bump version - a bunch of fixes 2009-03-12 17:37:49 -04:00
Mike Dirolf
ce406d92f7 test and update gemspec 2009-03-12 17:25:23 -04:00
Mike Dirolf
37044a38f5 rescue a few more types of exceptions 2009-03-12 16:40:02 -04:00
Mike Dirolf
0d72ad3cdf c encoder/decoder for new Code type 2009-03-12 16:12:52 -04:00
Mike Dirolf
4e06c63972 fix warning 2009-03-12 16:01:13 -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
d3594fe8b5 update types in example 2009-03-12 15:33:13 -04:00
Mike Dirolf
7e6e11ba99 only mask socket errors 2009-03-12 14:31:37 -04:00
Mike Dirolf
401922ca63 check count after as well 2009-03-11 13:42:19 -04:00
Mike Dirolf
acaf635e33 count checks 2009-03-11 13:37:42 -04:00
Mike Dirolf
d8a8c03a81 need to initialize this 2009-03-11 11:37:18 -04:00
Mike Dirolf
68807b8df5 a couple of fixes 2009-03-11 10:49:30 -04:00
Mike Dirolf
29e538e935 decode to an OrderedHash 2009-03-10 15:41:28 -04:00
Mike Dirolf
12e959eb15 regexp decoding 2009-03-10 15:33:03 -04:00
Mike Dirolf
173ebdbf48 dbref 2009-03-10 14:58:20 -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
a3f4e4565a undefined, oid, date decoders 2009-03-10 13:19:18 -04:00
Mike Dirolf
5bbbd0b1cd decode binary, code, symbol 2009-03-10 11:48:06 -04:00
Mike Dirolf
0d2e87d105 enough decoders to run bson_benchmark.rb 2009-03-10 10:45:56 -04:00
Mike Dirolf
d0d043323f towards c decoder 2009-03-10 10:23:42 -04:00
Mike Dirolf
66cb1d492c run the test again on a unique collection 2009-03-09 10:21:08 -04:00
Mike Dirolf
5921fabfa4 run the test twice for debugging 2009-03-09 09:37:33 -04:00
Mike Dirolf
8b9bcb1e63 add back in logging and size checks around all socket receive's 2009-03-06 10:02:43 -05:00
Mike Dirolf
3ef1a6dfa8 support for bignum 2009-03-05 17:03:49 -05:00
Mike Dirolf
380a3aa3a1 write values as code 2009-03-05 16:08:10 -05:00
Mike Dirolf
1a52281b4e write _id first 2009-03-05 15:48:40 -05:00
Mike Dirolf
e93b02137c test an ordered hash and encode them specially in c 2009-03-05 14:58:34 -05:00
Mike Dirolf
1d0fe595c8 equality for ordered hashes 2009-03-05 13:48:15 -05:00
Mike Dirolf
6f845b2dbf regex encoder 2009-03-05 13:16:34 -05:00
Mike Dirolf
56595af858 dbref encoder 2009-03-05 11:45:04 -05:00
Mike Dirolf
9f2305715e oid encoder 2009-03-05 11:38:08 -05:00
Mike Dirolf
634766b14e encode undefined 2009-03-05 11:12:44 -05:00
Mike Dirolf
cfb1cb73ce encoder for symbols 2009-03-05 11:09:52 -05:00
Mike Dirolf
3904079715 encoder for Time 2009-03-05 10:58:56 -05:00
Mike Dirolf
709e819523 handle symbol keys as well as strings 2009-03-05 10:27:19 -05:00
Mike Dirolf
0ac6f2b4ed use ruby allocation macros 2009-03-05 09:48:12 -05:00
Mike Dirolf
5e1f827b09 bytebuffers => binary w/ subtype 2 2009-03-05 09:22:55 -05:00
Mike Dirolf
24e695b40d encoder for binary 2009-03-04 17:38:06 -05:00
Mike Dirolf
79b3df3c9e do all recv's in a loop. remove debugging cruft 2009-03-04 14:28:00 -05:00
Mike Dirolf
8b18502cd0 debug logs and assertions 2009-03-04 13:52:09 -05:00
Mike Dirolf
765ed9334e do to_a if it's not a string 2009-03-04 11:16:28 -05:00
Mike Dirolf
3a3109e7dc enough encoders to do bson_benchmark 2009-03-04 11:07:22 -05:00
Mike Dirolf
064ddacd5e c encoder for string types 2009-03-04 10:05:50 -05:00