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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c161ed1156380d43da8e438ce1c4777089e84e5a
4
- data.tar.gz: 606d2329d6b50ec8a08d425b1094b0d572ec989a
3
+ metadata.gz: 260d8eb2824639cdc5af3a70324f85439cd1e607
4
+ data.tar.gz: a58e1fa265378a2bcf587a10ac2f9b98b021b94e
5
5
  SHA512:
6
- metadata.gz: 58f9af192a2de8b18aaa1e6ff2a7a5b5652a5db8c38624143c8fc057a02daf974d81cf053f6b963b70e99d54849c866ab0b82c02a5c9abd7949e11a842020d75
7
- data.tar.gz: 0e012db8dfb2fa04c3ecbfb3dfa20c125f3691428a0937c29d15f9f7872f07d2277c9d867273ab1b899c73fba85a454bc7aa65db31197bad1e3ffbb304bc7a81
6
+ metadata.gz: bf187be0f6a2c0934dd1736eaf443119a181fcfcc7a11b2fae7a84f0d0e89e88fb9befb550678b79bc157f736934c083c2898142d58cb633d95b31c6f07efd7e
7
+ data.tar.gz: 561dbcbb3daed9202cb458c421525cdc000446c4a65450c16188ea331c4b69f84e52e7ec81ac6a02b9a11965247738fce69deaf91e95eb312f5b98b95f4411e6
@@ -1,5 +1,11 @@
1
1
  # Overview
2
2
 
3
+ ## 1.5.1
4
+
5
+ ### Resolved Issues
6
+
7
+ * \#208 Fixed local jump errors in node. (Brian Norton)
8
+
3
9
  ## 1.5.0
4
10
 
5
11
  ### New Features
@@ -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
- return command(database, cmd, options)
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
- return query(database, collection, selector, options)
380
+ reply = query(database, collection, selector, options)
381
381
  else
382
382
  raise Errors::QueryFailure.new(operation, reply.documents.first)
383
383
  end
@@ -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
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Moped
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.1"
4
4
  end
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.0
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-05-16 00:00:00.000000000 Z
11
+ date: 2013-08-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A MongoDB driver for Ruby.
14
14
  email: