contact_sync 1.5.1 → 1.5.2

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: ec969cd0e1586e5e838b31f31eee28845109aa41
4
- data.tar.gz: a7b3f9332af025c1f8a4b5a534694982f5b0c071
3
+ metadata.gz: 713c9ed1b940846070c5e300b468e7264d08b5dc
4
+ data.tar.gz: 4893172fa5ef19db761e5c116acebc85113abfe1
5
5
  SHA512:
6
- metadata.gz: 90d155f7fb390efe3ba5af3d25db3e868432fc0ad90e449a9cb91c9709bcf1d68cdb197316f009301fc6477f2716481aaf91dae498c27f523232cc63067fab66
7
- data.tar.gz: 4cc960f381ff7838a38886c8de1f9699bf59802ca1c7becb81f53a2956608fb8fbc77c44861e6b805956943bbf68407c78b58c105adf39030bd52fc9642e732a
6
+ metadata.gz: 57b23396c410daa99e4fd9c3356cb697646f33f0f1d7f76997d94b15fa1524159df2754256fdbf3acceeb838d91ae90a34fb79ca8bbc6ff243c517ab5877ae77
7
+ data.tar.gz: 94fc57a035d268525829c8d6fd7d585c927f3dca945fe38fe36b352bd5f46db2d293e63d78d7f091fdf8893fd7f5203e749d1d152e56f49144b8b5243f100e0d
@@ -91,7 +91,7 @@ module ContactSync
91
91
  if !contact_hash[:deleted].blank?
92
92
  delete_contacts = contact_hash[:deleted]
93
93
  delete_contacts.each do |con|
94
- if self.contacts.find_by_record_id(con[:record_id].to_i).destroy
94
+ if self.contacts.find_by_record_id(con[:record_id].to_i) and self.contacts.find_by_record_id(con[:record_id].to_i).destroy
95
95
  # result[:deleted][:success] << con[:record_id]
96
96
  else
97
97
  result[:deleted][:failed] << con[:record_id]
@@ -1,3 +1,3 @@
1
1
  module ContactSync
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saad Masood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-16 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails