volt-mongo 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/mongo/lib/mongo_adaptor_server.rb +2 -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: 96dcd1e4f9f6fa85d764bda674f158db0cc78d78
|
4
|
+
data.tar.gz: ffc67a58b285094b57b3d0354e8a5dabfef3679d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d83fef88ac38f28c929a50df51276959f0d10b2becec690f1aa72339f9a6e718b226b8bf70f12b53b55d22a295da550267dae54b04aeb0c7909cfdc960239ac
|
7
|
+
data.tar.gz: 030ed7d5a6c4cbd52112b185ec6ae76e511a048b842bae8dae64ec242a454ee076b3d47a7dc76c9dd11164397a59ceb727a594b7e79a15e830b48ba2d131645c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
@@ -57,7 +57,8 @@ module Volt
|
|
57
57
|
db[collection].insert_one(values)
|
58
58
|
rescue => error
|
59
59
|
# Really mongo client?
|
60
|
-
|
60
|
+
msg = error.message
|
61
|
+
if (msg[/^E11000/] || msg[/^insertDocument :: caused by :: 11000 E11000/]) && msg['$_id_']
|
61
62
|
# Update because the id already exists
|
62
63
|
update_values = values.dup
|
63
64
|
id = update_values.delete('_id')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: volt-mongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Stout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongo
|