mongo 1.8.2 → 1.8.3.rc0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data.tar.gz.sig +0 -0
  2. data/LICENSE +1 -1
  3. data/README.md +2 -7
  4. data/VERSION +1 -1
  5. data/lib/mongo.rb +2 -18
  6. data/lib/mongo/collection.rb +20 -24
  7. data/lib/mongo/cursor.rb +30 -35
  8. data/lib/mongo/db.rb +1 -19
  9. data/lib/mongo/exceptions.rb +0 -19
  10. data/lib/mongo/gridfs/grid.rb +18 -29
  11. data/lib/mongo/gridfs/grid_ext.rb +0 -18
  12. data/lib/mongo/gridfs/grid_file_system.rb +17 -26
  13. data/lib/mongo/gridfs/grid_io.rb +0 -18
  14. data/lib/mongo/legacy.rb +0 -18
  15. data/lib/mongo/mongo_client.rb +11 -33
  16. data/lib/mongo/mongo_replica_set_client.rb +29 -56
  17. data/lib/mongo/mongo_sharded_client.rb +38 -50
  18. data/lib/mongo/networking.rb +5 -4
  19. data/lib/mongo/util/conversions.rb +0 -17
  20. data/lib/mongo/util/core_ext.rb +0 -18
  21. data/lib/mongo/util/node.rb +16 -3
  22. data/lib/mongo/util/pool.rb +46 -36
  23. data/lib/mongo/util/pool_manager.rb +102 -71
  24. data/lib/mongo/util/read_preference.rb +4 -2
  25. data/lib/mongo/util/server_version.rb +0 -17
  26. data/lib/mongo/util/sharding_pool_manager.rb +4 -23
  27. data/lib/mongo/util/socket_util.rb +20 -0
  28. data/lib/mongo/util/ssl_socket.rb +10 -19
  29. data/lib/mongo/util/support.rb +0 -18
  30. data/lib/mongo/util/tcp_socket.rb +1 -9
  31. data/lib/mongo/util/thread_local_variable_manager.rb +0 -18
  32. data/lib/mongo/util/uri_parser.rb +87 -82
  33. data/lib/mongo/util/write_concern.rb +0 -18
  34. data/mongo.gemspec +4 -1
  35. data/test/auxillary/pool_reuse_test.rb +65 -0
  36. data/test/functional/collection_test.rb +92 -3
  37. data/test/functional/connection_test.rb +30 -6
  38. data/test/functional/db_api_test.rb +11 -0
  39. data/test/functional/timeout_test.rb +23 -0
  40. data/test/functional/uri_test.rb +69 -0
  41. data/test/replica_set/client_test.rb +0 -22
  42. data/test/replica_set/cursor_test.rb +11 -5
  43. data/test/replica_set/refresh_test.rb +0 -0
  44. data/test/replica_set/z_cluster_shutdown.rb +13 -0
  45. data/test/sharded_cluster/basic_test.rb +46 -32
  46. data/test/test_helper.rb +26 -1
  47. data/test/threading/basic_test.rb +10 -9
  48. data/test/tools/mongo_config.rb +6 -2
  49. data/test/unit/collection_test.rb +1 -1
  50. data/test/unit/grid_test.rb +20 -13
  51. data/test/unit/mongo_sharded_client_test.rb +32 -0
  52. data/test/unit/pool_manager_test.rb +28 -14
  53. metadata +45 -12
  54. metadata.gz.sig +0 -0
metadata CHANGED
@@ -1,18 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
5
- prerelease:
4
+ version: 1.8.3.rc0
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tyler Brock
9
9
  - Gary Murakami
10
10
  - Emily Stolfo
11
11
  - Brandon Black
12
+ - Durran Jordan
12
13
  autorequire:
13
14
  bindir: bin
14
- cert_chain: []
15
- date: 2013-01-17 00:00:00.000000000 Z
15
+ cert_chain:
16
+ - !binary |-
17
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURPRENDQWlDZ0F3SUJB
18
+ Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREJDTVJRd0VnWURWUVFEREF0a2Nt
19
+ bDIKWlhJdGNuVmllVEVWTUJNR0NnbVNKb21UOGl4a0FSa1dCVEV3WjJWdU1S
20
+ TXdFUVlLQ1pJbWlaUHlMR1FCR1JZRApZMjl0TUI0WERURXpNREl3TVRFME1U
21
+ RXpOMW9YRFRFME1ESXdNVEUwTVRFek4xb3dRakVVTUJJR0ExVUVBd3dMClpI
22
+ SnBkbVZ5TFhKMVlua3hGVEFUQmdvSmtp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WGNOL0F0cElMT0pRZDlK
39
+ NzdJTklHR0NIeFpvCjZTT0hIYU5rbmxFOUgwdzZxMFNWeFpLWkk4LysyYzQ0
40
+ N1YwTnJISXcxUWhlMHRBR0o5VjF1M2t5OGd5eGUwU00KOHY3ekxGMlhsaVli
41
+ ZnVyWUl3a2NYczh5UG44Z2dBcEJJeTliWDZWSnhScy9sMitVdnF6YUhJRmFG
42
+ eS9GOC9HUApSTlR1WHNWRzVOREFDbzdRCi0tLS0tRU5EIENFUlRJRklDQVRF
43
+ LS0tLS0K
44
+ date: 2013-02-14 00:00:00.000000000 Z
16
45
  dependencies:
17
46
  - !ruby/object:Gem::Dependency
18
47
  name: bson
@@ -21,7 +50,7 @@ dependencies:
21
50
  requirements:
22
51
  - - ~>
23
52
  - !ruby/object:Gem::Version
24
- version: 1.8.2
53
+ version: 1.8.3.rc0
25
54
  type: :runtime
26
55
  prerelease: false
27
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +58,7 @@ dependencies:
29
58
  requirements:
30
59
  - - ~>
31
60
  - !ruby/object:Gem::Version
32
- version: 1.8.2
61
+ version: 1.8.3.rc0
33
62
  description: A Ruby driver for MongoDB. For more information about Mongo, see http://www.mongodb.org.
34
63
  email: mongodb-dev@googlegroups.com
35
64
  executables:
@@ -66,6 +95,7 @@ files:
66
95
  - lib/mongo/util/read_preference.rb
67
96
  - lib/mongo/util/server_version.rb
68
97
  - lib/mongo/util/sharding_pool_manager.rb
98
+ - lib/mongo/util/socket_util.rb
69
99
  - lib/mongo/util/ssl_socket.rb
70
100
  - lib/mongo/util/support.rb
71
101
  - lib/mongo/util/tcp_socket.rb
@@ -77,6 +107,7 @@ files:
77
107
  - test/auxillary/authentication_test.rb
78
108
  - test/auxillary/autoreconnect_test.rb
79
109
  - test/auxillary/fork_test.rb
110
+ - test/auxillary/pool_reuse_test.rb
80
111
  - test/auxillary/repl_set_auth_test.rb
81
112
  - test/auxillary/slave_connection_test.rb
82
113
  - test/auxillary/threaded_authentication_test.rb
@@ -118,6 +149,7 @@ files:
118
149
  - test/replica_set/read_preference_test.rb
119
150
  - test/replica_set/refresh_test.rb
120
151
  - test/replica_set/replication_ack_test.rb
152
+ - test/replica_set/z_cluster_shutdown.rb
121
153
  - test/sharded_cluster/basic_test.rb
122
154
  - test/test_helper.rb
123
155
  - test/threading/basic_test.rb
@@ -130,6 +162,7 @@ files:
130
162
  - test/unit/cursor_test.rb
131
163
  - test/unit/db_test.rb
132
164
  - test/unit/grid_test.rb
165
+ - test/unit/mongo_sharded_client_test.rb
133
166
  - test/unit/node_test.rb
134
167
  - test/unit/pool_manager_test.rb
135
168
  - test/unit/pool_test.rb
@@ -149,18 +182,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
182
  - - ! '>='
150
183
  - !ruby/object:Gem::Version
151
184
  version: '0'
152
- segments:
153
- - 0
154
- hash: -3385538101120309414
155
185
  required_rubygems_version: !ruby/object:Gem::Requirement
156
186
  none: false
157
187
  requirements:
158
- - - ! '>='
188
+ - - ! '>'
159
189
  - !ruby/object:Gem::Version
160
- version: '0'
190
+ version: 1.3.1
161
191
  requirements: []
162
192
  rubyforge_project: mongo
163
- rubygems_version: 1.8.24
193
+ rubygems_version: 1.8.23
164
194
  signing_key:
165
195
  specification_version: 3
166
196
  summary: Ruby driver for MongoDB
@@ -169,6 +199,7 @@ test_files:
169
199
  - test/auxillary/authentication_test.rb
170
200
  - test/auxillary/autoreconnect_test.rb
171
201
  - test/auxillary/fork_test.rb
202
+ - test/auxillary/pool_reuse_test.rb
172
203
  - test/auxillary/repl_set_auth_test.rb
173
204
  - test/auxillary/slave_connection_test.rb
174
205
  - test/auxillary/threaded_authentication_test.rb
@@ -210,6 +241,7 @@ test_files:
210
241
  - test/replica_set/read_preference_test.rb
211
242
  - test/replica_set/refresh_test.rb
212
243
  - test/replica_set/replication_ack_test.rb
244
+ - test/replica_set/z_cluster_shutdown.rb
213
245
  - test/sharded_cluster/basic_test.rb
214
246
  - test/test_helper.rb
215
247
  - test/threading/basic_test.rb
@@ -222,6 +254,7 @@ test_files:
222
254
  - test/unit/cursor_test.rb
223
255
  - test/unit/db_test.rb
224
256
  - test/unit/grid_test.rb
257
+ - test/unit/mongo_sharded_client_test.rb
225
258
  - test/unit/node_test.rb
226
259
  - test/unit/pool_manager_test.rb
227
260
  - test/unit/pool_test.rb
Binary file