moped 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of moped might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/moped/node.rb +2 -2
- data/lib/moped/protocol/reply.rb +1 -1
- data/lib/moped/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 260d8eb2824639cdc5af3a70324f85439cd1e607
|
4
|
+
data.tar.gz: a58e1fa265378a2bcf587a10ac2f9b98b021b94e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf187be0f6a2c0934dd1736eaf443119a181fcfcc7a11b2fae7a84f0d0e89e88fb9befb550678b79bc157f736934c083c2898142d58cb633d95b31c6f07efd7e
|
7
|
+
data.tar.gz: 561dbcbb3daed9202cb458c421525cdc000446c4a65450c16188ea331c4b69f84e52e7ec81ac6a02b9a11965247738fce69deaf91e95eb312f5b98b95f4411e6
|
data/CHANGELOG.md
CHANGED
data/lib/moped/node.rb
CHANGED
@@ -94,7 +94,7 @@ module Moped
|
|
94
94
|
if reply.command_failure?
|
95
95
|
if reply.unauthorized? && auth.has_key?(database)
|
96
96
|
login(database, *auth[database])
|
97
|
-
|
97
|
+
result = command(database, cmd, options)
|
98
98
|
else
|
99
99
|
raise Errors::OperationFailure.new(operation, result)
|
100
100
|
end
|
@@ -377,7 +377,7 @@ module Moped
|
|
377
377
|
# connection. In this case we need to requthenticate and try again,
|
378
378
|
# otherwise we'll just raise the error to the user.
|
379
379
|
login(database, *auth[database])
|
380
|
-
|
380
|
+
reply = query(database, collection, selector, options)
|
381
381
|
else
|
382
382
|
raise Errors::QueryFailure.new(operation, reply.documents.first)
|
383
383
|
end
|
data/lib/moped/protocol/reply.rb
CHANGED
@@ -114,7 +114,7 @@ module Moped
|
|
114
114
|
err = error_message(result)
|
115
115
|
UNAUTHORIZED.include?(result["code"]) ||
|
116
116
|
UNAUTHORIZED.include?(result["assertionCode"]) ||
|
117
|
-
(err && err =~ /unauthorized/)
|
117
|
+
(err && (err =~ /unauthorized/ || err =~ /not authorized/))
|
118
118
|
end
|
119
119
|
|
120
120
|
class << self
|
data/lib/moped/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernerd Schaefer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A MongoDB driver for Ruby.
|
14
14
|
email:
|