moped 1.4.0 → 1.4.1
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.
Potentially problematic release.
This version of moped might be problematic. Click here for more details.
- data/CHANGELOG.md +21 -10
- data/lib/moped/node.rb +1 -1
- data/lib/moped/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
# Overview
|
2
2
|
|
3
|
+
## 1.4.1
|
4
|
+
|
5
|
+
### Resolved Issues
|
6
|
+
|
7
|
+
* \#148 Fixed invalid parameters passed when raising a `ReplicaSetReconfigured`
|
8
|
+
exception.
|
9
|
+
|
3
10
|
## 1.4.0
|
4
11
|
|
12
|
+
### New Features
|
13
|
+
|
5
14
|
* \#144 Moped now supports $maxScan options in queries. (Jonathan Hyman)
|
6
15
|
|
7
16
|
session[:bands].find(name: "Blur").max_scan(50)
|
@@ -18,27 +27,29 @@
|
|
18
27
|
|
19
28
|
* \#138 Aggregation pipeline now supports array or splat args. (Gosha Arinich)
|
20
29
|
|
21
|
-
* \#137 `IOError` exceptions during connection go through reconnect
|
22
|
-
process properly. (Peter Kieltyka)
|
23
|
-
|
24
|
-
* \#120 Return UTF-8 strings when calling `ObjectId#to_s`.
|
25
|
-
|
26
30
|
* \#41 `Moped::BSON::ObjectId.from_time` now accepts a `unique` option to
|
27
31
|
ensure the generated id is unique.
|
28
32
|
|
29
33
|
Moped::BSON::ObjectId.from_time(time, unique: true)
|
30
34
|
|
35
|
+
* mongoid/mongoid\#2452 A boolean can now be passed to count to determine
|
36
|
+
if the skip and limit options should be included in the value.
|
37
|
+
|
38
|
+
session[:bands].find(name: "Blur").skip(10).limit(5).count(true)
|
39
|
+
|
40
|
+
### Resolved Issues
|
41
|
+
|
42
|
+
* \#137 `IOError` exceptions during connection go through reconnect
|
43
|
+
process properly. (Peter Kieltyka)
|
44
|
+
|
45
|
+
* \#120 Return UTF-8 strings when calling `ObjectId#to_s`.
|
46
|
+
|
31
47
|
* mongoid/mongoid\#2738 Ensure that delete operations don't include
|
32
48
|
special selectors, like $query.
|
33
49
|
|
34
50
|
* mongoid/mongoid\#2713 Allow collections that have names that start with
|
35
51
|
"system" to be returned by `Database#collection_names`.
|
36
52
|
|
37
|
-
* mongoid/mongoid\#2452 A boolean can now be passed to count to determine
|
38
|
-
if the skip and limit options should be included in the value.
|
39
|
-
|
40
|
-
session[:bands].find(name: "Blur").skip(10).limit(5).count(true)
|
41
|
-
|
42
53
|
## 1.3.2
|
43
54
|
|
44
55
|
### Resolved Issues
|
data/lib/moped/node.rb
CHANGED
@@ -129,7 +129,7 @@ module Moped
|
|
129
129
|
yield
|
130
130
|
rescue Errors::PotentialReconfiguration => e
|
131
131
|
if e.reconfiguring_replica_set?
|
132
|
-
raise Errors::ReplicaSetReconfigured
|
132
|
+
raise Errors::ReplicaSetReconfigured.new(e.command, e.details)
|
133
133
|
end
|
134
134
|
raise
|
135
135
|
rescue Errors::DoNotDisconnect
|
data/lib/moped/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A MongoDB driver for Ruby.
|
15
15
|
email:
|
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
segments:
|
91
91
|
- 0
|
92
|
-
hash:
|
92
|
+
hash: -1235237905630076314
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
segments:
|
100
100
|
- 0
|
101
|
-
hash:
|
101
|
+
hash: -1235237905630076314
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
104
|
rubygems_version: 1.8.24
|