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 +4 -4
- data/lib/rrepo/adapters/mongo.rb +2 -3
- data/lib/rrepo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f82d84ed033da62536e602963ea78321e7087bd5
|
4
|
+
data.tar.gz: 6c9a17878b1da2007249ebfabb5894f659561dd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06b202f59e60d7f4ebd3c1e4c12c173f13ed9b18526a6d73097311a48f76afbe68076d44419b3d539fc610986380b6c17f3b8b74145260b27f6d1aa4d97fd9a9
|
7
|
+
data.tar.gz: 73735bb450619fdbe3d02edc9a51ce9966bafa954d5742a13e212fe1c244007645dd0683cfa81fd9fb248ccbaeb8a44467f2786928eb275175f42bdc0ee3b76d
|
data/lib/rrepo/adapters/mongo.rb
CHANGED
@@ -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(
|
20
|
+
@db[collection.to_s].update(id_query(model._id), hash)
|
21
21
|
end
|
22
22
|
|
23
23
|
def delete(collection, model)
|
24
|
-
|
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
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.
|
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-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|