moped 1.2.4 → 1.2.5
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.
- data/CHANGELOG.md +3 -1
- data/lib/moped/node.rb +1 -1
- data/lib/moped/version.rb +1 -1
- metadata +36 -36
data/CHANGELOG.md
CHANGED
@@ -4,10 +4,12 @@
|
|
4
4
|
|
5
5
|
### New Features
|
6
6
|
|
7
|
-
## 1.2.
|
7
|
+
## 1.2.5
|
8
8
|
|
9
9
|
### Resolved Issues
|
10
10
|
|
11
|
+
*\#76 Fixed typo in database check on Node. (Mathieu Ravaux)
|
12
|
+
|
11
13
|
* Sockets now set TCP `SO_LINGER` option to false to ensure connections that are no
|
12
14
|
longer used get closed.
|
13
15
|
|
data/lib/moped/node.rb
CHANGED
@@ -340,7 +340,7 @@ module Moped
|
|
340
340
|
|
341
341
|
process(operation) do |reply|
|
342
342
|
if reply.query_failed?
|
343
|
-
if reply.unauthorized? && auth.has_key?
|
343
|
+
if reply.unauthorized? && auth.has_key?(database)
|
344
344
|
# If we got here, most likely this is the case of Moped
|
345
345
|
# authenticating successfully against the node originally, but the
|
346
346
|
# node has been reset or gone down and come back up. The most
|
data/lib/moped/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.5
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Bernerd Schaefer
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
date: 2012-09-24 00:00:00.000000000 Z
|
@@ -18,31 +18,9 @@ executables: []
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- lib/moped.rb
|
22
|
-
- lib/moped/bson.rb
|
23
|
-
- lib/moped/cluster.rb
|
24
|
-
- lib/moped/collection.rb
|
25
|
-
- lib/moped/connection.rb
|
26
|
-
- lib/moped/cursor.rb
|
27
|
-
- lib/moped/database.rb
|
28
|
-
- lib/moped/errors.rb
|
29
|
-
- lib/moped/indexes.rb
|
30
|
-
- lib/moped/logging.rb
|
31
|
-
- lib/moped/node.rb
|
32
|
-
- lib/moped/protocol.rb
|
33
|
-
- lib/moped/query.rb
|
34
|
-
- lib/moped/session.rb
|
35
|
-
- lib/moped/threaded.rb
|
36
|
-
- lib/moped/version.rb
|
37
21
|
- lib/moped/bson/binary.rb
|
38
22
|
- lib/moped/bson/code.rb
|
39
23
|
- lib/moped/bson/document.rb
|
40
|
-
- lib/moped/bson/extensions.rb
|
41
|
-
- lib/moped/bson/max_key.rb
|
42
|
-
- lib/moped/bson/min_key.rb
|
43
|
-
- lib/moped/bson/object_id.rb
|
44
|
-
- lib/moped/bson/timestamp.rb
|
45
|
-
- lib/moped/bson/types.rb
|
46
24
|
- lib/moped/bson/extensions/array.rb
|
47
25
|
- lib/moped/bson/extensions/boolean.rb
|
48
26
|
- lib/moped/bson/extensions/false_class.rb
|
@@ -56,7 +34,24 @@ files:
|
|
56
34
|
- lib/moped/bson/extensions/symbol.rb
|
57
35
|
- lib/moped/bson/extensions/time.rb
|
58
36
|
- lib/moped/bson/extensions/true_class.rb
|
37
|
+
- lib/moped/bson/extensions.rb
|
38
|
+
- lib/moped/bson/max_key.rb
|
39
|
+
- lib/moped/bson/min_key.rb
|
40
|
+
- lib/moped/bson/object_id.rb
|
41
|
+
- lib/moped/bson/timestamp.rb
|
42
|
+
- lib/moped/bson/types.rb
|
43
|
+
- lib/moped/bson.rb
|
44
|
+
- lib/moped/cluster.rb
|
45
|
+
- lib/moped/collection.rb
|
46
|
+
- lib/moped/connection.rb
|
47
|
+
- lib/moped/cursor.rb
|
48
|
+
- lib/moped/database.rb
|
49
|
+
- lib/moped/errors.rb
|
50
|
+
- lib/moped/indexes.rb
|
51
|
+
- lib/moped/logging.rb
|
52
|
+
- lib/moped/node.rb
|
59
53
|
- lib/moped/protocol/command.rb
|
54
|
+
- lib/moped/protocol/commands/authenticate.rb
|
60
55
|
- lib/moped/protocol/commands.rb
|
61
56
|
- lib/moped/protocol/delete.rb
|
62
57
|
- lib/moped/protocol/get_more.rb
|
@@ -66,40 +61,45 @@ files:
|
|
66
61
|
- lib/moped/protocol/query.rb
|
67
62
|
- lib/moped/protocol/reply.rb
|
68
63
|
- lib/moped/protocol/update.rb
|
69
|
-
- lib/moped/protocol
|
64
|
+
- lib/moped/protocol.rb
|
65
|
+
- lib/moped/query.rb
|
70
66
|
- lib/moped/session/context.rb
|
67
|
+
- lib/moped/session.rb
|
68
|
+
- lib/moped/threaded.rb
|
69
|
+
- lib/moped/version.rb
|
70
|
+
- lib/moped.rb
|
71
71
|
- CHANGELOG.md
|
72
72
|
- LICENSE
|
73
73
|
- README.md
|
74
74
|
homepage: http://mongoid.org/moped
|
75
75
|
licenses: []
|
76
|
-
post_install_message:
|
76
|
+
post_install_message:
|
77
77
|
rdoc_options: []
|
78
78
|
require_paths:
|
79
79
|
- lib
|
80
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
81
82
|
requirements:
|
82
83
|
- - ! '>='
|
83
84
|
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
84
86
|
segments:
|
85
87
|
- 0
|
86
|
-
|
87
|
-
hash: 2
|
88
|
-
none: false
|
88
|
+
hash: -2442945706161969530
|
89
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
90
91
|
requirements:
|
91
92
|
- - ! '>='
|
92
93
|
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
93
95
|
segments:
|
94
96
|
- 0
|
95
|
-
|
96
|
-
hash: 2
|
97
|
-
none: false
|
97
|
+
hash: -2442945706161969530
|
98
98
|
requirements: []
|
99
|
-
rubyforge_project:
|
99
|
+
rubyforge_project:
|
100
100
|
rubygems_version: 1.8.24
|
101
|
-
signing_key:
|
101
|
+
signing_key:
|
102
102
|
specification_version: 3
|
103
103
|
summary: A MongoDB driver for Ruby.
|
104
104
|
test_files: []
|
105
|
-
|
105
|
+
has_rdoc:
|