Commit Graph

53 Commits

Author SHA1 Message Date
Seamus Abshere 90773ebeb8 Make ENV['MONGODB_URI'] the default first arg for `Mongo::Connection.from_uri` 2012-06-04 12:57:01 -05:00
Seamus Abshere 1454210d9f Use ENV["MONGODB_URI"] if available. 2012-06-04 13:24:30 -04:00
Gary Murakami 64c87e93a3 [Gary] require test_helper edits to work everywhere including via IDE (RubyMine), Gemfile for JRuby 2012-04-11 11:08:04 -04:00
Tyler Brock d42eee278b minor: testing fixes, cleaning output 2012-04-04 16:44:01 -04:00
Tyler Brock c992369918 minor: more testing fixes 2012-04-04 15:48:32 -04:00
Tyler Brock 6944794fb2 RUBY-422 Cleanup testing output 2012-03-16 16:17:33 -04:00
Tyler Brock 379c831b8b minor: test fix for mocha 0.10.5 -- new initializer 2012-03-01 13:03:52 -05:00
Kyle Banker b79d408a11 Enable log duration by default for :debug-level logging. 2012-02-16 14:01:09 -05:00
Cyril Mougel 84c8e7cae2 add log_duration system to add time spend in database 2012-02-03 18:02:14 +01:00
Cyril Mougel 6ab02373ea add an option in connection to log duration 2012-02-03 17:29:30 +01:00
Kyle Banker 221c40da3f minor: fix failing test 2011-12-02 17:45:42 -05:00
Kyle Banker 03303b8409 RUBY-374 Close connection on SystemStackError, NoMemoryError, and SystemCallError 2011-12-02 15:37:05 -05:00
Kyle Banker 7a11bb18a9 Ensure that cursor requiring getmore ops will not
be affected by replica set refresh.

Prep for sending commands to secondaries.
2011-10-17 14:41:09 -04:00
Kyle Banker fe5f37b5d3 minor: remove bad test 2011-09-19 12:05:03 -04:00
Kyle Banker 3c127984a3 RUBY-242 check BSON size on a per-connection basis. 2011-08-25 14:57:24 -04:00
Kyle Banker b0d5df72fa RUBY-269 RUBY-275 added connect_timeout option 2011-06-15 14:20:11 -04:00
Kyle Banker 025e56732e minor: test and doc fixes 2011-03-29 10:39:01 -04:00
Kyle Banker 272d4835a7 RUBY-252 RUBY-237 re-add Connection#host and Connection#port 2011-03-23 16:34:42 -04:00
Kyle Banker 2bfe205c51 Merged wpiekutowski's commits to enable warnings
on test suite and clean up some code.

Conflicts:
	test/cursor_test.rb
2011-03-23 16:02:04 -04:00
Kyle Banker bd4731dd39 minor: test fix 2011-03-23 15:32:32 -04:00
Kyle Banker 997d9b8ae2 RUBY-231 RUBY-250 Validate socket against pid 2011-03-17 22:15:14 -04:00
Mauro Pompilio e64f91e013 Implementation of the 'ping' command. Probably better suited for the 'active?' method. 2011-03-04 10:51:18 -05:00
Mauro Pompilio 1ad3285767 Add a mechanism to check if the connection is active/healthy. 2011-03-03 10:17:47 -05:00
Mauro Pompilio fa0a933780 Fix the exception message shown when there's an IOError
while closing a socket in the pool.
2011-02-23 12:43:20 -05:00
Wojciech Piekutowski 4ea7a14608 Add parenthesis where Ruby thinks they're a good idea 2011-02-20 17:19:14 +01:00
Kyle Banker ba38d1a5ab RUBY-230 minor: test fix for maxBsonObjectSize 2011-01-18 16:20:51 -05:00
Kyle Banker 9da68bb3db RUBY-189 use result of ismaster's maxBsonObjectSize 2010-12-29 18:06:31 -05:00
Kyle Banker f38f2c32f7 Removed redundant test 2010-12-15 12:14:40 -05:00
Kyle Banker 5930c500b4 RUBY-208 test for connection failure. Minor test fix. 2010-11-30 12:36:45 -05:00
Kyle Banker a039f813a7 minor: test fix 2010-11-29 13:56:11 -05:00
Kyle Banker 1e57ca90e1 Initial commit for reads from rs secondaries 2010-11-16 15:43:59 -05:00
Kyle Banker d6f8f9d41a Allow specification of replica set name on connect.
Raise ReplicaSetConnectionError if expected name doesn't match set.
2010-11-03 15:12:15 -04:00
Kyle Banker 9098070502 minor: more consistent naming in connection tests 2010-10-21 13:32:47 -04:00
Kyle Banker a905c3f1f2 RUBY-191 fix to pass options to new db with Connection#db 2010-10-21 13:27:57 -04:00
Kyle Banker dd02b12282 minor: test updates for JRuby in 1.9 mode 2010-10-14 16:11:30 -04:00
Kyle Banker 80044b9a58 RUBY-187 All tests can now use custom host and port;
Minor test fixes.
2010-10-13 17:09:23 -04:00
Kyle Banker b3ed1486e5 minor: updates for removal deprecated DB and Connection methods and ObjectID 2010-10-04 13:28:26 -04:00
Kyle Banker 7ad280c2cb RUBY-184 Connection#locked? 2010-10-04 11:38:20 -04:00
Kyle Banker 4141331f79 RUBY-184 fsync lock helpers 2010-09-28 12:15:45 -04:00
Kyle Banker 7309d7e48b Path fixes for test in Ruby 1.9.2 2010-09-09 15:58:51 -04:00
Kyle Banker db8ddd059b minor: silence some warning due to deprecaton 2010-08-04 16:47:13 -04:00
Kyle Banker 0afa5aa412 Initial replica set support 2010-07-19 12:07:46 -04:00
Kyle Banker 67a56b64eb fixed connection uri bug (Sunny Hirai) 2010-06-12 10:11:29 -04:00
Kyle Banker a7e2991c31 fix for boolean command response in core server 1.5.2 2010-05-31 22:52:03 -04:00
Kyle Banker 56661c4c66 minor: docs 2010-05-04 16:06:06 -04:00
Kyle Banker 910a82de7e must use Connection.paired for paired connections 2010-04-07 17:10:28 -04:00
Kyle Banker 45d3b91882 exception refinements for bson split 2010-04-05 18:24:31 -04:00
Kyle Banker 2e78eb6c66 RUBY-118 2010-04-05 15:48:35 -04:00
Kyle Banker 63b0dfc6c9 test fixes for move to bson gem 2010-04-05 11:07:01 -04:00
Kyle Banker a94a870202 log messages read like valid ruby driver code 2010-03-23 22:40:43 -07:00