mongo 1.8.0 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +14 -29
- data/VERSION +1 -1
- data/lib/mongo.rb +3 -0
- data/lib/mongo/collection.rb +99 -49
- data/lib/mongo/cursor.rb +17 -17
- data/lib/mongo/db.rb +30 -14
- data/lib/mongo/gridfs/grid.rb +5 -3
- data/lib/mongo/gridfs/grid_file_system.rb +5 -3
- data/lib/mongo/gridfs/grid_io.rb +5 -3
- data/lib/mongo/legacy.rb +9 -2
- data/lib/mongo/mongo_client.rb +100 -72
- data/lib/mongo/mongo_replica_set_client.rb +46 -60
- data/lib/mongo/mongo_sharded_client.rb +5 -66
- data/lib/mongo/networking.rb +2 -1
- data/lib/mongo/util/node.rb +41 -42
- data/lib/mongo/util/pool.rb +15 -43
- data/lib/mongo/util/pool_manager.rb +16 -65
- data/lib/mongo/util/read_preference.rb +82 -0
- data/lib/mongo/util/sharding_pool_manager.rb +0 -86
- data/lib/mongo/util/ssl_socket.rb +2 -1
- data/lib/mongo/util/support.rb +8 -18
- data/lib/mongo/util/tcp_socket.rb +5 -4
- data/lib/mongo/util/thread_local_variable_manager.rb +29 -0
- data/lib/mongo/util/unix_socket.rb +23 -0
- data/lib/mongo/util/uri_parser.rb +31 -18
- data/lib/mongo/util/write_concern.rb +7 -2
- data/mongo.gemspec +1 -1
- data/test/auxillary/repl_set_auth_test.rb +2 -2
- data/test/bson/bson_test.rb +1 -1
- data/test/bson/byte_buffer_test.rb +24 -26
- data/test/bson/hash_with_indifferent_access_test.rb +11 -1
- data/test/functional/collection_test.rb +16 -16
- data/test/functional/connection_test.rb +1 -4
- data/test/functional/db_api_test.rb +14 -10
- data/test/functional/pool_test.rb +23 -31
- data/test/functional/timeout_test.rb +3 -5
- data/test/functional/uri_test.rb +10 -5
- data/test/replica_set/basic_test.rb +3 -8
- data/test/replica_set/client_test.rb +47 -31
- data/test/replica_set/complex_connect_test.rb +12 -10
- data/test/replica_set/connection_test.rb +8 -151
- data/test/replica_set/count_test.rb +9 -5
- data/test/replica_set/cursor_test.rb +17 -27
- data/test/replica_set/insert_test.rb +5 -10
- data/test/replica_set/query_test.rb +4 -9
- data/test/replica_set/read_preference_test.rb +200 -0
- data/test/replica_set/refresh_test.rb +54 -65
- data/test/replica_set/replication_ack_test.rb +16 -14
- data/test/sharded_cluster/basic_test.rb +30 -0
- data/test/test_helper.rb +33 -15
- data/test/threading/basic_test.rb +79 -0
- data/test/tools/mongo_config.rb +62 -22
- data/test/unit/client_test.rb +36 -14
- data/test/unit/collection_test.rb +23 -0
- data/test/unit/connection_test.rb +30 -14
- data/test/unit/cursor_test.rb +137 -7
- data/test/unit/db_test.rb +17 -4
- data/test/unit/grid_test.rb +2 -2
- data/test/unit/node_test.rb +2 -1
- data/test/unit/pool_manager_test.rb +29 -1
- data/test/unit/read_test.rb +15 -15
- data/test/unit/safe_test.rb +4 -4
- data/test/unit/write_concern_test.rb +4 -4
- metadata +134 -143
- data/examples/admin.rb +0 -43
- data/examples/capped.rb +0 -22
- data/examples/cursor.rb +0 -48
- data/examples/gridfs.rb +0 -44
- data/examples/index_test.rb +0 -126
- data/examples/info.rb +0 -31
- data/examples/queries.rb +0 -74
- data/examples/replica_set.rb +0 -26
- data/examples/simple.rb +0 -25
- data/examples/strict.rb +0 -35
- data/examples/types.rb +0 -36
- data/examples/web/thin/load.rb +0 -23
- data/examples/web/unicorn/load.rb +0 -25
- data/test/support/hash_with_indifferent_access.rb +0 -186
- data/test/support/keys.rb +0 -45
- data/test/threading/threading_with_large_pool_test.rb +0 -90
data/test/unit/grid_test.rb
CHANGED
@@ -6,7 +6,7 @@ class GridTest < Test::Unit::TestCase
|
|
6
6
|
setup do
|
7
7
|
@client = stub()
|
8
8
|
@client.stubs(:write_concern).returns({})
|
9
|
-
@client.stubs(:
|
9
|
+
@client.stubs(:read).returns(:primary)
|
10
10
|
@client.stubs(:tag_sets)
|
11
11
|
@client.stubs(:acceptable_latency)
|
12
12
|
@db = DB.new("testing", @client)
|
@@ -16,7 +16,7 @@ class GridTest < Test::Unit::TestCase
|
|
16
16
|
@db.expects(:[]).with('fs.files').returns(@files)
|
17
17
|
@db.expects(:[]).with('fs.chunks').returns(@chunks)
|
18
18
|
@db.stubs(:safe)
|
19
|
-
@db.stubs(:
|
19
|
+
@db.stubs(:read).returns(:primary)
|
20
20
|
end
|
21
21
|
|
22
22
|
context "Grid classe with standard connections" do
|
data/test/unit/node_test.rb
CHANGED
@@ -18,9 +18,10 @@ class NodeTest < Test::Unit::TestCase
|
|
18
18
|
@client.stubs(:op_timeout).returns(nil)
|
19
19
|
@client.stubs(:connect_timeout).returns(nil)
|
20
20
|
@client.expects(:log)
|
21
|
+
@client.expects(:mongos?).returns(false)
|
21
22
|
|
22
23
|
assert node.connect
|
23
|
-
node.
|
24
|
+
node.config
|
24
25
|
end
|
25
26
|
|
26
27
|
should "load a node from an array" do
|
@@ -5,7 +5,7 @@ class PoolManagerTest < Test::Unit::TestCase
|
|
5
5
|
|
6
6
|
context "Initialization: " do
|
7
7
|
|
8
|
-
|
8
|
+
setup do
|
9
9
|
TCPSocket.stubs(:new).returns(new_mock_socket)
|
10
10
|
@db = new_mock_db
|
11
11
|
|
@@ -16,6 +16,7 @@ class PoolManagerTest < Test::Unit::TestCase
|
|
16
16
|
@client.stubs(:pool_timeout).returns(100)
|
17
17
|
@client.stubs(:seeds).returns(['localhost:30000'])
|
18
18
|
@client.stubs(:socket_class).returns(TCPSocket)
|
19
|
+
@client.stubs(:mongos?).returns(false)
|
19
20
|
@client.stubs(:[]).returns(@db)
|
20
21
|
|
21
22
|
@client.stubs(:replica_set_name).returns(nil)
|
@@ -23,6 +24,9 @@ class PoolManagerTest < Test::Unit::TestCase
|
|
23
24
|
@arbiters = ['localhost:27020']
|
24
25
|
@hosts = ['localhost:27017', 'localhost:27018', 'localhost:27019',
|
25
26
|
'localhost:27020']
|
27
|
+
end
|
28
|
+
|
29
|
+
should "populate pools correctly" do
|
26
30
|
|
27
31
|
@db.stubs(:command).returns(
|
28
32
|
# First call to get a socket.
|
@@ -42,6 +46,30 @@ class PoolManagerTest < Test::Unit::TestCase
|
|
42
46
|
assert_equal 27017, manager.primary_pool.port
|
43
47
|
assert_equal 2, manager.secondaries.length
|
44
48
|
assert_equal 27018, manager.secondary_pools[0].port
|
49
|
+
assert_equal 27019, manager.secondary_pools[1].port
|
50
|
+
assert_equal [['localhost', 27020]], manager.arbiters
|
51
|
+
end
|
52
|
+
|
53
|
+
should "populate pools with single unqueryable seed" do
|
54
|
+
|
55
|
+
@db.stubs(:command).returns(
|
56
|
+
# First call to recovering node
|
57
|
+
{'ismaster' => false, 'secondary' => false, 'hosts' => @hosts, 'arbiters' => @arbiters},
|
58
|
+
|
59
|
+
# Subsequent calls to configure pools.
|
60
|
+
{'ismaster' => false, 'secondary' => false, 'hosts' => @hosts, 'arbiters' => @arbiters},
|
61
|
+
{'ismaster' => true, 'hosts' => @hosts, 'arbiters' => @arbiters},
|
62
|
+
{'secondary' => true, 'hosts' => @hosts, 'arbiters' => @arbiters},
|
63
|
+
{'arbiterOnly' => true, 'hosts' => @hosts, 'arbiters' => @arbiters})
|
64
|
+
|
65
|
+
seeds = [['localhost', 27017]]
|
66
|
+
manager = Mongo::PoolManager.new(@client, seeds)
|
67
|
+
manager.connect
|
68
|
+
|
69
|
+
assert_equal ['localhost', 27018], manager.primary
|
70
|
+
assert_equal 27018, manager.primary_pool.port
|
71
|
+
assert_equal 1, manager.secondaries.length
|
72
|
+
assert_equal 27019, manager.secondary_pools[0].port
|
45
73
|
assert_equal [['localhost', 27020]], manager.arbiters
|
46
74
|
end
|
47
75
|
|
data/test/unit/read_test.rb
CHANGED
@@ -4,21 +4,21 @@ class ReadTest < Test::Unit::TestCase
|
|
4
4
|
|
5
5
|
context "Read mode on standard connection: " do
|
6
6
|
setup do
|
7
|
-
@
|
8
|
-
@client = MongoClient.new('localhost', 27017, :read => @
|
7
|
+
@read = :secondary
|
8
|
+
@client = MongoClient.new('localhost', 27017, :read => @read, :connect => false)
|
9
9
|
end
|
10
10
|
|
11
11
|
end
|
12
12
|
|
13
13
|
context "Read preferences on replica set connection: " do
|
14
14
|
setup do
|
15
|
-
@
|
15
|
+
@read = :secondary_preferred
|
16
16
|
@acceptable_latency = 100
|
17
17
|
@tags = {"dc" => "Tyler", "rack" => "Brock"}
|
18
18
|
@bad_tags = {"wow" => "cool"}
|
19
19
|
@client = MongoReplicaSetClient.new(
|
20
20
|
['localhost:27017'],
|
21
|
-
:read => @
|
21
|
+
:read => @read,
|
22
22
|
:tag_sets => @tags,
|
23
23
|
:secondary_acceptable_latency_ms => @acceptable_latency,
|
24
24
|
:connect => false
|
@@ -26,36 +26,36 @@ class ReadTest < Test::Unit::TestCase
|
|
26
26
|
end
|
27
27
|
|
28
28
|
should "store read preference on MongoClient" do
|
29
|
-
assert_equal @
|
29
|
+
assert_equal @read, @client.read
|
30
30
|
assert_equal @tags, @client.tag_sets
|
31
31
|
assert_equal @acceptable_latency, @client.acceptable_latency
|
32
32
|
end
|
33
33
|
|
34
34
|
should "propogate to DB" do
|
35
35
|
db = @client['foo']
|
36
|
-
assert_equal @
|
36
|
+
assert_equal @read, db.read
|
37
37
|
assert_equal @tags, db.tag_sets
|
38
38
|
assert_equal @acceptable_latency, db.acceptable_latency
|
39
39
|
|
40
40
|
db = @client.db('foo')
|
41
|
-
assert_equal @
|
41
|
+
assert_equal @read, db.read
|
42
42
|
assert_equal @tags, db.tag_sets
|
43
43
|
assert_equal @acceptable_latency, db.acceptable_latency
|
44
44
|
|
45
45
|
db = DB.new('foo', @client)
|
46
|
-
assert_equal @
|
46
|
+
assert_equal @read, db.read
|
47
47
|
assert_equal @tags, db.tag_sets
|
48
48
|
assert_equal @acceptable_latency, db.acceptable_latency
|
49
49
|
end
|
50
50
|
|
51
51
|
should "allow db override" do
|
52
52
|
db = DB.new('foo', @client, :read => :primary, :tag_sets => @bad_tags, :acceptable_latency => 25)
|
53
|
-
assert_equal :primary, db.
|
53
|
+
assert_equal :primary, db.read
|
54
54
|
assert_equal @bad_tags, db.tag_sets
|
55
55
|
assert_equal 25, db.acceptable_latency
|
56
56
|
|
57
57
|
db = @client.db('foo', :read => :primary, :tag_sets => @bad_tags, :acceptable_latency => 25)
|
58
|
-
assert_equal :primary, db.
|
58
|
+
assert_equal :primary, db.read
|
59
59
|
assert_equal @bad_tags, db.tag_sets
|
60
60
|
assert_equal 25, db.acceptable_latency
|
61
61
|
end
|
@@ -67,29 +67,29 @@ class ReadTest < Test::Unit::TestCase
|
|
67
67
|
|
68
68
|
should "propogate to collection" do
|
69
69
|
col = @db.collection('bar')
|
70
|
-
assert_equal @
|
70
|
+
assert_equal @read, col.read
|
71
71
|
assert_equal @tags, col.tag_sets
|
72
72
|
assert_equal @acceptable_latency, col.acceptable_latency
|
73
73
|
|
74
74
|
col = @db['bar']
|
75
|
-
assert_equal @
|
75
|
+
assert_equal @read, col.read
|
76
76
|
assert_equal @tags, col.tag_sets
|
77
77
|
assert_equal @acceptable_latency, col.acceptable_latency
|
78
78
|
|
79
79
|
col = Collection.new('bar', @db)
|
80
|
-
assert_equal @
|
80
|
+
assert_equal @read, col.read
|
81
81
|
assert_equal @tags, col.tag_sets
|
82
82
|
assert_equal @acceptable_latency, col.acceptable_latency
|
83
83
|
end
|
84
84
|
|
85
85
|
should "allow override on collection" do
|
86
86
|
col = @db.collection('bar', :read => :primary, :tag_sets => @bad_tags, :acceptable_latency => 25)
|
87
|
-
assert_equal :primary, col.
|
87
|
+
assert_equal :primary, col.read
|
88
88
|
assert_equal @bad_tags, col.tag_sets
|
89
89
|
assert_equal 25, col.acceptable_latency
|
90
90
|
|
91
91
|
col = Collection.new('bar', @db, :read => :primary, :tag_sets => @bad_tags, :acceptable_latency => 25)
|
92
|
-
assert_equal :primary, col.
|
92
|
+
assert_equal :primary, col.read
|
93
93
|
assert_equal @bad_tags, col.tag_sets
|
94
94
|
assert_equal 25, col.acceptable_latency
|
95
95
|
end
|
data/test/unit/safe_test.rb
CHANGED
@@ -4,7 +4,7 @@ class SafeTest < Test::Unit::TestCase
|
|
4
4
|
|
5
5
|
context "Write-Concern modes on Mongo::Connection " do
|
6
6
|
setup do
|
7
|
-
@safe_value = {:w => 7, :j => false, :fsync => false, :wtimeout =>
|
7
|
+
@safe_value = {:w => 7, :j => false, :fsync => false, :wtimeout => nil}
|
8
8
|
@connection = Mongo::Connection.new('localhost', 27017, :safe => @safe_value, :connect => false)
|
9
9
|
end
|
10
10
|
|
@@ -68,7 +68,7 @@ class SafeTest < Test::Unit::TestCase
|
|
68
68
|
|
69
69
|
should "allow override alternate value on insert" do
|
70
70
|
@connection.expects(:send_message_with_gle).with do |op, msg, log, n, safe|
|
71
|
-
safe == {:w => 100, :j => false, :fsync => false, :wtimeout =>
|
71
|
+
safe == {:w => 100, :j => false, :fsync => false, :wtimeout => nil}
|
72
72
|
end
|
73
73
|
|
74
74
|
@col.insert({:a => 1}, :safe => {:w => 100})
|
@@ -89,7 +89,7 @@ class SafeTest < Test::Unit::TestCase
|
|
89
89
|
|
90
90
|
should "allow override alternate value on update" do
|
91
91
|
@connection.expects(:send_message_with_gle).with do |op, msg, log, n, safe|
|
92
|
-
safe == {:w => 100, :j => false, :fsync => false, :wtimeout =>
|
92
|
+
safe == {:w => 100, :j => false, :fsync => false, :wtimeout => nil}
|
93
93
|
end
|
94
94
|
|
95
95
|
@col.update({:a => 1}, {:a => 2}, :safe => {:w => 100})
|
@@ -129,7 +129,7 @@ class SafeTest < Test::Unit::TestCase
|
|
129
129
|
|
130
130
|
should "allow override alternate value on remove" do
|
131
131
|
@connection.expects(:send_message_with_gle).with do |op, msg, log, n, safe|
|
132
|
-
safe == {:w => 100, :j => false, :fsync => false, :wtimeout =>
|
132
|
+
safe == {:w => 100, :j => false, :fsync => false, :wtimeout => nil}
|
133
133
|
end
|
134
134
|
|
135
135
|
@col.remove({}, :safe => {:w => 100})
|
@@ -8,7 +8,7 @@ class WriteConcernTest < Test::Unit::TestCase
|
|
8
8
|
:w => 7,
|
9
9
|
:j => false,
|
10
10
|
:fsync => false,
|
11
|
-
:wtimeout =>
|
11
|
+
:wtimeout => nil
|
12
12
|
}
|
13
13
|
|
14
14
|
class Mongo::MongoClient
|
@@ -85,7 +85,7 @@ class WriteConcernTest < Test::Unit::TestCase
|
|
85
85
|
|
86
86
|
should "allow override alternate value on insert" do
|
87
87
|
@client.expects(:send_message_with_gle).with do |op, msg, log, n, wc|
|
88
|
-
wc == {:w => 100, :j => false, :fsync => false, :wtimeout =>
|
88
|
+
wc == {:w => 100, :j => false, :fsync => false, :wtimeout => nil}
|
89
89
|
end
|
90
90
|
|
91
91
|
@collection.insert({:a => 1}, {:w => 100})
|
@@ -106,7 +106,7 @@ class WriteConcernTest < Test::Unit::TestCase
|
|
106
106
|
|
107
107
|
should "allow override alternate value on update" do
|
108
108
|
@client.expects(:send_message_with_gle).with do |op, msg, log, n, wc|
|
109
|
-
wc == {:w => 100, :j => false, :fsync => false, :wtimeout =>
|
109
|
+
wc == {:w => 100, :j => false, :fsync => false, :wtimeout => nil}
|
110
110
|
end
|
111
111
|
|
112
112
|
@collection.update({:a => 1}, {:a => 2}, {:w => 100})
|
@@ -146,7 +146,7 @@ class WriteConcernTest < Test::Unit::TestCase
|
|
146
146
|
|
147
147
|
should "allow override alternate value on remove" do
|
148
148
|
@client.expects(:send_message_with_gle).with do |op, msg, log, n, wc|
|
149
|
-
wc == {:w => 100, :j => false, :fsync => false, :wtimeout =>
|
149
|
+
wc == {:w => 100, :j => false, :fsync => false, :wtimeout => nil}
|
150
150
|
end
|
151
151
|
|
152
152
|
@collection.remove({}, {:w => 100})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2013-01-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bson
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 1.8.
|
24
|
+
version: 1.8.2
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.8.
|
32
|
+
version: 1.8.2
|
33
33
|
description: A Ruby driver for MongoDB. For more information about Mongo, see http://www.mongodb.org.
|
34
34
|
email: mongodb-dev@googlegroups.com
|
35
35
|
executables:
|
@@ -44,110 +44,99 @@ files:
|
|
44
44
|
- Rakefile
|
45
45
|
- bin/mongo_console
|
46
46
|
- lib/mongo.rb
|
47
|
-
- lib/mongo/gridfs/grid_io.rb
|
48
|
-
- lib/mongo/gridfs/grid_ext.rb
|
49
|
-
- lib/mongo/gridfs/grid_file_system.rb
|
50
|
-
- lib/mongo/gridfs/grid.rb
|
51
|
-
- lib/mongo/mongo_sharded_client.rb
|
52
47
|
- lib/mongo/collection.rb
|
53
|
-
- lib/mongo/
|
48
|
+
- lib/mongo/cursor.rb
|
54
49
|
- lib/mongo/db.rb
|
50
|
+
- lib/mongo/exceptions.rb
|
51
|
+
- lib/mongo/gridfs/grid.rb
|
52
|
+
- lib/mongo/gridfs/grid_ext.rb
|
53
|
+
- lib/mongo/gridfs/grid_file_system.rb
|
54
|
+
- lib/mongo/gridfs/grid_io.rb
|
55
55
|
- lib/mongo/legacy.rb
|
56
|
+
- lib/mongo/mongo_client.rb
|
56
57
|
- lib/mongo/mongo_replica_set_client.rb
|
58
|
+
- lib/mongo/mongo_sharded_client.rb
|
57
59
|
- lib/mongo/networking.rb
|
58
|
-
- lib/mongo/util/uri_parser.rb
|
59
|
-
- lib/mongo/util/write_concern.rb
|
60
|
-
- lib/mongo/util/ssl_socket.rb
|
61
60
|
- lib/mongo/util/conversions.rb
|
62
|
-
- lib/mongo/util/
|
61
|
+
- lib/mongo/util/core_ext.rb
|
62
|
+
- lib/mongo/util/logging.rb
|
63
63
|
- lib/mongo/util/node.rb
|
64
|
+
- lib/mongo/util/pool.rb
|
64
65
|
- lib/mongo/util/pool_manager.rb
|
66
|
+
- lib/mongo/util/read_preference.rb
|
67
|
+
- lib/mongo/util/server_version.rb
|
65
68
|
- lib/mongo/util/sharding_pool_manager.rb
|
66
|
-
- lib/mongo/util/
|
67
|
-
- lib/mongo/util/logging.rb
|
68
|
-
- lib/mongo/util/core_ext.rb
|
69
|
-
- lib/mongo/util/tcp_socket.rb
|
69
|
+
- lib/mongo/util/ssl_socket.rb
|
70
70
|
- lib/mongo/util/support.rb
|
71
|
-
- lib/mongo/
|
72
|
-
- lib/mongo/
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
- test/
|
87
|
-
- test/
|
88
|
-
- test/
|
89
|
-
- test/
|
71
|
+
- lib/mongo/util/tcp_socket.rb
|
72
|
+
- lib/mongo/util/thread_local_variable_manager.rb
|
73
|
+
- lib/mongo/util/unix_socket.rb
|
74
|
+
- lib/mongo/util/uri_parser.rb
|
75
|
+
- lib/mongo/util/write_concern.rb
|
76
|
+
- test/auxillary/1.4_feature_test.rb
|
77
|
+
- test/auxillary/authentication_test.rb
|
78
|
+
- test/auxillary/autoreconnect_test.rb
|
79
|
+
- test/auxillary/fork_test.rb
|
80
|
+
- test/auxillary/repl_set_auth_test.rb
|
81
|
+
- test/auxillary/slave_connection_test.rb
|
82
|
+
- test/auxillary/threaded_authentication_test.rb
|
83
|
+
- test/bson/binary_test.rb
|
84
|
+
- test/bson/bson_test.rb
|
85
|
+
- test/bson/byte_buffer_test.rb
|
86
|
+
- test/bson/hash_with_indifferent_access_test.rb
|
87
|
+
- test/bson/json_test.rb
|
88
|
+
- test/bson/object_id_test.rb
|
89
|
+
- test/bson/ordered_hash_test.rb
|
90
|
+
- test/bson/timestamp_test.rb
|
91
|
+
- test/functional/collection_test.rb
|
92
|
+
- test/functional/connection_test.rb
|
93
|
+
- test/functional/conversions_test.rb
|
94
|
+
- test/functional/cursor_fail_test.rb
|
95
|
+
- test/functional/cursor_message_test.rb
|
96
|
+
- test/functional/cursor_test.rb
|
97
|
+
- test/functional/db_api_test.rb
|
98
|
+
- test/functional/db_connection_test.rb
|
99
|
+
- test/functional/db_test.rb
|
100
|
+
- test/functional/grid_file_system_test.rb
|
101
|
+
- test/functional/grid_io_test.rb
|
102
|
+
- test/functional/grid_test.rb
|
103
|
+
- test/functional/pool_test.rb
|
104
|
+
- test/functional/safe_test.rb
|
105
|
+
- test/functional/support_test.rb
|
106
|
+
- test/functional/threading_test.rb
|
107
|
+
- test/functional/timeout_test.rb
|
108
|
+
- test/functional/uri_test.rb
|
109
|
+
- test/functional/write_concern_test.rb
|
90
110
|
- test/replica_set/basic_test.rb
|
91
|
-
- test/replica_set/
|
92
|
-
- test/replica_set/replication_ack_test.rb
|
111
|
+
- test/replica_set/client_test.rb
|
93
112
|
- test/replica_set/complex_connect_test.rb
|
113
|
+
- test/replica_set/connection_test.rb
|
94
114
|
- test/replica_set/count_test.rb
|
95
115
|
- test/replica_set/cursor_test.rb
|
96
|
-
- test/replica_set/
|
97
|
-
- test/
|
98
|
-
- test/
|
99
|
-
- test/
|
100
|
-
- test/
|
101
|
-
- test/bson/timestamp_test.rb
|
102
|
-
- test/bson/byte_buffer_test.rb
|
103
|
-
- test/bson/object_id_test.rb
|
104
|
-
- test/bson/json_test.rb
|
116
|
+
- test/replica_set/insert_test.rb
|
117
|
+
- test/replica_set/query_test.rb
|
118
|
+
- test/replica_set/read_preference_test.rb
|
119
|
+
- test/replica_set/refresh_test.rb
|
120
|
+
- test/replica_set/replication_ack_test.rb
|
105
121
|
- test/sharded_cluster/basic_test.rb
|
106
|
-
- test/
|
107
|
-
- test/
|
122
|
+
- test/test_helper.rb
|
123
|
+
- test/threading/basic_test.rb
|
108
124
|
- test/tools/auth_repl_set_manager.rb
|
109
|
-
- test/
|
110
|
-
- test/
|
125
|
+
- test/tools/mongo_config.rb
|
126
|
+
- test/tools/mongo_config_test.rb
|
111
127
|
- test/unit/client_test.rb
|
112
|
-
- test/unit/util_test.rb
|
113
|
-
- test/unit/pool_manager_test.rb
|
114
|
-
- test/unit/safe_test.rb
|
115
128
|
- test/unit/collection_test.rb
|
116
|
-
- test/unit/
|
117
|
-
- test/unit/grid_test.rb
|
118
|
-
- test/unit/write_concern_test.rb
|
129
|
+
- test/unit/connection_test.rb
|
119
130
|
- test/unit/cursor_test.rb
|
131
|
+
- test/unit/db_test.rb
|
132
|
+
- test/unit/grid_test.rb
|
133
|
+
- test/unit/node_test.rb
|
134
|
+
- test/unit/pool_manager_test.rb
|
135
|
+
- test/unit/pool_test.rb
|
120
136
|
- test/unit/read_test.rb
|
121
|
-
- test/unit/
|
122
|
-
- test/
|
123
|
-
- test/
|
124
|
-
- test/auxillary/authentication_test.rb
|
125
|
-
- test/auxillary/fork_test.rb
|
126
|
-
- test/auxillary/autoreconnect_test.rb
|
127
|
-
- test/auxillary/repl_set_auth_test.rb
|
128
|
-
- test/auxillary/1.4_feature_test.rb
|
129
|
-
- test/auxillary/threaded_authentication_test.rb
|
130
|
-
- test/auxillary/slave_connection_test.rb
|
131
|
-
- test/threading/threading_with_large_pool_test.rb
|
132
|
-
- test/functional/db_test.rb
|
133
|
-
- test/functional/db_connection_test.rb
|
134
|
-
- test/functional/cursor_fail_test.rb
|
135
|
-
- test/functional/uri_test.rb
|
136
|
-
- test/functional/safe_test.rb
|
137
|
-
- test/functional/collection_test.rb
|
138
|
-
- test/functional/support_test.rb
|
139
|
-
- test/functional/grid_io_test.rb
|
140
|
-
- test/functional/db_api_test.rb
|
141
|
-
- test/functional/pool_test.rb
|
142
|
-
- test/functional/grid_test.rb
|
143
|
-
- test/functional/threading_test.rb
|
144
|
-
- test/functional/write_concern_test.rb
|
145
|
-
- test/functional/cursor_message_test.rb
|
146
|
-
- test/functional/cursor_test.rb
|
147
|
-
- test/functional/timeout_test.rb
|
148
|
-
- test/functional/grid_file_system_test.rb
|
149
|
-
- test/functional/conversions_test.rb
|
150
|
-
- test/functional/connection_test.rb
|
137
|
+
- test/unit/safe_test.rb
|
138
|
+
- test/unit/util_test.rb
|
139
|
+
- test/unit/write_concern_test.rb
|
151
140
|
homepage: http://www.mongodb.org
|
152
141
|
licenses: []
|
153
142
|
post_install_message:
|
@@ -160,6 +149,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
149
|
- - ! '>='
|
161
150
|
- !ruby/object:Gem::Version
|
162
151
|
version: '0'
|
152
|
+
segments:
|
153
|
+
- 0
|
154
|
+
hash: -3385538101120309414
|
163
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
156
|
none: false
|
165
157
|
requirements:
|
@@ -173,69 +165,68 @@ signing_key:
|
|
173
165
|
specification_version: 3
|
174
166
|
summary: Ruby driver for MongoDB
|
175
167
|
test_files:
|
176
|
-
- test/
|
177
|
-
- test/
|
178
|
-
- test/
|
179
|
-
- test/
|
168
|
+
- test/auxillary/1.4_feature_test.rb
|
169
|
+
- test/auxillary/authentication_test.rb
|
170
|
+
- test/auxillary/autoreconnect_test.rb
|
171
|
+
- test/auxillary/fork_test.rb
|
172
|
+
- test/auxillary/repl_set_auth_test.rb
|
173
|
+
- test/auxillary/slave_connection_test.rb
|
174
|
+
- test/auxillary/threaded_authentication_test.rb
|
175
|
+
- test/bson/binary_test.rb
|
176
|
+
- test/bson/bson_test.rb
|
177
|
+
- test/bson/byte_buffer_test.rb
|
178
|
+
- test/bson/hash_with_indifferent_access_test.rb
|
179
|
+
- test/bson/json_test.rb
|
180
|
+
- test/bson/object_id_test.rb
|
181
|
+
- test/bson/ordered_hash_test.rb
|
182
|
+
- test/bson/timestamp_test.rb
|
183
|
+
- test/functional/collection_test.rb
|
184
|
+
- test/functional/connection_test.rb
|
185
|
+
- test/functional/conversions_test.rb
|
186
|
+
- test/functional/cursor_fail_test.rb
|
187
|
+
- test/functional/cursor_message_test.rb
|
188
|
+
- test/functional/cursor_test.rb
|
189
|
+
- test/functional/db_api_test.rb
|
190
|
+
- test/functional/db_connection_test.rb
|
191
|
+
- test/functional/db_test.rb
|
192
|
+
- test/functional/grid_file_system_test.rb
|
193
|
+
- test/functional/grid_io_test.rb
|
194
|
+
- test/functional/grid_test.rb
|
195
|
+
- test/functional/pool_test.rb
|
196
|
+
- test/functional/safe_test.rb
|
197
|
+
- test/functional/support_test.rb
|
198
|
+
- test/functional/threading_test.rb
|
199
|
+
- test/functional/timeout_test.rb
|
200
|
+
- test/functional/uri_test.rb
|
201
|
+
- test/functional/write_concern_test.rb
|
180
202
|
- test/replica_set/basic_test.rb
|
181
|
-
- test/replica_set/
|
182
|
-
- test/replica_set/replication_ack_test.rb
|
203
|
+
- test/replica_set/client_test.rb
|
183
204
|
- test/replica_set/complex_connect_test.rb
|
205
|
+
- test/replica_set/connection_test.rb
|
184
206
|
- test/replica_set/count_test.rb
|
185
207
|
- test/replica_set/cursor_test.rb
|
186
|
-
- test/replica_set/
|
187
|
-
- test/
|
188
|
-
- test/
|
189
|
-
- test/
|
190
|
-
- test/
|
191
|
-
- test/bson/timestamp_test.rb
|
192
|
-
- test/bson/byte_buffer_test.rb
|
193
|
-
- test/bson/object_id_test.rb
|
194
|
-
- test/bson/json_test.rb
|
208
|
+
- test/replica_set/insert_test.rb
|
209
|
+
- test/replica_set/query_test.rb
|
210
|
+
- test/replica_set/read_preference_test.rb
|
211
|
+
- test/replica_set/refresh_test.rb
|
212
|
+
- test/replica_set/replication_ack_test.rb
|
195
213
|
- test/sharded_cluster/basic_test.rb
|
196
|
-
- test/
|
197
|
-
- test/
|
214
|
+
- test/test_helper.rb
|
215
|
+
- test/threading/basic_test.rb
|
198
216
|
- test/tools/auth_repl_set_manager.rb
|
199
|
-
- test/
|
200
|
-
- test/
|
217
|
+
- test/tools/mongo_config.rb
|
218
|
+
- test/tools/mongo_config_test.rb
|
201
219
|
- test/unit/client_test.rb
|
202
|
-
- test/unit/util_test.rb
|
203
|
-
- test/unit/pool_manager_test.rb
|
204
|
-
- test/unit/safe_test.rb
|
205
220
|
- test/unit/collection_test.rb
|
206
|
-
- test/unit/
|
207
|
-
- test/unit/grid_test.rb
|
208
|
-
- test/unit/write_concern_test.rb
|
221
|
+
- test/unit/connection_test.rb
|
209
222
|
- test/unit/cursor_test.rb
|
223
|
+
- test/unit/db_test.rb
|
224
|
+
- test/unit/grid_test.rb
|
225
|
+
- test/unit/node_test.rb
|
226
|
+
- test/unit/pool_manager_test.rb
|
227
|
+
- test/unit/pool_test.rb
|
210
228
|
- test/unit/read_test.rb
|
211
|
-
- test/unit/
|
212
|
-
- test/
|
213
|
-
- test/
|
214
|
-
- test/auxillary/authentication_test.rb
|
215
|
-
- test/auxillary/fork_test.rb
|
216
|
-
- test/auxillary/autoreconnect_test.rb
|
217
|
-
- test/auxillary/repl_set_auth_test.rb
|
218
|
-
- test/auxillary/1.4_feature_test.rb
|
219
|
-
- test/auxillary/threaded_authentication_test.rb
|
220
|
-
- test/auxillary/slave_connection_test.rb
|
221
|
-
- test/threading/threading_with_large_pool_test.rb
|
222
|
-
- test/functional/db_test.rb
|
223
|
-
- test/functional/db_connection_test.rb
|
224
|
-
- test/functional/cursor_fail_test.rb
|
225
|
-
- test/functional/uri_test.rb
|
226
|
-
- test/functional/safe_test.rb
|
227
|
-
- test/functional/collection_test.rb
|
228
|
-
- test/functional/support_test.rb
|
229
|
-
- test/functional/grid_io_test.rb
|
230
|
-
- test/functional/db_api_test.rb
|
231
|
-
- test/functional/pool_test.rb
|
232
|
-
- test/functional/grid_test.rb
|
233
|
-
- test/functional/threading_test.rb
|
234
|
-
- test/functional/write_concern_test.rb
|
235
|
-
- test/functional/cursor_message_test.rb
|
236
|
-
- test/functional/cursor_test.rb
|
237
|
-
- test/functional/timeout_test.rb
|
238
|
-
- test/functional/grid_file_system_test.rb
|
239
|
-
- test/functional/conversions_test.rb
|
240
|
-
- test/functional/connection_test.rb
|
229
|
+
- test/unit/safe_test.rb
|
230
|
+
- test/unit/util_test.rb
|
231
|
+
- test/unit/write_concern_test.rb
|
241
232
|
has_rdoc: yard
|