Commit Graph

1833 Commits

Author SHA1 Message Date
Tyler Brock
b70c9ce152 RUBY-406 enhancements to :secondary_only read preference
Improved implementation
-- read_preference :secondary_only is now communicated via invocation
of ReplSetConnection#checkout_secondary

Better tests
-- ensures reads go to secondaries
-- ensures reads do not go to primaries
2012-02-18 16:51:57 -05:00
Tyler Brock
b9371206dc minor: improvements to ReplSetManager
add_node can now take blocks
new add_arbiter method
2012-02-18 15:00:25 -05:00
Tyler Brock
95d1129e75 minor: cleanup unused variables + methods 2012-02-17 15:18:02 -05:00
Tyler Brock
a57762c797 minor: remove unused variables in Connection and ReplSetConnection Classes 2012-02-17 13:36:28 -05:00
Tyler Brock
79105f6c98 minor: documentation and test updates for RUBY-378 2012-02-16 14:31:34 -05:00
Kyle Banker
b79d408a11 Enable log duration by default for :debug-level logging. 2012-02-16 14:01:09 -05:00
Kyle Banker
8bdb64721b minor: remove unused code 2012-02-16 14:01:09 -05:00
Tyler Brock
a4e49d86ac Merge branch 'master' of github.com:mongodb/mongo-ruby-driver 2012-02-16 13:03:08 -05:00
Tyler Brock
098c750529 RUBY-378 minor fix to warning 2012-02-16 13:02:51 -05:00
Tyler Brock
542b8f46da RUBY-406 added ReplSetConnection read preference :secondary_only 2012-02-16 12:59:52 -05:00
Kyle Banker
0e50077ced Merge pull request #80 from VvanGemert/master
Allow GridFileSystem#delete to keep a specified number of versioned documents in GridFS rather than removing all or none.
2012-02-16 08:24:34 -08:00
Kyle Banker
3613a05461 Merge pull request #85 from shingara/log_duration
Add a log duration option.
2012-02-16 08:01:23 -08:00
Tyler Brock
78fc1debbe RUBY-378 new ReplSetConnection format 2012-02-16 10:59:09 -05:00
Kyle Banker
aecad5d345 Merge pull request #88 from Oscil8/master
Add read_only option to DB#add_user
2012-02-16 07:55:22 -08:00
Tyler Brock
fec284ee99 minor: small fix in replset initialization code 2012-02-16 10:36:13 -05:00
Tyler Brock
bcb32e5935 minor: wait for mongod to die when we kill it during replica set tests 2012-02-15 18:17:24 -05:00
Kyle Banker
dab2552b6b minor: document release process in detail. 2012-02-15 13:14:03 -05:00
Kyle Banker
02d39a75c7 minor: insert test should use w = 2 2012-02-15 12:55:14 -05:00
Kyle Banker
b299986eb4 minor: don't preallocate for replica set tests 2012-02-15 12:13:47 -05:00
Tyler Brock
8c2929bd4c minor: increased sleep time on pooled insert rs test 2012-02-15 09:51:01 -05:00
Tyler Brock
1be40495c2 RUBY-412 added if statement to case T_DATA to catch unserializable time classes in Ruby >= 1.9.3 2012-02-14 16:11:52 -05:00
Tyler Brock
e21adbd781 minor: possible fix for replica set refresh test not passing due to ghost members 2012-02-13 19:21:11 -05:00
Tyler Brock
a3fa4892a6 minor: fix for test_accessors replica set test -- should not test tags on server < 2.0 2012-02-13 18:49:56 -05:00
Tyler Brock
c6af6041e7 Merge branch 'master' of github.com:mongodb/mongo-ruby-driver 2012-02-13 17:57:38 -05:00
Tyler Brock
c954b75030 RUBY-411 refactored ReplSetConnection#setup to remove code duplication 2012-02-13 17:57:23 -05:00
Kyle Banker
b4079a22f9 minor: disable replica set threading test 2012-02-13 16:43:22 -05:00
Tyler Brock
c871a645ad Merge branch 'master' of github.com:mongodb/mongo-ruby-driver 2012-02-13 15:23:48 -05:00
Tyler Brock
21ad1e9aef RUBY-409 fixed test for ordered hash to actually used Array instead of hash 2012-02-13 15:19:59 -05:00
Tyler Brock
d19c679d67 Merge pull request #89 from benatkin/patch-1
typo in docs/WRITE_CONCERN.md
2012-02-12 20:58:40 -08:00
Benjamin Atkin
b2455431a6 typo in docs/WRITE_CONCERN.md 2012-02-12 20:11:11 -07:00
Ariel Salomon
a89492d1f8 Add documentation for read_only parameter 2012-02-12 14:25:39 -08:00
Ariel Salomon
9eadb3c24a Add read_only parameter to add_user 2012-02-12 13:30:21 -08:00
Tyler Brock
4a92a1e498 minor: fix for version_string in ReplSetManager 2012-02-10 15:43:01 -05:00
Tyler Brock
4317c9d1b0 minor: allow customization of mongod via environment var for testing via jenkins 2012-02-10 15:07:26 -05:00
Tyler Brock
08ca57b92c minor: cleanup rakefile, bamboo -> jenkins, broke out uninstall of bson_ext 2012-02-10 11:17:33 -05:00
Tyler Brock
d3948114ea minor: more testing bug fixes, refactoring -- ideas from mlanett 2012-02-06 23:41:54 -05:00
Tyler Brock
2c82762782 minor: replace relative requires within .gemspec files to fix testing in 1.9.x -- suggested by mlanett 2012-02-06 23:41:48 -05:00
Tyler Brock
a824533ad3 RUBY-407 created Gemfile 2012-02-06 20:01:16 -05:00
Tyler Brock
12e1af0c3d minor: tests now prefer test-unit gem in ruby 1.9.x 2012-02-06 19:25:11 -05:00
Tyler Brock
1c765fb338 minor: fix for require failing in tests 2012-02-06 17:45:41 -05:00
Cyril Mougel
53b7f8f81c use the platforms option to avoid install json_pure where is not needed 2012-02-03 22:35:38 +01:00
Cyril Mougel
9febf7e15c add json_pure in Gemfile because not in stdlib in ruby 1.8 2012-02-03 22:19:36 +01:00
Cyril Mougel
0426bd3d5a avoid gemspec in Gemfile because multiple gemspec 2012-02-03 22:12:32 +01:00
Cyril Mougel
65c937ff64 add Gemfile needed by travis 2012-02-03 22:11:19 +01:00
Cyril Mougel
66fe86d1b9 add travis conf 2012-02-03 22:07:00 +01: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
Tyler Brock
99d9dfddfb RUBY-405 fixed map reduce test to work with 1.8.7 using ordered hash 2012-01-30 16:57:05 -05:00
Tyler Brock
fb77743f60 RUBY-392 fix to support ruby < 1.9 (1.9 is needed to support named capture groups in regular expressions) 2012-01-30 16:55:47 -05:00
Tyler Brock
a193c055ab RUBY-404 make uri option paramaters case insensitive, test included 2012-01-30 12:06:20 -05:00