Paul Dlug
6b9b922266
Generate _id on the client side if no _id is provided to insert/save. The generated ObjectID (or array of ObjectID's in the case of a multiple insert) is return. Closes RUBY-22 and RUBY-23.
...
Signed-off-by: Mike Dirolf <mike@dirolf.com>
2009-07-28 21:53:59 +08:00
Mike Dirolf
cabca61e0d
previous_error and reset_error_history. snuck in a quick fix to OrderedHash equality
2009-05-26 15:26:20 -04:00
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
a5a2e82836
fix breakage when running tests on non-default port. removing ability to specify connections in [port, host] ordering.
2009-03-02 13:37:12 -05:00
Jim Menard
7de404c8e3
Added Collection#find_first.
2009-02-09 09:46:30 -05:00
Jim Menard
8c1b72b2b9
Create one DB object per test suite, not per test.
2009-02-05 10:10:41 -05:00
Jim Menard
2748338deb
Changed test that failes because Mongo started generating _id values automagically. Bumped patch version number. Changed test that needed bogus domain but used existing example.com.
2009-02-01 09:03:55 -05:00
Jim Menard
60dcb19e87
New password digest format.
2009-01-30 16:49:19 -05:00
Jim Menard
26738f30d4
Test for string port value.
2009-01-29 16:58:55 -05:00
Jim Menard
086fbaf6e5
fixed tests
2009-01-28 15:42:42 -05:00
Jim Menard
8a10a5d37d
Fixed BSON behavior: now correctly writes _id first.
2009-01-27 16:26:42 -05:00
Jim Menard
f9c9eefdb4
Added error? and error() methods to DB.
2009-01-23 13:47:27 -05:00
Jim Menard
3ffc8942b0
Changed Mongo#new so it takes a Hash for paired servers.
2009-01-23 13:30:59 -05:00
Jim Menard
d01a4f5fdb
Added auto_reconnect and slave_ok options and behavior to DB connections.
2009-01-23 11:47:22 -05:00
Jim Menard
796d052da0
Removed add_user and delete_user because security spec is not solidified.
2009-01-22 08:36:42 -05:00
Jim Menard
3e33811425
Fixed MD5 stuff so it works with Ruby 1.9. Bumped gem patch version.
2009-01-21 11:52:43 -05:00
Jim Menard
6b6b90b390
Database authentication.
2009-01-21 11:26:18 -05:00
Jim Menard
623a22ceda
DB can have PK factory. Collection#insert returns objects inserted (possibly modified by PK factory).
2009-01-16 16:10:52 -05:00
Jim Menard
e0162aebb9
Level 1 support:
...
- Added PK factory support to the db class. Documented it in the README.
- Mongo#db now takes an options hash (right now, for :strict and :pk) and
passes it in to the DB constructor.
2009-01-16 14:41:53 -05:00
Jim Menard
cd6368316b
fixed test class name
2009-01-16 09:46:47 -05:00
Jim Menard
c3d73e4151
Mongo and DB ctors can now take array of nodes. Tests now close @db in teardown.
2009-01-14 18:37:28 -05:00
Jim Menard
fdb4ed7dc5
New switch_to_master db method. Reorganized db tests a bit.
2009-01-14 15:49:49 -05:00