mongo 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,15 +67,16 @@ class ReadTest < Test::Unit::TestCase
67
67
  context "on read mode ops" do
68
68
  setup do
69
69
  @col = @con['foo']['bar']
70
- @mock_socket = stub()
70
+ @mock_socket = new_mock_socket
71
71
  end
72
72
 
73
73
  should "use default value on query" do
74
74
  @cursor = @col.find({:a => 1})
75
- sock = mock()
75
+ sock = new_mock_socket
76
76
  read_pool = stub(:checkin => true)
77
77
  @con.stubs(:read_pool).returns(read_pool)
78
78
  primary_pool = stub(:checkin => true)
79
+ sock.stubs(:pool).returns(primary_pool)
79
80
  @con.stubs(:primary_pool).returns(primary_pool)
80
81
  @con.expects(:checkout_reader).returns(sock)
81
82
  @con.expects(:receive_message).with do |o, m, l, s, c, r|
@@ -87,8 +88,9 @@ class ReadTest < Test::Unit::TestCase
87
88
 
88
89
  should "allow override default value on query" do
89
90
  @cursor = @col.find({:a => 1}, :read => :primary)
90
- sock = mock()
91
+ sock = new_mock_socket
91
92
  primary_pool = stub(:checkin => true)
93
+ sock.stubs(:pool).returns(primary_pool)
92
94
  @con.stubs(:primary_pool).returns(primary_pool)
93
95
  @con.expects(:checkout_writer).returns(sock)
94
96
  @con.expects(:receive_message).with do |o, m, l, s, c, r|
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.6.0
4
+ version: 1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,19 +12,19 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-02-22 00:00:00.000000000 Z
15
+ date: 2012-03-07 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bson
19
- requirement: &70200440295420 !ruby/object:Gem::Requirement
19
+ requirement: &70357486675700 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
- - - =
22
+ - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 1.6.0
24
+ version: 1.6.1
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70200440295420
27
+ version_requirements: *70357486675700
28
28
  description: A Ruby driver for MongoDB. For more information about Mongo, see http://www.mongodb.org.
29
29
  email: mongodb-dev@googlegroups.com
30
30
  executables:
@@ -59,6 +59,7 @@ files:
59
59
  - lib/mongo/util/server_version.rb
60
60
  - lib/mongo/util/ssl_socket.rb
61
61
  - lib/mongo/util/support.rb
62
+ - lib/mongo/util/tcp_socket.rb
62
63
  - lib/mongo/util/uri_parser.rb
63
64
  - lib/mongo/version.rb
64
65
  - docs/CREDITS.md
@@ -102,6 +103,7 @@ files:
102
103
  - test/grid_test.rb
103
104
  - test/load/thin/load.rb
104
105
  - test/load/unicorn/load.rb
106
+ - test/pool_test.rb
105
107
  - test/replica_sets/basic_test.rb
106
108
  - test/replica_sets/complex_connect_test.rb
107
109
  - test/replica_sets/connect_test.rb
@@ -157,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
159
  version: '0'
158
160
  requirements: []
159
161
  rubyforge_project:
160
- rubygems_version: 1.8.16
162
+ rubygems_version: 1.8.17
161
163
  signing_key:
162
164
  specification_version: 3
163
165
  summary: Ruby driver for MongoDB
@@ -192,6 +194,7 @@ test_files:
192
194
  - test/grid_test.rb
193
195
  - test/load/thin/load.rb
194
196
  - test/load/unicorn/load.rb
197
+ - test/pool_test.rb
195
198
  - test/replica_sets/basic_test.rb
196
199
  - test/replica_sets/complex_connect_test.rb
197
200
  - test/replica_sets/connect_test.rb