Commit Graph

18 Commits

Author SHA1 Message Date
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