mongo 1.12.0.rc2 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/VERSION +1 -1
- data/lib/mongo/db.rb +3 -3
- data/lib/mongo/mongo_client.rb +3 -3
- data/test/replica_set/insert_test.rb +1 -1
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e82004eeddfd0de07041111726b21f08a990f84e
|
4
|
+
data.tar.gz: 16b8958b0d294edb39e0852ff97e42c3cf40f2ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a53b39b1b53f4bf37035384c02fb166edfe140c2a7e2f3f8f443170d459f0a79f65bd3860588eb49316f471ed00dcfd020129af2790fa652bc4e91dc0ad43a2
|
7
|
+
data.tar.gz: fa01e2fe2f3363fe5bc7e2f13d1ec06d1b09f4d818f3a9939d877492af1cfa68b9fae9026746c4851d93aa3df619a84eb834b8ee4877812e843a3d43b00b461e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.12.0
|
1
|
+
1.12.0
|
data/lib/mongo/db.rb
CHANGED
@@ -259,7 +259,7 @@ module Mongo
|
|
259
259
|
#
|
260
260
|
# @return [Array]
|
261
261
|
def collection_names
|
262
|
-
if @client.wire_version_feature?(Mongo::MongoClient::
|
262
|
+
if @client.wire_version_feature?(Mongo::MongoClient::MONGODB_3_0)
|
263
263
|
names = collections_info.collect { |doc| doc['name'] || '' }
|
264
264
|
names.delete_if do |name|
|
265
265
|
name.index('$')
|
@@ -286,7 +286,7 @@ module Mongo
|
|
286
286
|
#
|
287
287
|
# @return [Array] List of collection info.
|
288
288
|
def collections_info(coll_name=nil)
|
289
|
-
if @client.wire_version_feature?(Mongo::MongoClient::
|
289
|
+
if @client.wire_version_feature?(Mongo::MongoClient::MONGODB_3_0)
|
290
290
|
cmd = BSON::OrderedHash[:listCollections, 1]
|
291
291
|
cmd.merge!(:filter => { :name => coll_name }) if coll_name
|
292
292
|
result = self.command(cmd, :cursor => {})
|
@@ -508,7 +508,7 @@ module Mongo
|
|
508
508
|
# @return [Hash] keys are index names and the values are lists of [key, type] pairs
|
509
509
|
# defining the index.
|
510
510
|
def index_information(collection_name)
|
511
|
-
if @client.wire_version_feature?(Mongo::MongoClient::
|
511
|
+
if @client.wire_version_feature?(Mongo::MongoClient::MONGODB_3_0)
|
512
512
|
result = self.command({ :listIndexes => collection_name }, :cursor => {})
|
513
513
|
if result.key?('cursor')
|
514
514
|
cursor_info = result['cursor']
|
data/lib/mongo/mongo_client.rb
CHANGED
@@ -25,8 +25,8 @@ module Mongo
|
|
25
25
|
RELEASE_2_4_AND_BEFORE = 0 # Everything before we started tracking.
|
26
26
|
AGG_RETURNS_CURSORS = 1 # The aggregation command may now be requested to return cursors.
|
27
27
|
BATCH_COMMANDS = 2 # insert, update, and delete batch command
|
28
|
-
|
29
|
-
MAX_WIRE_VERSION =
|
28
|
+
MONGODB_3_0 = 3 # listCollections and listIndexes commands, SCRAM-SHA-1 auth mechanism
|
29
|
+
MAX_WIRE_VERSION = MONGODB_3_0 # supported by this client implementation
|
30
30
|
MIN_WIRE_VERSION = RELEASE_2_4_AND_BEFORE # supported by this client implementation
|
31
31
|
|
32
32
|
# Server command headroom
|
@@ -342,7 +342,7 @@ module Mongo
|
|
342
342
|
password = nil,
|
343
343
|
mechanism = 'SCRAM-SHA-1'
|
344
344
|
)
|
345
|
-
if wire_version_feature?(
|
345
|
+
if wire_version_feature?(MONGODB_3_0) && mechanism == 'SCRAM-SHA-1'
|
346
346
|
copy_db_scram(username, password, from_host, from, to)
|
347
347
|
else
|
348
348
|
copy_db_mongodb_cr(username, password, from_host, from, to)
|
@@ -68,7 +68,7 @@ class ReplicaSetInsertTest < Test::Unit::TestCase
|
|
68
68
|
end
|
69
69
|
|
70
70
|
should "handle error with deferred write concern error - spec Merging Results" do
|
71
|
-
if @client.wire_version_feature?(MongoClient::
|
71
|
+
if @client.wire_version_feature?(MongoClient::MONGODB_3_0)
|
72
72
|
@coll.remove
|
73
73
|
@coll.ensure_index(BSON::OrderedHash[:a, Mongo::ASCENDING], {:unique => true})
|
74
74
|
bulk = @coll.initialize_ordered_bulk_op
|
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.12.0
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emily Stolfo
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
JrZM8w8wGbIOeLtoQqa7HB/jOYbTahH7KMNh2LHAbOR93hNIJxVRa4iwxiMQ75tN
|
35
35
|
9WUIAJ4AEtjwRg1Bz0OwDo3aucPCBpx77+/FWhv7JYY=
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date:
|
37
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: bson
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.12.0
|
45
|
+
version: 1.12.0
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
50
|
- - '='
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 1.12.0
|
52
|
+
version: 1.12.0
|
53
53
|
description: A Ruby driver for MongoDB. For more information about Mongo, see http://www.mongodb.org.
|
54
54
|
email: mongodb-dev@googlegroups.com
|
55
55
|
executables:
|
@@ -182,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: '0'
|
188
188
|
requirements: []
|
189
189
|
rubyforge_project: mongo
|
190
190
|
rubygems_version: 2.2.2
|
metadata.gz.sig
CHANGED
Binary file
|