mongo 1.6.4 → 1.7.0.rc0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +13 -13
- data/Rakefile +7 -10
- data/docs/{GridFS.md → GRID_FS.md} +0 -0
- data/docs/HISTORY.md +16 -0
- data/docs/READ_PREFERENCE.md +70 -10
- data/docs/TUTORIAL.md +2 -2
- data/lib/mongo.rb +2 -0
- data/lib/mongo/collection.rb +62 -11
- data/lib/mongo/connection.rb +31 -41
- data/lib/mongo/cursor.rb +42 -86
- data/lib/mongo/db.rb +10 -8
- data/lib/mongo/networking.rb +30 -65
- data/lib/mongo/repl_set_connection.rb +91 -170
- data/lib/mongo/sharded_connection.rb +221 -0
- data/lib/mongo/util/node.rb +29 -36
- data/lib/mongo/util/pool.rb +10 -3
- data/lib/mongo/util/pool_manager.rb +77 -90
- data/lib/mongo/util/sharding_pool_manager.rb +143 -0
- data/lib/mongo/util/support.rb +22 -2
- data/lib/mongo/util/tcp_socket.rb +10 -15
- data/lib/mongo/util/uri_parser.rb +17 -10
- data/lib/mongo/version.rb +1 -1
- data/test/collection_test.rb +133 -1
- data/test/connection_test.rb +50 -4
- data/test/db_api_test.rb +3 -3
- data/test/db_test.rb +6 -1
- data/test/replica_sets/basic_test.rb +3 -6
- data/test/replica_sets/complex_connect_test.rb +14 -2
- data/test/replica_sets/complex_read_preference_test.rb +237 -0
- data/test/replica_sets/connect_test.rb +47 -67
- data/test/replica_sets/count_test.rb +1 -1
- data/test/replica_sets/cursor_test.rb +70 -0
- data/test/replica_sets/read_preference_test.rb +171 -118
- data/test/replica_sets/refresh_test.rb +3 -3
- data/test/replica_sets/refresh_with_threads_test.rb +2 -2
- data/test/replica_sets/rs_test_helper.rb +2 -2
- data/test/sharded_cluster/basic_test.rb +112 -0
- data/test/sharded_cluster/mongo_config_test.rb +126 -0
- data/test/sharded_cluster/sc_test_helper.rb +39 -0
- data/test/test_helper.rb +3 -3
- data/test/threading/threading_with_large_pool_test.rb +1 -1
- data/test/tools/mongo_config.rb +307 -0
- data/test/tools/repl_set_manager.rb +12 -12
- data/test/unit/collection_test.rb +1 -1
- data/test/unit/cursor_test.rb +11 -6
- data/test/unit/db_test.rb +4 -0
- data/test/unit/grid_test.rb +2 -0
- data/test/unit/read_test.rb +39 -8
- data/test/uri_test.rb +4 -8
- metadata +144 -127
@@ -42,7 +42,7 @@ class ReplSetManager
|
|
42
42
|
@mongods = {}
|
43
43
|
version_string = `#{@mongod} --version`
|
44
44
|
version_string =~ /(\d\.\d\.\d)/
|
45
|
-
@version = $1
|
45
|
+
@version = $1
|
46
46
|
end
|
47
47
|
|
48
48
|
def start_set
|
@@ -54,7 +54,7 @@ class ReplSetManager
|
|
54
54
|
n = 0
|
55
55
|
(@primary_count + @secondary_count).times do
|
56
56
|
init_node(n, should_start) do |attrs|
|
57
|
-
if @version
|
57
|
+
if @version >= "2"
|
58
58
|
attrs['tags'] = @tags[n % @tags.size]
|
59
59
|
end
|
60
60
|
end
|
@@ -114,7 +114,7 @@ class ReplSetManager
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def journal_switch
|
117
|
-
if @version
|
117
|
+
if @version >= "2"
|
118
118
|
if @durable
|
119
119
|
"--journal"
|
120
120
|
else
|
@@ -138,13 +138,13 @@ class ReplSetManager
|
|
138
138
|
def remove_secondary_node
|
139
139
|
primary = get_node_with_state(1)
|
140
140
|
con = get_connection(primary)
|
141
|
-
config = con['local']['system.replset'].find_one
|
141
|
+
@config = con['local']['system.replset'].find_one
|
142
142
|
secondary = get_node_with_state(2)
|
143
143
|
host_port = "#{@host}:#{@mongods[secondary]['port']}"
|
144
144
|
kill(secondary)
|
145
145
|
@mongods.delete(secondary)
|
146
146
|
@config['members'].reject! {|m| m['host'] == host_port}
|
147
|
-
@config['version']
|
147
|
+
@config['version'] += 1
|
148
148
|
|
149
149
|
begin
|
150
150
|
con['admin'].command({'replSetReconfig' => @config})
|
@@ -161,9 +161,9 @@ class ReplSetManager
|
|
161
161
|
primary = get_node_with_state(1)
|
162
162
|
con = get_connection(primary)
|
163
163
|
|
164
|
+
@config = con['local']['system.replset'].find_one
|
164
165
|
init_node(n || @mongods.length, &block)
|
165
|
-
config
|
166
|
-
@config['version'] = config['version'] + 1
|
166
|
+
@config['version'] += 1
|
167
167
|
|
168
168
|
# We expect a connection failure on reconfigure here.
|
169
169
|
begin
|
@@ -175,8 +175,8 @@ class ReplSetManager
|
|
175
175
|
ensure_up
|
176
176
|
end
|
177
177
|
|
178
|
-
def add_arbiter
|
179
|
-
add_node do |attrs|
|
178
|
+
def add_arbiter(n=nil)
|
179
|
+
add_node(n) do |attrs|
|
180
180
|
attrs['arbiterOnly'] = true
|
181
181
|
end
|
182
182
|
end
|
@@ -184,14 +184,14 @@ class ReplSetManager
|
|
184
184
|
def wait_for_death(pid)
|
185
185
|
@retries.times do
|
186
186
|
if `ps a | grep mongod`.include?("#{pid}")
|
187
|
-
puts "waiting for mongod @ pid #{pid} to die..."
|
187
|
+
#puts "waiting for mongod @ pid #{pid} to die..."
|
188
188
|
sleep(1)
|
189
189
|
else
|
190
190
|
#puts "mongod @ pid #{pid} was killed successfully"
|
191
191
|
return true
|
192
192
|
end
|
193
193
|
end
|
194
|
-
puts "mongod never died"
|
194
|
+
#puts "mongod never died"
|
195
195
|
return false
|
196
196
|
end
|
197
197
|
|
@@ -334,7 +334,7 @@ class ReplSetManager
|
|
334
334
|
str
|
335
335
|
end
|
336
336
|
|
337
|
-
private
|
337
|
+
#private
|
338
338
|
|
339
339
|
def initiate
|
340
340
|
#puts "Initiating replica set..."
|
@@ -37,7 +37,7 @@ class CollectionTest < Test::Unit::TestCase
|
|
37
37
|
@conn = Connection.new('localhost', 27017, :logger => @logger, :connect => false)
|
38
38
|
@db = @conn['testing']
|
39
39
|
@coll = @db.collection('books')
|
40
|
-
@conn.expects(:
|
40
|
+
@conn.expects(:checkout_reader).returns(mock(:pool))
|
41
41
|
@conn.expects(:receive_message).with do |op, msg, log, sock|
|
42
42
|
op == 2004
|
43
43
|
end.returns([[], 0, 0])
|
data/test/unit/cursor_test.rb
CHANGED
@@ -6,10 +6,13 @@ class CursorTest < Test::Unit::TestCase
|
|
6
6
|
@logger = mock()
|
7
7
|
@logger.stubs(:debug)
|
8
8
|
@connection = stub(:class => Connection, :logger => @logger,
|
9
|
-
:slave_ok? => false, :read_preference => :primary, :log_duration => false
|
9
|
+
:slave_ok? => false, :read_preference => :primary, :log_duration => false,
|
10
|
+
:tag_sets => {}, :acceptable_latency => 10)
|
10
11
|
@db = stub(:name => "testing", :slave_ok? => false,
|
11
|
-
:connection => @connection, :read_preference => :primary
|
12
|
-
|
12
|
+
:connection => @connection, :read_preference => :primary,
|
13
|
+
:tag_sets => {}, :acceptable_latency => 10)
|
14
|
+
@collection = stub(:db => @db, :name => "items", :read_preference => :primary,
|
15
|
+
:tag_sets => {}, :acceptable_latency => 10)
|
13
16
|
@cursor = Cursor.new(@collection)
|
14
17
|
end
|
15
18
|
|
@@ -103,9 +106,11 @@ class CursorTest < Test::Unit::TestCase
|
|
103
106
|
@logger = mock()
|
104
107
|
@logger.stubs(:debug)
|
105
108
|
@connection = stub(:class => Connection, :logger => @logger, :slave_ok? => false,
|
106
|
-
:log_duration => false)
|
107
|
-
@db = stub(:slave_ok? => true, :name => "testing", :connection => @connection
|
108
|
-
|
109
|
+
:log_duration => false, :tag_sets =>{}, :acceptable_latency => 10)
|
110
|
+
@db = stub(:slave_ok? => true, :name => "testing", :connection => @connection,
|
111
|
+
:tag_sets => {}, :acceptable_latency => 10)
|
112
|
+
@collection = stub(:db => @db, :name => "items", :read_preference => :primary,
|
113
|
+
:tag_sets => {}, :acceptable_latency => 10)
|
109
114
|
end
|
110
115
|
|
111
116
|
should "when an array should return a hash with each key" do
|
data/test/unit/db_test.rb
CHANGED
@@ -16,9 +16,13 @@ class DBTest < Test::Unit::TestCase
|
|
16
16
|
@conn = stub()
|
17
17
|
@conn.stubs(:safe)
|
18
18
|
@conn.stubs(:read_preference)
|
19
|
+
@conn.stubs(:tag_sets)
|
20
|
+
@conn.stubs(:acceptable_latency)
|
19
21
|
@db = DB.new("testing", @conn)
|
20
22
|
@db.stubs(:safe)
|
21
23
|
@db.stubs(:read_preference)
|
24
|
+
@db.stubs(:tag_sets)
|
25
|
+
@db.stubs(:acceptable_latency)
|
22
26
|
@collection = mock()
|
23
27
|
@db.stubs(:system_command_collection).returns(@collection)
|
24
28
|
end
|
data/test/unit/grid_test.rb
CHANGED
data/test/unit/read_test.rb
CHANGED
@@ -10,33 +10,54 @@ class ReadTest < Test::Unit::TestCase
|
|
10
10
|
|
11
11
|
end
|
12
12
|
|
13
|
-
context "Read
|
13
|
+
context "Read preferences on replica set connection: " do
|
14
14
|
setup do
|
15
|
-
@read_preference = :
|
16
|
-
@
|
15
|
+
@read_preference = :secondary_preferred
|
16
|
+
@acceptable_latency = 100
|
17
|
+
@tags = {"dc" => "Tyler", "rack" => "Brock"}
|
18
|
+
@bad_tags = {"wow" => "cool"}
|
19
|
+
@con = Mongo::ReplSetConnection.new(
|
20
|
+
['localhost:27017'],
|
21
|
+
:read => @read_preference,
|
22
|
+
:tag_sets => @tags,
|
23
|
+
:secondary_acceptable_latency_ms => @acceptable_latency,
|
24
|
+
:connect => false
|
25
|
+
)
|
17
26
|
end
|
18
27
|
|
19
28
|
should "store read preference on Connection" do
|
20
29
|
assert_equal @read_preference, @con.read_preference
|
30
|
+
assert_equal @tags, @con.tag_sets
|
31
|
+
assert_equal @acceptable_latency, @con.acceptable_latency
|
21
32
|
end
|
22
33
|
|
23
34
|
should "propogate to DB" do
|
24
35
|
db = @con['foo']
|
25
36
|
assert_equal @read_preference, db.read_preference
|
37
|
+
assert_equal @tags, db.tag_sets
|
38
|
+
assert_equal @acceptable_latency, db.acceptable_latency
|
26
39
|
|
27
40
|
db = @con.db('foo')
|
28
41
|
assert_equal @read_preference, db.read_preference
|
42
|
+
assert_equal @tags, db.tag_sets
|
43
|
+
assert_equal @acceptable_latency, db.acceptable_latency
|
29
44
|
|
30
45
|
db = DB.new('foo', @con)
|
31
46
|
assert_equal @read_preference, db.read_preference
|
47
|
+
assert_equal @tags, db.tag_sets
|
48
|
+
assert_equal @acceptable_latency, db.acceptable_latency
|
32
49
|
end
|
33
50
|
|
34
51
|
should "allow db override" do
|
35
|
-
db = DB.new('foo', @con, :read => :primary)
|
52
|
+
db = DB.new('foo', @con, :read => :primary, :tag_sets => @bad_tags, :acceptable_latency => 25)
|
36
53
|
assert_equal :primary, db.read_preference
|
54
|
+
assert_equal @bad_tags, db.tag_sets
|
55
|
+
assert_equal 25, db.acceptable_latency
|
37
56
|
|
38
|
-
db = @con.db('foo', :read => :primary)
|
57
|
+
db = @con.db('foo', :read => :primary, :tag_sets => @bad_tags, :acceptable_latency => 25)
|
39
58
|
assert_equal :primary, db.read_preference
|
59
|
+
assert_equal @bad_tags, db.tag_sets
|
60
|
+
assert_equal 25, db.acceptable_latency
|
40
61
|
end
|
41
62
|
|
42
63
|
context "on DB: " do
|
@@ -47,20 +68,30 @@ class ReadTest < Test::Unit::TestCase
|
|
47
68
|
should "propogate to collection" do
|
48
69
|
col = @db.collection('bar')
|
49
70
|
assert_equal @read_preference, col.read_preference
|
71
|
+
assert_equal @tags, col.tag_sets
|
72
|
+
assert_equal @acceptable_latency, col.acceptable_latency
|
50
73
|
|
51
74
|
col = @db['bar']
|
52
75
|
assert_equal @read_preference, col.read_preference
|
76
|
+
assert_equal @tags, col.tag_sets
|
77
|
+
assert_equal @acceptable_latency, col.acceptable_latency
|
53
78
|
|
54
79
|
col = Collection.new('bar', @db)
|
55
80
|
assert_equal @read_preference, col.read_preference
|
81
|
+
assert_equal @tags, col.tag_sets
|
82
|
+
assert_equal @acceptable_latency, col.acceptable_latency
|
56
83
|
end
|
57
84
|
|
58
85
|
should "allow override on collection" do
|
59
|
-
col = @db.collection('bar', :read => :primary)
|
86
|
+
col = @db.collection('bar', :read => :primary, :tag_sets => @bad_tags, :acceptable_latency => 25)
|
60
87
|
assert_equal :primary, col.read_preference
|
88
|
+
assert_equal @bad_tags, col.tag_sets
|
89
|
+
assert_equal 25, col.acceptable_latency
|
61
90
|
|
62
|
-
col = Collection.new('bar', @db, :read => :primary)
|
91
|
+
col = Collection.new('bar', @db, :read => :primary, :tag_sets => @bad_tags, :acceptable_latency => 25)
|
63
92
|
assert_equal :primary, col.read_preference
|
93
|
+
assert_equal @bad_tags, col.tag_sets
|
94
|
+
assert_equal 25, col.acceptable_latency
|
64
95
|
end
|
65
96
|
end
|
66
97
|
|
@@ -92,7 +123,7 @@ class ReadTest < Test::Unit::TestCase
|
|
92
123
|
primary_pool = stub(:checkin => true)
|
93
124
|
sock.stubs(:pool).returns(primary_pool)
|
94
125
|
@con.stubs(:primary_pool).returns(primary_pool)
|
95
|
-
@con.expects(:
|
126
|
+
@con.expects(:checkout_reader).returns(sock)
|
96
127
|
@con.expects(:receive_message).with do |o, m, l, s, c, r|
|
97
128
|
r == nil
|
98
129
|
end.returns([[], 0, 0])
|
data/test/uri_test.rb
CHANGED
@@ -20,10 +20,8 @@ class URITest < Test::Unit::TestCase
|
|
20
20
|
def test_multiple_uris
|
21
21
|
parser = Mongo::URIParser.new('mongodb://a.example.com:27018,b.example.com')
|
22
22
|
assert_equal 2, parser.nodes.length
|
23
|
-
assert_equal 'a.example.com', parser.nodes[0]
|
24
|
-
assert_equal
|
25
|
-
assert_equal 'b.example.com', parser.nodes[1][0]
|
26
|
-
assert_equal 27017, parser.nodes[1][1]
|
23
|
+
assert_equal 'a.example.com:27018', parser.nodes[0]
|
24
|
+
assert_equal 'b.example.com:27017', parser.nodes[1]
|
27
25
|
end
|
28
26
|
|
29
27
|
def test_complex_passwords
|
@@ -50,10 +48,8 @@ class URITest < Test::Unit::TestCase
|
|
50
48
|
def test_multiple_uris_with_auths
|
51
49
|
parser = Mongo::URIParser.new('mongodb://bob:secret@a.example.com:27018,b.example.com/test')
|
52
50
|
assert_equal 2, parser.nodes.length
|
53
|
-
assert_equal 'a.example.com', parser.nodes[0]
|
54
|
-
assert_equal
|
55
|
-
assert_equal 'b.example.com', parser.nodes[1][0]
|
56
|
-
assert_equal 27017, parser.nodes[1][1]
|
51
|
+
assert_equal 'a.example.com:27018', parser.nodes[0]
|
52
|
+
assert_equal 'b.example.com:27017', parser.nodes[1]
|
57
53
|
assert_equal 2, parser.auths.length
|
58
54
|
assert_equal "bob", parser.auths[0]["username"]
|
59
55
|
assert_equal "secret", parser.auths[0]["password"]
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.7.0.rc0
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jim Menard
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2012-
|
15
|
+
date: 2012-08-20 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.
|
24
|
+
version: 1.7.0.rc0
|
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.
|
32
|
+
version: 1.7.0.rc0
|
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:
|
@@ -43,105 +43,113 @@ files:
|
|
43
43
|
- mongo.gemspec
|
44
44
|
- LICENSE.txt
|
45
45
|
- lib/mongo.rb
|
46
|
-
- lib/mongo/
|
47
|
-
- lib/mongo/
|
48
|
-
- lib/mongo/cursor.rb
|
49
|
-
- lib/mongo/db.rb
|
50
|
-
- lib/mongo/exceptions.rb
|
51
|
-
- lib/mongo/gridfs/grid.rb
|
46
|
+
- lib/mongo/version.rb
|
47
|
+
- lib/mongo/gridfs/grid_io.rb
|
52
48
|
- lib/mongo/gridfs/grid_ext.rb
|
53
49
|
- lib/mongo/gridfs/grid_file_system.rb
|
54
|
-
- lib/mongo/gridfs/grid_io.rb
|
55
50
|
- lib/mongo/gridfs/grid_io_fix.rb
|
51
|
+
- lib/mongo/gridfs/grid.rb
|
52
|
+
- lib/mongo/sharded_connection.rb
|
53
|
+
- lib/mongo/collection.rb
|
54
|
+
- lib/mongo/db.rb
|
56
55
|
- lib/mongo/networking.rb
|
57
56
|
- lib/mongo/repl_set_connection.rb
|
57
|
+
- lib/mongo/util/uri_parser.rb
|
58
|
+
- lib/mongo/util/ssl_socket.rb
|
58
59
|
- lib/mongo/util/conversions.rb
|
59
|
-
- lib/mongo/util/
|
60
|
-
- lib/mongo/util/logging.rb
|
60
|
+
- lib/mongo/util/server_version.rb
|
61
61
|
- lib/mongo/util/node.rb
|
62
|
-
- lib/mongo/util/pool.rb
|
63
62
|
- lib/mongo/util/pool_manager.rb
|
64
|
-
- lib/mongo/util/
|
65
|
-
- lib/mongo/util/
|
66
|
-
- lib/mongo/util/
|
63
|
+
- lib/mongo/util/sharding_pool_manager.rb
|
64
|
+
- lib/mongo/util/pool.rb
|
65
|
+
- lib/mongo/util/logging.rb
|
66
|
+
- lib/mongo/util/core_ext.rb
|
67
67
|
- lib/mongo/util/tcp_socket.rb
|
68
|
-
- lib/mongo/util/
|
69
|
-
- lib/mongo/
|
68
|
+
- lib/mongo/util/support.rb
|
69
|
+
- lib/mongo/exceptions.rb
|
70
|
+
- lib/mongo/connection.rb
|
71
|
+
- lib/mongo/cursor.rb
|
72
|
+
- docs/TAILABLE_CURSORS.md
|
73
|
+
- docs/READ_PREFERENCE.md
|
70
74
|
- docs/CREDITS.md
|
71
|
-
- docs/
|
72
|
-
- docs/GridFS.md
|
75
|
+
- docs/GRID_FS.md
|
73
76
|
- docs/HISTORY.md
|
74
|
-
- docs/READ_PREFERENCE.md
|
75
77
|
- docs/RELEASES.md
|
76
|
-
- docs/REPLICA_SETS.md
|
77
|
-
- docs/TAILABLE_CURSORS.md
|
78
78
|
- docs/TUTORIAL.md
|
79
|
+
- docs/REPLICA_SETS.md
|
79
80
|
- docs/WRITE_CONCERN.md
|
81
|
+
- docs/FAQ.md
|
80
82
|
- bin/mongo_console
|
81
|
-
- test/
|
82
|
-
- test/
|
83
|
-
- test/
|
84
|
-
- test/auxillary/fork_test.rb
|
85
|
-
- test/auxillary/repl_set_auth_test.rb
|
86
|
-
- test/auxillary/slave_connection_test.rb
|
87
|
-
- test/auxillary/threaded_authentication_test.rb
|
88
|
-
- test/bson/binary_test.rb
|
89
|
-
- test/bson/bson_test.rb
|
90
|
-
- test/bson/byte_buffer_test.rb
|
83
|
+
- test/db_test.rb
|
84
|
+
- test/db_connection_test.rb
|
85
|
+
- test/test_helper.rb
|
91
86
|
- test/bson/hash_with_indifferent_access_test.rb
|
92
|
-
- test/bson/json_test.rb
|
93
|
-
- test/bson/object_id_test.rb
|
94
|
-
- test/bson/ordered_hash_test.rb
|
95
87
|
- test/bson/test_helper.rb
|
88
|
+
- test/bson/bson_test.rb
|
89
|
+
- test/bson/binary_test.rb
|
90
|
+
- test/bson/ordered_hash_test.rb
|
96
91
|
- test/bson/timestamp_test.rb
|
97
|
-
- test/
|
98
|
-
- test/
|
99
|
-
- test/
|
92
|
+
- test/bson/byte_buffer_test.rb
|
93
|
+
- test/bson/object_id_test.rb
|
94
|
+
- test/bson/json_test.rb
|
100
95
|
- test/cursor_fail_test.rb
|
101
|
-
- test/
|
102
|
-
- test/
|
103
|
-
- test/
|
104
|
-
- test/
|
105
|
-
- test/
|
106
|
-
- test/
|
96
|
+
- test/sharded_cluster/basic_test.rb
|
97
|
+
- test/sharded_cluster/mongo_config_test.rb
|
98
|
+
- test/sharded_cluster/sc_test_helper.rb
|
99
|
+
- test/uri_test.rb
|
100
|
+
- test/safe_test.rb
|
101
|
+
- test/tools/mongo_config.rb
|
102
|
+
- test/tools/repl_set_manager.rb
|
103
|
+
- test/tools/auth_repl_set_manager.rb
|
104
|
+
- test/unit/node_test.rb
|
105
|
+
- test/unit/db_test.rb
|
106
|
+
- test/unit/pool_manager_test.rb
|
107
|
+
- test/unit/safe_test.rb
|
108
|
+
- test/unit/collection_test.rb
|
109
|
+
- test/unit/pool_test.rb
|
110
|
+
- test/unit/grid_test.rb
|
111
|
+
- test/unit/cursor_test.rb
|
112
|
+
- test/unit/read_test.rb
|
113
|
+
- test/unit/connection_test.rb
|
114
|
+
- test/collection_test.rb
|
115
|
+
- test/support_test.rb
|
107
116
|
- test/grid_io_test.rb
|
117
|
+
- test/db_api_test.rb
|
118
|
+
- test/pool_test.rb
|
119
|
+
- test/support/keys.rb
|
120
|
+
- test/support/hash_with_indifferent_access.rb
|
108
121
|
- test/grid_test.rb
|
109
122
|
- test/load/thin/load.rb
|
110
123
|
- test/load/unicorn/load.rb
|
111
|
-
- test/
|
112
|
-
- test/
|
113
|
-
- test/
|
114
|
-
- test/
|
115
|
-
- test/
|
124
|
+
- test/threading_test.rb
|
125
|
+
- test/auxillary/authentication_test.rb
|
126
|
+
- test/auxillary/fork_test.rb
|
127
|
+
- test/auxillary/autoreconnect_test.rb
|
128
|
+
- test/auxillary/repl_set_auth_test.rb
|
129
|
+
- test/auxillary/threaded_authentication_test.rb
|
130
|
+
- test/auxillary/1.4_features.rb
|
131
|
+
- test/auxillary/slave_connection_test.rb
|
132
|
+
- test/threading/threading_with_large_pool_test.rb
|
133
|
+
- test/cursor_message_test.rb
|
134
|
+
- test/cursor_test.rb
|
135
|
+
- test/timeout_test.rb
|
116
136
|
- test/replica_sets/insert_test.rb
|
117
|
-
- test/replica_sets/
|
137
|
+
- test/replica_sets/refresh_with_threads_test.rb
|
118
138
|
- test/replica_sets/query_test.rb
|
139
|
+
- test/replica_sets/basic_test.rb
|
140
|
+
- test/replica_sets/connect_test.rb
|
119
141
|
- test/replica_sets/read_preference_test.rb
|
120
142
|
- test/replica_sets/refresh_test.rb
|
121
|
-
- test/replica_sets/refresh_with_threads_test.rb
|
122
143
|
- test/replica_sets/replication_ack_test.rb
|
144
|
+
- test/replica_sets/complex_connect_test.rb
|
145
|
+
- test/replica_sets/complex_read_preference_test.rb
|
146
|
+
- test/replica_sets/pooled_insert_test.rb
|
147
|
+
- test/replica_sets/count_test.rb
|
123
148
|
- test/replica_sets/rs_test_helper.rb
|
124
|
-
- test/
|
125
|
-
- test/
|
126
|
-
- test/
|
127
|
-
- test/
|
128
|
-
- test/test_helper.rb
|
129
|
-
- test/threading/threading_with_large_pool_test.rb
|
130
|
-
- test/threading_test.rb
|
131
|
-
- test/timeout_test.rb
|
132
|
-
- test/tools/auth_repl_set_manager.rb
|
133
|
-
- test/tools/repl_set_manager.rb
|
134
|
-
- test/unit/collection_test.rb
|
135
|
-
- test/unit/connection_test.rb
|
136
|
-
- test/unit/cursor_test.rb
|
137
|
-
- test/unit/db_test.rb
|
138
|
-
- test/unit/grid_test.rb
|
139
|
-
- test/unit/node_test.rb
|
140
|
-
- test/unit/pool_manager_test.rb
|
141
|
-
- test/unit/pool_test.rb
|
142
|
-
- test/unit/read_test.rb
|
143
|
-
- test/unit/safe_test.rb
|
144
|
-
- test/uri_test.rb
|
149
|
+
- test/replica_sets/cursor_test.rb
|
150
|
+
- test/grid_file_system_test.rb
|
151
|
+
- test/conversions_test.rb
|
152
|
+
- test/connection_test.rb
|
145
153
|
homepage: http://www.mongodb.org
|
146
154
|
licenses: []
|
147
155
|
post_install_message:
|
@@ -157,12 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
165
|
- - ! '>='
|
158
166
|
- !ruby/object:Gem::Version
|
159
167
|
version: '0'
|
168
|
+
segments:
|
169
|
+
- 0
|
170
|
+
hash: 652762815758303603
|
160
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
172
|
none: false
|
162
173
|
requirements:
|
163
|
-
- - ! '
|
174
|
+
- - ! '>'
|
164
175
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
176
|
+
version: 1.3.1
|
166
177
|
requirements: []
|
167
178
|
rubyforge_project:
|
168
179
|
rubygems_version: 1.8.24
|
@@ -170,68 +181,74 @@ signing_key:
|
|
170
181
|
specification_version: 3
|
171
182
|
summary: Ruby driver for MongoDB
|
172
183
|
test_files:
|
173
|
-
- test/
|
174
|
-
- test/
|
175
|
-
- test/
|
176
|
-
- test/auxillary/fork_test.rb
|
177
|
-
- test/auxillary/repl_set_auth_test.rb
|
178
|
-
- test/auxillary/slave_connection_test.rb
|
179
|
-
- test/auxillary/threaded_authentication_test.rb
|
180
|
-
- test/bson/binary_test.rb
|
181
|
-
- test/bson/bson_test.rb
|
182
|
-
- test/bson/byte_buffer_test.rb
|
184
|
+
- test/db_test.rb
|
185
|
+
- test/db_connection_test.rb
|
186
|
+
- test/test_helper.rb
|
183
187
|
- test/bson/hash_with_indifferent_access_test.rb
|
184
|
-
- test/bson/json_test.rb
|
185
|
-
- test/bson/object_id_test.rb
|
186
|
-
- test/bson/ordered_hash_test.rb
|
187
188
|
- test/bson/test_helper.rb
|
189
|
+
- test/bson/bson_test.rb
|
190
|
+
- test/bson/binary_test.rb
|
191
|
+
- test/bson/ordered_hash_test.rb
|
188
192
|
- test/bson/timestamp_test.rb
|
189
|
-
- test/
|
190
|
-
- test/
|
191
|
-
- test/
|
193
|
+
- test/bson/byte_buffer_test.rb
|
194
|
+
- test/bson/object_id_test.rb
|
195
|
+
- test/bson/json_test.rb
|
192
196
|
- test/cursor_fail_test.rb
|
193
|
-
- test/
|
194
|
-
- test/
|
195
|
-
- test/
|
196
|
-
- test/
|
197
|
-
- test/
|
198
|
-
- test/
|
197
|
+
- test/sharded_cluster/basic_test.rb
|
198
|
+
- test/sharded_cluster/mongo_config_test.rb
|
199
|
+
- test/sharded_cluster/sc_test_helper.rb
|
200
|
+
- test/uri_test.rb
|
201
|
+
- test/safe_test.rb
|
202
|
+
- test/tools/mongo_config.rb
|
203
|
+
- test/tools/repl_set_manager.rb
|
204
|
+
- test/tools/auth_repl_set_manager.rb
|
205
|
+
- test/unit/node_test.rb
|
206
|
+
- test/unit/db_test.rb
|
207
|
+
- test/unit/pool_manager_test.rb
|
208
|
+
- test/unit/safe_test.rb
|
209
|
+
- test/unit/collection_test.rb
|
210
|
+
- test/unit/pool_test.rb
|
211
|
+
- test/unit/grid_test.rb
|
212
|
+
- test/unit/cursor_test.rb
|
213
|
+
- test/unit/read_test.rb
|
214
|
+
- test/unit/connection_test.rb
|
215
|
+
- test/collection_test.rb
|
216
|
+
- test/support_test.rb
|
199
217
|
- test/grid_io_test.rb
|
218
|
+
- test/db_api_test.rb
|
219
|
+
- test/pool_test.rb
|
220
|
+
- test/support/keys.rb
|
221
|
+
- test/support/hash_with_indifferent_access.rb
|
200
222
|
- test/grid_test.rb
|
201
223
|
- test/load/thin/load.rb
|
202
224
|
- test/load/unicorn/load.rb
|
203
|
-
- test/
|
204
|
-
- test/
|
205
|
-
- test/
|
206
|
-
- test/
|
207
|
-
- test/
|
225
|
+
- test/threading_test.rb
|
226
|
+
- test/auxillary/authentication_test.rb
|
227
|
+
- test/auxillary/fork_test.rb
|
228
|
+
- test/auxillary/autoreconnect_test.rb
|
229
|
+
- test/auxillary/repl_set_auth_test.rb
|
230
|
+
- test/auxillary/threaded_authentication_test.rb
|
231
|
+
- test/auxillary/1.4_features.rb
|
232
|
+
- test/auxillary/slave_connection_test.rb
|
233
|
+
- test/threading/threading_with_large_pool_test.rb
|
234
|
+
- test/cursor_message_test.rb
|
235
|
+
- test/cursor_test.rb
|
236
|
+
- test/timeout_test.rb
|
208
237
|
- test/replica_sets/insert_test.rb
|
209
|
-
- test/replica_sets/
|
238
|
+
- test/replica_sets/refresh_with_threads_test.rb
|
210
239
|
- test/replica_sets/query_test.rb
|
240
|
+
- test/replica_sets/basic_test.rb
|
241
|
+
- test/replica_sets/connect_test.rb
|
211
242
|
- test/replica_sets/read_preference_test.rb
|
212
243
|
- test/replica_sets/refresh_test.rb
|
213
|
-
- test/replica_sets/refresh_with_threads_test.rb
|
214
244
|
- test/replica_sets/replication_ack_test.rb
|
245
|
+
- test/replica_sets/complex_connect_test.rb
|
246
|
+
- test/replica_sets/complex_read_preference_test.rb
|
247
|
+
- test/replica_sets/pooled_insert_test.rb
|
248
|
+
- test/replica_sets/count_test.rb
|
215
249
|
- test/replica_sets/rs_test_helper.rb
|
216
|
-
- test/
|
217
|
-
- test/
|
218
|
-
- test/
|
219
|
-
- test/
|
220
|
-
- test/test_helper.rb
|
221
|
-
- test/threading/threading_with_large_pool_test.rb
|
222
|
-
- test/threading_test.rb
|
223
|
-
- test/timeout_test.rb
|
224
|
-
- test/tools/auth_repl_set_manager.rb
|
225
|
-
- test/tools/repl_set_manager.rb
|
226
|
-
- test/unit/collection_test.rb
|
227
|
-
- test/unit/connection_test.rb
|
228
|
-
- test/unit/cursor_test.rb
|
229
|
-
- test/unit/db_test.rb
|
230
|
-
- test/unit/grid_test.rb
|
231
|
-
- test/unit/node_test.rb
|
232
|
-
- test/unit/pool_manager_test.rb
|
233
|
-
- test/unit/pool_test.rb
|
234
|
-
- test/unit/read_test.rb
|
235
|
-
- test/unit/safe_test.rb
|
236
|
-
- test/uri_test.rb
|
250
|
+
- test/replica_sets/cursor_test.rb
|
251
|
+
- test/grid_file_system_test.rb
|
252
|
+
- test/conversions_test.rb
|
253
|
+
- test/connection_test.rb
|
237
254
|
has_rdoc: true
|