moped 1.1.3 → 1.1.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.
@@ -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)
@@ -3,7 +3,7 @@ module Moped
3
3
  class Timestamp < Struct.new(:seconds, :increment)
4
4
  class << self
5
5
  def __bson_load__(io)
6
- new(*io.read(8).unpack('l2'))
6
+ new(*io.read(8).unpack('l2').reverse)
7
7
  end
8
8
  end
9
9
 
@@ -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
- } and first
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.
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Moped
3
- VERSION = "1.1.3"
3
+ VERSION = "1.1.4"
4
4
  end
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.3
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-20 00:00:00.000000000 Z
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: 4548716776625928502
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: 4548716776625928502
97
+ hash: -4318298260088068040
98
98
  requirements: []
99
99
  rubyforge_project:
100
100
  rubygems_version: 1.8.24