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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2117b207c07eace01e3bc67e81426370a195033
4
- data.tar.gz: 588666bab9cbb710062f755d1d1e796aa98b3d4d
3
+ metadata.gz: 214f43246e4c256b89bf8cb8349226aa3003560c
4
+ data.tar.gz: d4e9bac2dcedc60aac54120284e9bcc9c68ca2fc
5
5
  SHA512:
6
- metadata.gz: 1d222c2dd003f998cff59152496d70c89e63317e0d4b31af1b605658513b78dbcf789578d399b6666cdcb547f0cfc4dcb2bc3aafb0224eccc10f9e093dbba5f9
7
- data.tar.gz: 3b296f6012888f7ee61e52d76adaac38d6521350c682bece5943f5844599777f8f1d2e6e714bb8d0d8dee422954963ea0a013f7b444e6d32adb44395e46e9262
6
+ metadata.gz: 37c95d22ac06e9f84b9086b7ccbf8970208b91919683aaa38ead8b51a3b5ae3271325e958032df7dfd31fc8868789d3cd4af11ffa0d6a3db4bed1a37562b3050
7
+ data.tar.gz: c593b768b9e5df202916949c8b8279dd14372d16274678fd50baa3215dd97bf5bf5aca1bba5fa65f0be83787ddf8bebef253d198a19866c171ca161b2699227e
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RRepo
2
- VERSION = '0.2.9'.freeze
2
+ VERSION = '0.2.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrepo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Reinert