contact_sync 1.2.0 → 1.2.1

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: be45d26ae9c5af1595e938e66164a3b35e47ee9f
4
- data.tar.gz: 0ff03beb8c8a26f236be59fdf293a20061a913b3
3
+ metadata.gz: 3d0781f453be7d54f3779c149d146a8a879c1e98
4
+ data.tar.gz: b4239cab5b7cae346308696aaec17cc7a40651c9
5
5
  SHA512:
6
- metadata.gz: f5835c45cbec2d54e72789ae0cc3fa7be12d4f8c5223425dc669467eaeef0343b45165098e29933717f3139adf8bb46cb59a9a2d513f3933369f24ac5f2c80b0
7
- data.tar.gz: bde6d6b7a816bccf2aedbd79e718907e0e35b00a9a0dab8327c9d1a1bb51bb6a2059b26877228f77243e976a13820f6e6c605bf130a0363a5324698e4eb6f0da
6
+ metadata.gz: dd436dc6f4dd4ae9e6aff18c4da45446ef75b944c6f6732f262fc3bf74cc03501ce1ce43976681b26cd1756f434626ba8b6069e0a5cf6f57daf3d0242cd0934c
7
+ data.tar.gz: fd2c45e3b28ccfcb816aa6105ede29021339f58dd85e4d7b11de32e60ca53a0abe1f91ce57994cf97faf3e5f023d3af3076bbe0bada0f2e7d368c62fca6145ec
@@ -107,7 +107,7 @@ module ContactSync
107
107
  end
108
108
  other_contacts << aKon if !matches
109
109
  end
110
- return matched_contacts
110
+ return matched_users
111
111
  end
112
112
 
113
113
  # def matched_contacts
@@ -1,3 +1,3 @@
1
1
  module ContactSync
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -6,6 +6,14 @@ class Phone < ActiveRecord::Base
6
6
  return self.encrypted_number.try(:decrypt,:symmetric) || ""
7
7
  end
8
8
 
9
+ def complete_phone_number
10
+ if self.cc_prefix.blank?
11
+ "0#{self.number}"
12
+ else
13
+ "+#{self.cc_prefix}#{self.number}"
14
+ end
15
+ end
16
+
9
17
  def number=(string)
10
18
  self.cc_prefix, num = string.extract_country_code
11
19
  self.encrypted_number = num.encrypt(:symmetric)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saad Masood