rrepo 0.2.10 → 0.2.11

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: 214f43246e4c256b89bf8cb8349226aa3003560c
4
- data.tar.gz: d4e9bac2dcedc60aac54120284e9bcc9c68ca2fc
3
+ metadata.gz: 3616a898d94447ed80145666edd196ca2533418c
4
+ data.tar.gz: 2a75b1567bf103e3b5a1194438be6cc68d668474
5
5
  SHA512:
6
- metadata.gz: 37c95d22ac06e9f84b9086b7ccbf8970208b91919683aaa38ead8b51a3b5ae3271325e958032df7dfd31fc8868789d3cd4af11ffa0d6a3db4bed1a37562b3050
7
- data.tar.gz: c593b768b9e5df202916949c8b8279dd14372d16274678fd50baa3215dd97bf5bf5aca1bba5fa65f0be83787ddf8bebef253d198a19866c171ca161b2699227e
6
+ metadata.gz: aefb621f45c8ece72b827fa63c316a3b3dd596439483c1b3fc02c2221b8e772b10e4658291d7036b0be2864f8187145af049d8626dfa1f1862ded6468339a532
7
+ data.tar.gz: 817fed44ca09437733aab2175bdb4affb399016a70d59e22f54718a16f9f01d4e87d4fcc545ae567f4513d7e18aa18d3483db71b38955dceff4709097ac9b915
@@ -74,7 +74,8 @@ module RRepo
74
74
  protected
75
75
 
76
76
  def id_query(id)
77
- { _id: id }
77
+ object_id = id.is_a?(BSON::ObjectId) ? id : BSON::ObjectId(id)
78
+ { _id: object_id }
78
79
  end
79
80
  end
80
81
  end
@@ -1,3 +1,3 @@
1
1
  module RRepo
2
- VERSION = '0.2.10'.freeze
2
+ VERSION = '0.2.11'.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.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Reinert