Package not found. Please check the package name and try again.
moped 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +9 -0
- data/lib/moped/connection.rb +1 -1
- data/lib/moped/version.rb +1 -1
- metadata +37 -37
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
### New Features
|
|
6
6
|
|
|
7
|
+
## 1.2.3
|
|
8
|
+
|
|
9
|
+
### Resolved Issues
|
|
10
|
+
|
|
11
|
+
* Sockets now set TCP `SO_LINGER` option to false to ensure connections that are no
|
|
12
|
+
longer used get closed.
|
|
13
|
+
|
|
14
|
+
* \#75 Ensure that `Errno::EHOSTUNREACH` is also handled with other socket errors.
|
|
15
|
+
|
|
7
16
|
## 1.2.2
|
|
8
17
|
|
|
9
18
|
### Resolved Issues
|
data/lib/moped/connection.rb
CHANGED
|
@@ -235,7 +235,7 @@ module Moped
|
|
|
235
235
|
yield
|
|
236
236
|
rescue Timeout::Error
|
|
237
237
|
raise Errors::ConnectionFailure, "Timed out connection to Mongo on #{host}:#{port}"
|
|
238
|
-
rescue Errno::ECONNREFUSED
|
|
238
|
+
rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH
|
|
239
239
|
raise Errors::ConnectionFailure, "Could not connect to Mongo on #{host}:#{port}"
|
|
240
240
|
rescue Errno::ECONNRESET
|
|
241
241
|
raise Errors::ConnectionFailure, "Connection reset to Mongo on #{host}:#{port}"
|
data/lib/moped/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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.4
|
|
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
|
-
date: 2012-09-
|
|
12
|
+
date: 2012-09-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: A MongoDB driver for Ruby.
|
|
15
15
|
email:
|
|
@@ -18,9 +18,31 @@ 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
|
|
21
37
|
- lib/moped/bson/binary.rb
|
|
22
38
|
- lib/moped/bson/code.rb
|
|
23
39
|
- 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
|
|
24
46
|
- lib/moped/bson/extensions/array.rb
|
|
25
47
|
- lib/moped/bson/extensions/boolean.rb
|
|
26
48
|
- lib/moped/bson/extensions/false_class.rb
|
|
@@ -34,24 +56,7 @@ files:
|
|
|
34
56
|
- lib/moped/bson/extensions/symbol.rb
|
|
35
57
|
- lib/moped/bson/extensions/time.rb
|
|
36
58
|
- 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
|
|
53
59
|
- lib/moped/protocol/command.rb
|
|
54
|
-
- lib/moped/protocol/commands/authenticate.rb
|
|
55
60
|
- lib/moped/protocol/commands.rb
|
|
56
61
|
- lib/moped/protocol/delete.rb
|
|
57
62
|
- lib/moped/protocol/get_more.rb
|
|
@@ -61,45 +66,40 @@ files:
|
|
|
61
66
|
- lib/moped/protocol/query.rb
|
|
62
67
|
- lib/moped/protocol/reply.rb
|
|
63
68
|
- lib/moped/protocol/update.rb
|
|
64
|
-
- lib/moped/protocol.rb
|
|
65
|
-
- lib/moped/query.rb
|
|
69
|
+
- lib/moped/protocol/commands/authenticate.rb
|
|
66
70
|
- 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
|
|
82
81
|
requirements:
|
|
83
82
|
- - ! '>='
|
|
84
83
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: '0'
|
|
86
84
|
segments:
|
|
87
85
|
- 0
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
version: '0'
|
|
87
|
+
hash: 2
|
|
90
88
|
none: false
|
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
90
|
requirements:
|
|
92
91
|
- - ! '>='
|
|
93
92
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: '0'
|
|
95
93
|
segments:
|
|
96
94
|
- 0
|
|
97
|
-
|
|
95
|
+
version: '0'
|
|
96
|
+
hash: 2
|
|
97
|
+
none: false
|
|
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
|
+
...
|