rrepo 0.2.2 → 0.2.3

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: 690bbb86e5cd0139e860c576eb34777247801b3a
4
- data.tar.gz: 3125867972c8c75cb44c2a567415eda1b1033389
3
+ metadata.gz: f82d84ed033da62536e602963ea78321e7087bd5
4
+ data.tar.gz: 6c9a17878b1da2007249ebfabb5894f659561dd7
5
5
  SHA512:
6
- metadata.gz: 7bef670ade1b2d25bcee6bff84d6c68fab10b2ebd1c00fb0e07b75446cae0ce1dff9b8a434f8969f31e536dcfaf3ec9bb17f5371a5a4d3ea682435464ada2c22
7
- data.tar.gz: b1a52c43cc1d4e9a25a80ad26f0533b8ebd3e23cffafbbe34b2db2bea3017e390cce5e89b18a404f9c44948ab61527599246cc2925ca0868afe2c0e24b66d41a
6
+ metadata.gz: 06b202f59e60d7f4ebd3c1e4c12c173f13ed9b18526a6d73097311a48f76afbe68076d44419b3d539fc610986380b6c17f3b8b74145260b27f6d1aa4d97fd9a9
7
+ data.tar.gz: 73735bb450619fdbe3d02edc9a51ce9966bafa954d5742a13e212fe1c244007645dd0683cfa81fd9fb248ccbaeb8a44467f2786928eb275175f42bdc0ee3b76d
@@ -17,12 +17,11 @@ module RRepo
17
17
 
18
18
  def update(collection, model)
19
19
  hash = model.to_hash
20
- @db[collection.to_s].update(id_query(hash.delete(:_id)), hash)
20
+ @db[collection.to_s].update(id_query(model._id), hash)
21
21
  end
22
22
 
23
23
  def delete(collection, model)
24
- id = model.to_hash[:_id]
25
- @db[collection.to_s].remove(id_query(id))
24
+ @db[collection.to_s].remove(id_query(model._id))
26
25
  end
27
26
 
28
27
  def all(collection)
data/lib/rrepo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RRepo
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrepo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Reinert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-03-22 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler