mongoo 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mongoo/identity_map.rb +1 -0
- data/lib/mongoo/persistence.rb +2 -1
- data/mongoo.gemspec +3 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/lib/mongoo/identity_map.rb
CHANGED
data/lib/mongoo/persistence.rb
CHANGED
@@ -67,7 +67,8 @@ module Mongoo
|
|
67
67
|
|
68
68
|
def find_one(query={}, opts={})
|
69
69
|
id_map_on = Mongoo::IdentityMap.on?
|
70
|
-
is_simple_query =
|
70
|
+
is_simple_query = nil
|
71
|
+
is_simple_query = Mongoo::IdentityMap.simple_query?(query, opts) if id_map_on
|
71
72
|
|
72
73
|
if id_map_on && is_simple_query
|
73
74
|
if doc = Mongoo::IdentityMap.read(query)
|
data/mongoo.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mongoo}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ben Myles"]
|
@@ -40,6 +40,7 @@ Gem::Specification.new do |s|
|
|
40
40
|
"mongoo.gemspec",
|
41
41
|
"test/helper.rb",
|
42
42
|
"test/test_activemodel.rb",
|
43
|
+
"test/test_async.rb",
|
43
44
|
"test/test_identity_map.rb",
|
44
45
|
"test/test_mongohash.rb",
|
45
46
|
"test/test_mongoo.rb"
|
@@ -47,7 +48,7 @@ Gem::Specification.new do |s|
|
|
47
48
|
s.homepage = %q{http://github.com/benmyles/mongoo}
|
48
49
|
s.licenses = ["MIT"]
|
49
50
|
s.require_paths = ["lib"]
|
50
|
-
s.rubygems_version = %q{1.6.
|
51
|
+
s.rubygems_version = %q{1.6.2}
|
51
52
|
s.summary = %q{Object mapper for MongoDB}
|
52
53
|
s.test_files = [
|
53
54
|
"test/helper.rb",
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mongoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ben Myles
|
@@ -145,10 +145,10 @@ files:
|
|
145
145
|
- mongoo.gemspec
|
146
146
|
- test/helper.rb
|
147
147
|
- test/test_activemodel.rb
|
148
|
+
- test/test_async.rb
|
148
149
|
- test/test_identity_map.rb
|
149
150
|
- test/test_mongohash.rb
|
150
151
|
- test/test_mongoo.rb
|
151
|
-
- test/test_async.rb
|
152
152
|
has_rdoc: true
|
153
153
|
homepage: http://github.com/benmyles/mongoo
|
154
154
|
licenses:
|
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
hash: -
|
166
|
+
hash: -2296487200507282446
|
167
167
|
segments:
|
168
168
|
- 0
|
169
169
|
version: "0"
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements: []
|
177
177
|
|
178
178
|
rubyforge_project:
|
179
|
-
rubygems_version: 1.6.
|
179
|
+
rubygems_version: 1.6.2
|
180
180
|
signing_key:
|
181
181
|
specification_version: 3
|
182
182
|
summary: Object mapper for MongoDB
|