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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35999987c336d195411aff33270e830fbf129104
4
- data.tar.gz: e5d7bf3eaa0e4006162b86df417bdea4f11e0518
3
+ metadata.gz: 96dcd1e4f9f6fa85d764bda674f158db0cc78d78
4
+ data.tar.gz: ffc67a58b285094b57b3d0354e8a5dabfef3679d
5
5
  SHA512:
6
- metadata.gz: 54f56cca889487743ac44c319a3ff67d1dbcbdfbe8c5bdf2381dcbd96de4425711ed1aad68137a40bf871a0eb8897c41ca62ed524df565baa9d04cca849fe128
7
- data.tar.gz: b2dac7862c22a3f1aee4e6befff3234967a67622dc9cc495786c8b74f1c3df8a823510b3efc062378deb33366d5a4e4e98d73f426b55c70494a5cee0c61362ed
6
+ metadata.gz: 6d83fef88ac38f28c929a50df51276959f0d10b2becec690f1aa72339f9a6e718b226b8bf70f12b53b55d22a295da550267dae54b04aeb0c7909cfdc960239ac
7
+ data.tar.gz: 030ed7d5a6c4cbd52112b185ec6ae76e511a048b842bae8dae64ec242a454ee076b3d47a7dc76c9dd11164397a59ceb727a594b7e79a15e830b48ba2d131645c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
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
- if error.message[/^E11000/] && error.message['$_id_']
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.3
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-17 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongo