rrepo 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rrepo/repository.rb +2 -1
- data/lib/rrepo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 214f43246e4c256b89bf8cb8349226aa3003560c
|
4
|
+
data.tar.gz: d4e9bac2dcedc60aac54120284e9bcc9c68ca2fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c95d22ac06e9f84b9086b7ccbf8970208b91919683aaa38ead8b51a3b5ae3271325e958032df7dfd31fc8868789d3cd4af11ffa0d6a3db4bed1a37562b3050
|
7
|
+
data.tar.gz: c593b768b9e5df202916949c8b8279dd14372d16274678fd50baa3215dd97bf5bf5aca1bba5fa65f0be83787ddf8bebef253d198a19866c171ca161b2699227e
|
data/lib/rrepo/repository.rb
CHANGED
@@ -56,10 +56,11 @@ module RRepo
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def find(id = nil, &block)
|
59
|
+
# TODO: rewrite to make this db agnostic
|
59
60
|
if block_given?
|
60
61
|
result = adapter.query(collection, &block).run.next_document
|
61
62
|
else
|
62
|
-
result = adapter.find(collection, id)
|
63
|
+
result = adapter.find(collection, id).next_document
|
63
64
|
end
|
64
65
|
return if result.blank?
|
65
66
|
model_for(result)
|
data/lib/rrepo/version.rb
CHANGED