From cf03cd53f9669c6bdc3f572556f9e5e8eab77b6e Mon Sep 17 00:00:00 2001 From: Jim Menard Date: Tue, 2 Dec 2008 10:45:02 -0500 Subject: [PATCH] documentation --- README | 17 +++++++++++++++++ lib/mongo/util/bson.rb | 3 +++ 2 files changed, 20 insertions(+) diff --git a/README b/README index f1b4fcb..3b5d361 100644 --- a/README +++ b/README @@ -18,6 +18,23 @@ Mongo must be running, of course. The tests assume that the Mongo database is running on the default port. += The Code + +Most of this code was transliterated from Geir Magnusson Jr's Java Mongo +driver, which can be found at +http://github.com/geir/mongo-java-driver/tree/master. + +== Release Notes + +If you ran tests using code before relase +http://github.com/jimm/mongo-ruby-driver/commit/4244f56ce6c7044a1ce096843eb991856422c0cc +then the DB API tests might fail the first time you run it. If that doesn't +clear up the failed test, you might have to delete your database. To do that, +type + + $ rm /data/db/ruby-mongo-test* + + = To Do * Synchronization. diff --git a/lib/mongo/util/bson.rb b/lib/mongo/util/bson.rb index 2b3ba93..5f945ce 100644 --- a/lib/mongo/util/bson.rb +++ b/lib/mongo/util/bson.rb @@ -1,6 +1,9 @@ require 'mongo/util/byte_buffer' require 'mongo/objectid' +# See http://github.com/10gen/mongo/tree/master/db/jsobj.h +# and + class BSON EOO = 0 # x