mongo 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +15 -3
- data/docs/FAQ.md +4 -0
- data/docs/HISTORY.md +11 -4
- data/lib/mongo.rb +1 -1
- data/lib/mongo/collection.rb +28 -25
- data/lib/mongo/connection.rb +54 -12
- data/lib/mongo/cursor.rb +17 -11
- data/lib/mongo/db.rb +31 -11
- data/lib/mongo/repl_set_connection.rb +17 -2
- data/lib/mongo/util/pool.rb +50 -6
- data/test/auxillary/repl_set_auth_test.rb +58 -0
- data/test/auxillary/threaded_authentication_test.rb +101 -0
- data/test/bson/bson_test.rb +43 -0
- data/test/connection_test.rb +1 -1
- data/test/db_api_test.rb +0 -37
- data/test/load/thin/load.rb +24 -0
- data/test/load/unicorn/load.rb +23 -0
- data/test/load/unicorn/unicorn.rb +29 -0
- data/test/tools/auth_repl_set_manager.rb +14 -0
- data/test/tools/load.rb +58 -0
- data/test/tools/repl_set_manager.rb +34 -9
- data/test/tools/sharding_manager.rb +202 -0
- data/test/tools/test.rb +3 -12
- data/test/unit/collection_test.rb +19 -22
- data/test/unit/connection_test.rb +0 -1
- data/test/unit/db_test.rb +1 -0
- metadata +23 -11
@@ -67,7 +67,6 @@ class ConnectionTest < Test::Unit::TestCase
|
|
67
67
|
admin_db = new_mock_db
|
68
68
|
admin_db.expects(:command).returns({'ok' => 1, 'ismaster' => 1}).twice
|
69
69
|
@conn.expects(:[]).with('admin').returns(admin_db).twice
|
70
|
-
@conn.expects(:apply_saved_authentication)
|
71
70
|
@conn.connect
|
72
71
|
end
|
73
72
|
|
data/test/unit/db_test.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
8
|
+
- 1
|
9
|
+
version: 1.2.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Jim Menard
|
@@ -17,7 +16,7 @@ autorequire:
|
|
17
16
|
bindir: bin
|
18
17
|
cert_chain: []
|
19
18
|
|
20
|
-
date: 2011-
|
19
|
+
date: 2011-02-10 00:00:00 -05:00
|
21
20
|
default_executable:
|
22
21
|
dependencies:
|
23
22
|
- !ruby/object:Gem::Dependency
|
@@ -28,12 +27,11 @@ dependencies:
|
|
28
27
|
requirements:
|
29
28
|
- - ">="
|
30
29
|
- !ruby/object:Gem::Version
|
31
|
-
hash: 31
|
32
30
|
segments:
|
33
31
|
- 1
|
34
32
|
- 2
|
35
|
-
-
|
36
|
-
version: 1.2.
|
33
|
+
- 1
|
34
|
+
version: 1.2.1
|
37
35
|
type: :runtime
|
38
36
|
version_requirements: *id001
|
39
37
|
description: A Ruby driver for MongoDB. For more information about Mongo, see http://www.mongodb.org.
|
@@ -93,11 +91,16 @@ files:
|
|
93
91
|
- test/async/connection_test.rb
|
94
92
|
- test/async/worker_pool_test.rb
|
95
93
|
- test/cursor_test.rb
|
94
|
+
- test/load/unicorn/unicorn.rb
|
95
|
+
- test/load/unicorn/load.rb
|
96
|
+
- test/load/thin/load.rb
|
96
97
|
- test/grid_test.rb
|
97
98
|
- test/db_api_test.rb
|
98
99
|
- test/auxillary/slave_connection_test.rb
|
100
|
+
- test/auxillary/threaded_authentication_test.rb
|
99
101
|
- test/auxillary/authentication_test.rb
|
100
102
|
- test/auxillary/autoreconnect_test.rb
|
103
|
+
- test/auxillary/repl_set_auth_test.rb
|
101
104
|
- test/auxillary/1.4_features.rb
|
102
105
|
- test/conversions_test.rb
|
103
106
|
- test/connection_test.rb
|
@@ -105,6 +108,9 @@ files:
|
|
105
108
|
- test/cursor_message_test.rb
|
106
109
|
- test/tools/test.rb
|
107
110
|
- test/tools/repl_set_manager.rb
|
111
|
+
- test/tools/auth_repl_set_manager.rb
|
112
|
+
- test/tools/load.rb
|
113
|
+
- test/tools/sharding_manager.rb
|
108
114
|
- test/cursor_fail_test.rb
|
109
115
|
- test/threading/threading_with_large_pool_test.rb
|
110
116
|
- test/test_helper.rb
|
@@ -147,7 +153,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
153
|
requirements:
|
148
154
|
- - ">="
|
149
155
|
- !ruby/object:Gem::Version
|
150
|
-
hash: 3
|
151
156
|
segments:
|
152
157
|
- 0
|
153
158
|
version: "0"
|
@@ -156,14 +161,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
161
|
requirements:
|
157
162
|
- - ">="
|
158
163
|
- !ruby/object:Gem::Version
|
159
|
-
hash: 3
|
160
164
|
segments:
|
161
165
|
- 0
|
162
166
|
version: "0"
|
163
167
|
requirements: []
|
164
168
|
|
165
169
|
rubyforge_project:
|
166
|
-
rubygems_version: 1.
|
170
|
+
rubygems_version: 1.3.7
|
167
171
|
signing_key:
|
168
172
|
specification_version: 3
|
169
173
|
summary: Ruby driver for the MongoDB
|
@@ -184,11 +188,16 @@ test_files:
|
|
184
188
|
- test/async/connection_test.rb
|
185
189
|
- test/async/worker_pool_test.rb
|
186
190
|
- test/cursor_test.rb
|
191
|
+
- test/load/unicorn/unicorn.rb
|
192
|
+
- test/load/unicorn/load.rb
|
193
|
+
- test/load/thin/load.rb
|
187
194
|
- test/grid_test.rb
|
188
195
|
- test/db_api_test.rb
|
189
196
|
- test/auxillary/slave_connection_test.rb
|
197
|
+
- test/auxillary/threaded_authentication_test.rb
|
190
198
|
- test/auxillary/authentication_test.rb
|
191
199
|
- test/auxillary/autoreconnect_test.rb
|
200
|
+
- test/auxillary/repl_set_auth_test.rb
|
192
201
|
- test/auxillary/1.4_features.rb
|
193
202
|
- test/conversions_test.rb
|
194
203
|
- test/connection_test.rb
|
@@ -196,6 +205,9 @@ test_files:
|
|
196
205
|
- test/cursor_message_test.rb
|
197
206
|
- test/tools/test.rb
|
198
207
|
- test/tools/repl_set_manager.rb
|
208
|
+
- test/tools/auth_repl_set_manager.rb
|
209
|
+
- test/tools/load.rb
|
210
|
+
- test/tools/sharding_manager.rb
|
199
211
|
- test/cursor_fail_test.rb
|
200
212
|
- test/threading/threading_with_large_pool_test.rb
|
201
213
|
- test/test_helper.rb
|