jonbell-mongo 1.3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +190 -0
- data/README.md +333 -0
- data/Rakefile +215 -0
- data/bin/mongo_console +21 -0
- data/docs/CREDITS.md +123 -0
- data/docs/FAQ.md +116 -0
- data/docs/GridFS.md +158 -0
- data/docs/HISTORY.md +263 -0
- data/docs/RELEASES.md +33 -0
- data/docs/REPLICA_SETS.md +72 -0
- data/docs/TUTORIAL.md +247 -0
- data/docs/WRITE_CONCERN.md +28 -0
- data/lib/mongo.rb +97 -0
- data/lib/mongo/collection.rb +895 -0
- data/lib/mongo/connection.rb +926 -0
- data/lib/mongo/cursor.rb +474 -0
- data/lib/mongo/db.rb +617 -0
- data/lib/mongo/exceptions.rb +71 -0
- data/lib/mongo/gridfs/grid.rb +107 -0
- data/lib/mongo/gridfs/grid_ext.rb +57 -0
- data/lib/mongo/gridfs/grid_file_system.rb +146 -0
- data/lib/mongo/gridfs/grid_io.rb +485 -0
- data/lib/mongo/gridfs/grid_io_fix.rb +38 -0
- data/lib/mongo/repl_set_connection.rb +356 -0
- data/lib/mongo/util/conversions.rb +89 -0
- data/lib/mongo/util/core_ext.rb +60 -0
- data/lib/mongo/util/pool.rb +177 -0
- data/lib/mongo/util/server_version.rb +71 -0
- data/lib/mongo/util/support.rb +82 -0
- data/lib/mongo/util/uri_parser.rb +185 -0
- data/mongo.gemspec +34 -0
- data/test/auxillary/1.4_features.rb +166 -0
- data/test/auxillary/authentication_test.rb +68 -0
- data/test/auxillary/autoreconnect_test.rb +41 -0
- data/test/auxillary/fork_test.rb +30 -0
- data/test/auxillary/repl_set_auth_test.rb +58 -0
- data/test/auxillary/slave_connection_test.rb +36 -0
- data/test/auxillary/threaded_authentication_test.rb +101 -0
- data/test/bson/binary_test.rb +15 -0
- data/test/bson/bson_test.rb +654 -0
- data/test/bson/byte_buffer_test.rb +208 -0
- data/test/bson/hash_with_indifferent_access_test.rb +38 -0
- data/test/bson/json_test.rb +17 -0
- data/test/bson/object_id_test.rb +154 -0
- data/test/bson/ordered_hash_test.rb +210 -0
- data/test/bson/timestamp_test.rb +24 -0
- data/test/collection_test.rb +910 -0
- data/test/connection_test.rb +324 -0
- data/test/conversions_test.rb +119 -0
- data/test/cursor_fail_test.rb +75 -0
- data/test/cursor_message_test.rb +43 -0
- data/test/cursor_test.rb +483 -0
- data/test/db_api_test.rb +738 -0
- data/test/db_connection_test.rb +15 -0
- data/test/db_test.rb +315 -0
- data/test/grid_file_system_test.rb +259 -0
- data/test/grid_io_test.rb +209 -0
- data/test/grid_test.rb +258 -0
- data/test/load/thin/load.rb +24 -0
- data/test/load/unicorn/load.rb +23 -0
- data/test/replica_sets/connect_test.rb +112 -0
- data/test/replica_sets/connection_string_test.rb +32 -0
- data/test/replica_sets/count_test.rb +35 -0
- data/test/replica_sets/insert_test.rb +53 -0
- data/test/replica_sets/pooled_insert_test.rb +55 -0
- data/test/replica_sets/query_secondaries.rb +108 -0
- data/test/replica_sets/query_test.rb +51 -0
- data/test/replica_sets/replication_ack_test.rb +66 -0
- data/test/replica_sets/rs_test_helper.rb +27 -0
- data/test/safe_test.rb +68 -0
- data/test/support/hash_with_indifferent_access.rb +186 -0
- data/test/support/keys.rb +45 -0
- data/test/support_test.rb +18 -0
- data/test/test_helper.rb +102 -0
- data/test/threading/threading_with_large_pool_test.rb +90 -0
- data/test/threading_test.rb +87 -0
- data/test/tools/auth_repl_set_manager.rb +14 -0
- data/test/tools/repl_set_manager.rb +266 -0
- data/test/unit/collection_test.rb +130 -0
- data/test/unit/connection_test.rb +85 -0
- data/test/unit/cursor_test.rb +109 -0
- data/test/unit/db_test.rb +94 -0
- data/test/unit/grid_test.rb +49 -0
- data/test/unit/pool_test.rb +9 -0
- data/test/unit/repl_set_connection_test.rb +59 -0
- data/test/unit/safe_test.rb +125 -0
- data/test/uri_test.rb +91 -0
- metadata +224 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
require './test/test_helper'
|
2
|
+
include Mongo
|
3
|
+
|
4
|
+
class ReplSetConnectionTest < Test::Unit::TestCase
|
5
|
+
context "Initialization: " do
|
6
|
+
context "connecting to a replica set" do
|
7
|
+
setup do
|
8
|
+
TCPSocket.stubs(:new).returns(new_mock_socket('localhost', 27017))
|
9
|
+
@conn = ReplSetConnection.new(['localhost', 27017], :connect => false, :read_secondary => true)
|
10
|
+
|
11
|
+
admin_db = new_mock_db
|
12
|
+
@hosts = ['localhost:27018', 'localhost:27019', 'localhost:27020']
|
13
|
+
|
14
|
+
admin_db.stubs(:command).returns({'ok' => 1, 'ismaster' => 1, 'hosts' => @hosts}).
|
15
|
+
then.returns({'ok' => 1, 'ismaster' => 0, 'hosts' => @hosts, 'secondary' => 1}).
|
16
|
+
then.returns({'ok' => 1, 'ismaster' => 0, 'hosts' => @hosts, 'secondary' => 1}).
|
17
|
+
then.returns({'ok' => 1, 'ismaster' => 0, 'arbiterOnly' => 1})
|
18
|
+
|
19
|
+
@conn.stubs(:[]).with('admin').returns(admin_db)
|
20
|
+
@conn.connect
|
21
|
+
end
|
22
|
+
|
23
|
+
should "store the hosts returned from the ismaster command" do
|
24
|
+
assert_equal 'localhost', @conn.primary_pool.host
|
25
|
+
assert_equal 27017, @conn.primary_pool.port
|
26
|
+
|
27
|
+
assert_equal 'localhost', @conn.secondary_pools[0].host
|
28
|
+
assert_equal 27018, @conn.secondary_pools[0].port
|
29
|
+
|
30
|
+
assert_equal 'localhost', @conn.secondary_pools[1].host
|
31
|
+
assert_equal 27019, @conn.secondary_pools[1].port
|
32
|
+
|
33
|
+
assert_equal 2, @conn.secondary_pools.length
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
context "connecting to a replica set and providing seed nodes" do
|
38
|
+
setup do
|
39
|
+
TCPSocket.stubs(:new).returns(new_mock_socket)
|
40
|
+
@conn = ReplSetConnection.new(['localhost', 27017], ['localhost', 27019], :connect => false)
|
41
|
+
|
42
|
+
admin_db = new_mock_db
|
43
|
+
@hosts = ['localhost:27017', 'localhost:27018', 'localhost:27019']
|
44
|
+
admin_db.stubs(:command).returns({'ok' => 1, 'ismaster' => 1, 'hosts' => @hosts})
|
45
|
+
@conn.stubs(:[]).with('admin').returns(admin_db)
|
46
|
+
@conn.connect
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
context "initializing with a mongodb uri" do
|
51
|
+
|
52
|
+
should "parse a uri specifying multiple nodes" do
|
53
|
+
@conn = Connection.from_uri("mongodb://localhost:27017,mydb.com:27018", :connect => false)
|
54
|
+
assert_equal ['localhost', 27017], @conn.nodes[0]
|
55
|
+
assert_equal ['mydb.com', 27018], @conn.nodes[1]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
require './test/test_helper'
|
2
|
+
|
3
|
+
class SafeTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "Safe mode on connection: " do
|
6
|
+
setup do
|
7
|
+
@safe_value = {:w => 7}
|
8
|
+
@con = Mongo::Connection.new('localhost', 27017, :safe => @safe_value, :connect => false)
|
9
|
+
end
|
10
|
+
|
11
|
+
should "propogate to DB" do
|
12
|
+
db = @con['foo']
|
13
|
+
assert_equal @safe_value, db.safe
|
14
|
+
|
15
|
+
|
16
|
+
db = @con.db('foo')
|
17
|
+
assert_equal @safe_value, db.safe
|
18
|
+
|
19
|
+
db = DB.new('foo', @con)
|
20
|
+
assert_equal @safe_value, db.safe
|
21
|
+
end
|
22
|
+
|
23
|
+
should "allow db override" do
|
24
|
+
db = DB.new('foo', @con, :safe => false)
|
25
|
+
assert_equal false, db.safe
|
26
|
+
|
27
|
+
db = @con.db('foo', :safe => false)
|
28
|
+
assert_equal false, db.safe
|
29
|
+
end
|
30
|
+
|
31
|
+
context "on DB: " do
|
32
|
+
setup do
|
33
|
+
@db = @con['foo']
|
34
|
+
end
|
35
|
+
|
36
|
+
should "propogate to collection" do
|
37
|
+
col = @db.collection('bar')
|
38
|
+
assert_equal @safe_value, col.safe
|
39
|
+
|
40
|
+
col = @db['bar']
|
41
|
+
assert_equal @safe_value, col.safe
|
42
|
+
|
43
|
+
col = Collection.new('bar', @db)
|
44
|
+
assert_equal @safe_value, col.safe
|
45
|
+
end
|
46
|
+
|
47
|
+
should "allow override on collection" do
|
48
|
+
col = @db.collection('bar', :safe => false)
|
49
|
+
assert_equal false, col.safe
|
50
|
+
|
51
|
+
col = Collection.new('bar', @db, :safe => false)
|
52
|
+
assert_equal false, col.safe
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
context "on operations supporting safe mode" do
|
57
|
+
setup do
|
58
|
+
@col = @con['foo']['bar']
|
59
|
+
end
|
60
|
+
|
61
|
+
should "use default value on insert" do
|
62
|
+
@con.expects(:send_message_with_safe_check).with do |op, msg, log, n, safe|
|
63
|
+
safe == @safe_value
|
64
|
+
end
|
65
|
+
|
66
|
+
@col.insert({:a => 1})
|
67
|
+
end
|
68
|
+
|
69
|
+
should "allow override alternate value on insert" do
|
70
|
+
@con.expects(:send_message_with_safe_check).with do |op, msg, log, n, safe|
|
71
|
+
safe == {:w => 100}
|
72
|
+
end
|
73
|
+
|
74
|
+
@col.insert({:a => 1}, :safe => {:w => 100})
|
75
|
+
end
|
76
|
+
|
77
|
+
should "allow override to disable on insert" do
|
78
|
+
@con.expects(:send_message)
|
79
|
+
@col.insert({:a => 1}, :safe => false)
|
80
|
+
end
|
81
|
+
|
82
|
+
should "use default value on update" do
|
83
|
+
@con.expects(:send_message_with_safe_check).with do |op, msg, log, n, safe|
|
84
|
+
safe == @safe_value
|
85
|
+
end
|
86
|
+
|
87
|
+
@col.update({:a => 1}, {:a => 2})
|
88
|
+
end
|
89
|
+
|
90
|
+
should "allow override alternate value on update" do
|
91
|
+
@con.expects(:send_message_with_safe_check).with do |op, msg, log, n, safe|
|
92
|
+
safe == {:w => 100}
|
93
|
+
end
|
94
|
+
|
95
|
+
@col.update({:a => 1}, {:a => 2}, :safe => {:w => 100})
|
96
|
+
end
|
97
|
+
|
98
|
+
should "allow override to disable on update" do
|
99
|
+
@con.expects(:send_message)
|
100
|
+
@col.update({:a => 1}, {:a => 2}, :safe => false)
|
101
|
+
end
|
102
|
+
|
103
|
+
should "use default value on remove" do
|
104
|
+
@con.expects(:send_message_with_safe_check).with do |op, msg, log, n, safe|
|
105
|
+
safe == @safe_value
|
106
|
+
end
|
107
|
+
|
108
|
+
@col.remove
|
109
|
+
end
|
110
|
+
|
111
|
+
should "allow override alternate value on remove" do
|
112
|
+
@con.expects(:send_message_with_safe_check).with do |op, msg, log, n, safe|
|
113
|
+
safe == {:w => 100}
|
114
|
+
end
|
115
|
+
|
116
|
+
@col.remove({}, :safe => {:w => 100})
|
117
|
+
end
|
118
|
+
|
119
|
+
should "allow override to disable on remove" do
|
120
|
+
@con.expects(:send_message)
|
121
|
+
@col.remove({}, :safe => false)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
data/test/uri_test.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
require './test/test_helper'
|
2
|
+
|
3
|
+
class TestThreading < Test::Unit::TestCase
|
4
|
+
include Mongo
|
5
|
+
|
6
|
+
def test_uri_without_port
|
7
|
+
parser = Mongo::URIParser.new('mongodb://localhost')
|
8
|
+
assert_equal 1, parser.nodes.length
|
9
|
+
assert_equal 'localhost', parser.nodes[0][0]
|
10
|
+
assert_equal 27017, parser.nodes[0][1]
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_basic_uri
|
14
|
+
parser = Mongo::URIParser.new('mongodb://localhost:27018')
|
15
|
+
assert_equal 1, parser.nodes.length
|
16
|
+
assert_equal 'localhost', parser.nodes[0][0]
|
17
|
+
assert_equal 27018, parser.nodes[0][1]
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_multiple_uris
|
21
|
+
parser = Mongo::URIParser.new('mongodb://a.example.com:27018,b.example.com')
|
22
|
+
assert_equal 2, parser.nodes.length
|
23
|
+
assert_equal 'a.example.com', parser.nodes[0][0]
|
24
|
+
assert_equal 27018, parser.nodes[0][1]
|
25
|
+
assert_equal 'b.example.com', parser.nodes[1][0]
|
26
|
+
assert_equal 27017, parser.nodes[1][1]
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_complex_passwords
|
30
|
+
parser = Mongo::URIParser.new('mongodb://bob:secret.word@a.example.com:27018/test')
|
31
|
+
assert_equal "bob", parser.auths[0]["username"]
|
32
|
+
assert_equal "secret.word", parser.auths[0]["password"]
|
33
|
+
|
34
|
+
parser = Mongo::URIParser.new('mongodb://bob:s-_3#%R.t@a.example.com:27018/test')
|
35
|
+
assert_equal "bob", parser.auths[0]["username"]
|
36
|
+
assert_equal "s-_3#%R.t", parser.auths[0]["password"]
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_passwords_contain_no_commas
|
40
|
+
assert_raise MongoArgumentError do
|
41
|
+
Mongo::URIParser.new('mongodb://bob:a,b@a.example.com:27018/test')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def test_multiple_uris_with_auths
|
46
|
+
parser = Mongo::URIParser.new('mongodb://bob:secret@a.example.com:27018/test,joe:secret2@b.example.com/test2')
|
47
|
+
assert_equal 2, parser.nodes.length
|
48
|
+
assert_equal 'a.example.com', parser.nodes[0][0]
|
49
|
+
assert_equal 27018, parser.nodes[0][1]
|
50
|
+
assert_equal 'b.example.com', parser.nodes[1][0]
|
51
|
+
assert_equal 27017, parser.nodes[1][1]
|
52
|
+
assert_equal 2, parser.auths.length
|
53
|
+
assert_equal "bob", parser.auths[0]["username"]
|
54
|
+
assert_equal "secret", parser.auths[0]["password"]
|
55
|
+
assert_equal "test", parser.auths[0]["db_name"]
|
56
|
+
assert_equal "joe", parser.auths[1]["username"]
|
57
|
+
assert_equal "secret2", parser.auths[1]["password"]
|
58
|
+
assert_equal "test2", parser.auths[1]["db_name"]
|
59
|
+
end
|
60
|
+
|
61
|
+
def test_opts_basic
|
62
|
+
parser = Mongo::URIParser.new('mongodb://localhost:27018?connect=direct;slaveok=true;safe=true')
|
63
|
+
assert_equal 'direct', parser.connect
|
64
|
+
assert parser.slaveok
|
65
|
+
assert parser.safe
|
66
|
+
end
|
67
|
+
|
68
|
+
def test_opts_with_amp_separator
|
69
|
+
parser = Mongo::URIParser.new('mongodb://localhost:27018?connect=direct&slaveok=true&safe=true')
|
70
|
+
assert_equal 'direct', parser.connect
|
71
|
+
assert parser.slaveok
|
72
|
+
assert parser.safe
|
73
|
+
end
|
74
|
+
|
75
|
+
def test_opts_safe
|
76
|
+
parser = Mongo::URIParser.new('mongodb://localhost:27018?safe=true;w=2;wtimeout=200;fsync=true')
|
77
|
+
assert parser.safe
|
78
|
+
assert_equal 2, parser.w
|
79
|
+
assert_equal 200, parser.wtimeout
|
80
|
+
assert parser.fsync
|
81
|
+
end
|
82
|
+
|
83
|
+
def test_opts_replica_set
|
84
|
+
assert_raise_error MongoArgumentError, "specify that connect=replicaset" do
|
85
|
+
Mongo::URIParser.new('mongodb://localhost:27018?replicaset=foo')
|
86
|
+
end
|
87
|
+
parser = Mongo::URIParser.new('mongodb://localhost:27018?connect=replicaset;replicaset=foo')
|
88
|
+
assert_equal 'foo', parser.replicaset
|
89
|
+
assert_equal 'replicaset', parser.connect
|
90
|
+
end
|
91
|
+
end
|
metadata
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jonbell-mongo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 3
|
8
|
+
- 1
|
9
|
+
- 2
|
10
|
+
version: 1.3.1.2
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Jim Menard
|
14
|
+
- Mike Dirolf
|
15
|
+
- Kyle Banker
|
16
|
+
autorequire:
|
17
|
+
bindir: bin
|
18
|
+
cert_chain: []
|
19
|
+
|
20
|
+
date: 2011-06-29 00:00:00 -05:00
|
21
|
+
default_executable:
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
24
|
+
name: bson
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
segments:
|
32
|
+
- 1
|
33
|
+
- 3
|
34
|
+
- 1
|
35
|
+
version: 1.3.1
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id001
|
38
|
+
description: A Ruby driver for MongoDB. For more information about Mongo, see http://www.mongodb.org.
|
39
|
+
email: mongodb-dev@googlegroups.com
|
40
|
+
executables:
|
41
|
+
- mongo_console
|
42
|
+
extensions: []
|
43
|
+
|
44
|
+
extra_rdoc_files:
|
45
|
+
- README.md
|
46
|
+
files:
|
47
|
+
- README.md
|
48
|
+
- Rakefile
|
49
|
+
- mongo.gemspec
|
50
|
+
- LICENSE.txt
|
51
|
+
- lib/mongo.rb
|
52
|
+
- lib/mongo/collection.rb
|
53
|
+
- lib/mongo/connection.rb
|
54
|
+
- lib/mongo/cursor.rb
|
55
|
+
- lib/mongo/db.rb
|
56
|
+
- lib/mongo/exceptions.rb
|
57
|
+
- lib/mongo/gridfs/grid.rb
|
58
|
+
- lib/mongo/gridfs/grid_ext.rb
|
59
|
+
- lib/mongo/gridfs/grid_file_system.rb
|
60
|
+
- lib/mongo/gridfs/grid_io.rb
|
61
|
+
- lib/mongo/gridfs/grid_io_fix.rb
|
62
|
+
- lib/mongo/repl_set_connection.rb
|
63
|
+
- lib/mongo/util/conversions.rb
|
64
|
+
- lib/mongo/util/core_ext.rb
|
65
|
+
- lib/mongo/util/pool.rb
|
66
|
+
- lib/mongo/util/server_version.rb
|
67
|
+
- lib/mongo/util/support.rb
|
68
|
+
- lib/mongo/util/uri_parser.rb
|
69
|
+
- docs/CREDITS.md
|
70
|
+
- docs/FAQ.md
|
71
|
+
- docs/GridFS.md
|
72
|
+
- docs/HISTORY.md
|
73
|
+
- docs/RELEASES.md
|
74
|
+
- docs/REPLICA_SETS.md
|
75
|
+
- docs/TUTORIAL.md
|
76
|
+
- docs/WRITE_CONCERN.md
|
77
|
+
- bin/mongo_console
|
78
|
+
- test/auxillary/1.4_features.rb
|
79
|
+
- test/auxillary/authentication_test.rb
|
80
|
+
- test/auxillary/autoreconnect_test.rb
|
81
|
+
- test/auxillary/fork_test.rb
|
82
|
+
- test/auxillary/repl_set_auth_test.rb
|
83
|
+
- test/auxillary/slave_connection_test.rb
|
84
|
+
- test/auxillary/threaded_authentication_test.rb
|
85
|
+
- test/bson/binary_test.rb
|
86
|
+
- test/bson/bson_test.rb
|
87
|
+
- test/bson/byte_buffer_test.rb
|
88
|
+
- test/bson/hash_with_indifferent_access_test.rb
|
89
|
+
- test/bson/json_test.rb
|
90
|
+
- test/bson/object_id_test.rb
|
91
|
+
- test/bson/ordered_hash_test.rb
|
92
|
+
- test/bson/timestamp_test.rb
|
93
|
+
- test/collection_test.rb
|
94
|
+
- test/connection_test.rb
|
95
|
+
- test/conversions_test.rb
|
96
|
+
- test/cursor_fail_test.rb
|
97
|
+
- test/cursor_message_test.rb
|
98
|
+
- test/cursor_test.rb
|
99
|
+
- test/db_api_test.rb
|
100
|
+
- test/db_connection_test.rb
|
101
|
+
- test/db_test.rb
|
102
|
+
- test/grid_file_system_test.rb
|
103
|
+
- test/grid_io_test.rb
|
104
|
+
- test/grid_test.rb
|
105
|
+
- test/load/thin/load.rb
|
106
|
+
- test/load/unicorn/load.rb
|
107
|
+
- test/replica_sets/connect_test.rb
|
108
|
+
- test/replica_sets/connection_string_test.rb
|
109
|
+
- test/replica_sets/count_test.rb
|
110
|
+
- test/replica_sets/insert_test.rb
|
111
|
+
- test/replica_sets/pooled_insert_test.rb
|
112
|
+
- test/replica_sets/query_secondaries.rb
|
113
|
+
- test/replica_sets/query_test.rb
|
114
|
+
- test/replica_sets/replication_ack_test.rb
|
115
|
+
- test/replica_sets/rs_test_helper.rb
|
116
|
+
- test/safe_test.rb
|
117
|
+
- test/support/hash_with_indifferent_access.rb
|
118
|
+
- test/support/keys.rb
|
119
|
+
- test/support_test.rb
|
120
|
+
- test/test_helper.rb
|
121
|
+
- test/threading/threading_with_large_pool_test.rb
|
122
|
+
- test/threading_test.rb
|
123
|
+
- test/tools/auth_repl_set_manager.rb
|
124
|
+
- test/tools/repl_set_manager.rb
|
125
|
+
- test/unit/collection_test.rb
|
126
|
+
- test/unit/connection_test.rb
|
127
|
+
- test/unit/cursor_test.rb
|
128
|
+
- test/unit/db_test.rb
|
129
|
+
- test/unit/grid_test.rb
|
130
|
+
- test/unit/pool_test.rb
|
131
|
+
- test/unit/repl_set_connection_test.rb
|
132
|
+
- test/unit/safe_test.rb
|
133
|
+
- test/uri_test.rb
|
134
|
+
has_rdoc: true
|
135
|
+
homepage: http://www.mongodb.org
|
136
|
+
licenses: []
|
137
|
+
|
138
|
+
post_install_message:
|
139
|
+
rdoc_options:
|
140
|
+
- --main
|
141
|
+
- README.md
|
142
|
+
- --inline-source
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
segments:
|
151
|
+
- 0
|
152
|
+
version: "0"
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
segments:
|
159
|
+
- 0
|
160
|
+
version: "0"
|
161
|
+
requirements: []
|
162
|
+
|
163
|
+
rubyforge_project:
|
164
|
+
rubygems_version: 1.3.7
|
165
|
+
signing_key:
|
166
|
+
specification_version: 3
|
167
|
+
summary: Ruby driver for the MongoDB
|
168
|
+
test_files:
|
169
|
+
- test/auxillary/1.4_features.rb
|
170
|
+
- test/auxillary/authentication_test.rb
|
171
|
+
- test/auxillary/autoreconnect_test.rb
|
172
|
+
- test/auxillary/fork_test.rb
|
173
|
+
- test/auxillary/repl_set_auth_test.rb
|
174
|
+
- test/auxillary/slave_connection_test.rb
|
175
|
+
- test/auxillary/threaded_authentication_test.rb
|
176
|
+
- test/bson/binary_test.rb
|
177
|
+
- test/bson/bson_test.rb
|
178
|
+
- test/bson/byte_buffer_test.rb
|
179
|
+
- test/bson/hash_with_indifferent_access_test.rb
|
180
|
+
- test/bson/json_test.rb
|
181
|
+
- test/bson/object_id_test.rb
|
182
|
+
- test/bson/ordered_hash_test.rb
|
183
|
+
- test/bson/timestamp_test.rb
|
184
|
+
- test/collection_test.rb
|
185
|
+
- test/connection_test.rb
|
186
|
+
- test/conversions_test.rb
|
187
|
+
- test/cursor_fail_test.rb
|
188
|
+
- test/cursor_message_test.rb
|
189
|
+
- test/cursor_test.rb
|
190
|
+
- test/db_api_test.rb
|
191
|
+
- test/db_connection_test.rb
|
192
|
+
- test/db_test.rb
|
193
|
+
- test/grid_file_system_test.rb
|
194
|
+
- test/grid_io_test.rb
|
195
|
+
- test/grid_test.rb
|
196
|
+
- test/load/thin/load.rb
|
197
|
+
- test/load/unicorn/load.rb
|
198
|
+
- test/replica_sets/connect_test.rb
|
199
|
+
- test/replica_sets/connection_string_test.rb
|
200
|
+
- test/replica_sets/count_test.rb
|
201
|
+
- test/replica_sets/insert_test.rb
|
202
|
+
- test/replica_sets/pooled_insert_test.rb
|
203
|
+
- test/replica_sets/query_secondaries.rb
|
204
|
+
- test/replica_sets/query_test.rb
|
205
|
+
- test/replica_sets/replication_ack_test.rb
|
206
|
+
- test/replica_sets/rs_test_helper.rb
|
207
|
+
- test/safe_test.rb
|
208
|
+
- test/support/hash_with_indifferent_access.rb
|
209
|
+
- test/support/keys.rb
|
210
|
+
- test/support_test.rb
|
211
|
+
- test/test_helper.rb
|
212
|
+
- test/threading/threading_with_large_pool_test.rb
|
213
|
+
- test/threading_test.rb
|
214
|
+
- test/tools/auth_repl_set_manager.rb
|
215
|
+
- test/tools/repl_set_manager.rb
|
216
|
+
- test/unit/collection_test.rb
|
217
|
+
- test/unit/connection_test.rb
|
218
|
+
- test/unit/cursor_test.rb
|
219
|
+
- test/unit/db_test.rb
|
220
|
+
- test/unit/grid_test.rb
|
221
|
+
- test/unit/pool_test.rb
|
222
|
+
- test/unit/repl_set_connection_test.rb
|
223
|
+
- test/unit/safe_test.rb
|
224
|
+
- test/uri_test.rb
|