moped 1.1.3 → 1.1.4
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 +12 -0
- data/lib/moped/bson/timestamp.rb +1 -1
- data/lib/moped/query.rb +3 -2
- data/lib/moped/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Overview
|
2
2
|
|
3
|
+
## 1.1.4
|
4
|
+
|
5
|
+
* \#44 Fixed order of parameters for loading timestamps. (Ralf Kistner)
|
6
|
+
|
7
|
+
* \#40 Fix explain to return correct number of scanned documents and time.
|
8
|
+
|
9
|
+
## 1.1.3
|
10
|
+
|
11
|
+
### Resolved Issues
|
12
|
+
|
13
|
+
* Queries now can be duped/cloned and be initialized properly.
|
14
|
+
|
3
15
|
## 1.1.2
|
4
16
|
|
5
17
|
* \#37 Use `TCP_NODELAY` for socket options. (Nicolas Viennot)
|
data/lib/moped/bson/timestamp.rb
CHANGED
data/lib/moped/query.rb
CHANGED
@@ -92,8 +92,9 @@ module Moped
|
|
92
92
|
operation.selector = {
|
93
93
|
"$query" => selector,
|
94
94
|
"$orderby" => operation.selector.fetch("$orderby", {}),
|
95
|
-
"$explain" => true
|
96
|
-
|
95
|
+
"$explain" => true,
|
96
|
+
"$limit" => operation.selector.fetch("$limit", 1).abs * -1
|
97
|
+
} and each.next
|
97
98
|
end
|
98
99
|
|
99
100
|
# Get the first matching document.
|
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.1.
|
4
|
+
version: 1.1.4
|
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: 2012-07-
|
12
|
+
date: 2012-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A MongoDB driver for Ruby.
|
15
15
|
email:
|
@@ -85,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
segments:
|
87
87
|
- 0
|
88
|
-
hash:
|
88
|
+
hash: -4318298260088068040
|
89
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
90
|
none: false
|
91
91
|
requirements:
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
segments:
|
96
96
|
- 0
|
97
|
-
hash:
|
97
|
+
hash: -4318298260088068040
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
100
|
rubygems_version: 1.8.24
|