contact_sync 1.4.3 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contact_sync/syncable.rb +2 -0
- data/lib/contact_sync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b54c4dacf815e463877cca60e761a1aa00adf9c
|
4
|
+
data.tar.gz: 003324d286aaabf009e75b9577336e3adae1e577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b437815a29597fcbbe26251903ec5e6403403e46751439d30af7a98e15f6ffc535c9a1db401318462910c6455cd904124b5fd44e0928a89c08a232e8a65df549
|
7
|
+
data.tar.gz: 44fbe9ae110f6f47e7bc1c7fa8c3355de74bd41d385ac1ce14c41226c71ded99e43b0ff87e3210225cf29067057a70aa906048d58a5d2c7c57f3e61549d840a6
|
@@ -45,9 +45,11 @@ module ContactSync
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
self.contacts << newContact
|
48
|
+
puts "Trying to save Contact: #{newContact}"
|
48
49
|
if newContact.save
|
49
50
|
# result[:new][:success] << newContact.record_id
|
50
51
|
else
|
52
|
+
puts "Failed Saving. Error: #{newContact.errors.full_messages}"
|
51
53
|
result[:new][:failed] << newContact.record_id
|
52
54
|
end
|
53
55
|
rescue ActiveRecord::RecordNotUnique => e
|
data/lib/contact_sync/version.rb
CHANGED