contact_sync 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +7 -1
- data/lib/contact_sync/util/string_phone.rb +5 -0
- data/lib/contact_sync/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7e48a218d34f8152ff00c66e9d397df6a00c001
|
4
|
+
data.tar.gz: 6d30ca8269380c5679c4dcdfa1115ba294dd0944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d0ba8d555242de5208799a1f7d9edc2e51c3ee032b64425dee62efcafe04409ce483ea8e08134246981d0c375dbf6324364d0c80aafbd2d4791cb3fad8afeee
|
7
|
+
data.tar.gz: 4d66272ecfe02fae948794c41cb9ac4f9b6f88c8753ef593c8154dbe6723776e0d9714acdd978031fa301607b4ef945fd8645baacc9789790858f2017b3201bd
|
data/README.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
1
|
= ContactSync
|
2
2
|
|
3
|
-
|
3
|
+
{<img src="https://badge.fury.io/rb/contact_sync.svg" alt="Gem Version" />}[http://badge.fury.io/rb/contact_sync]
|
4
|
+
{<img src="https://coveralls.io/repos/itsSaad/contacts_sync/badge.svg" alt="Coverage Status" />}[https://coveralls.io/r/itsSaad/contacts_sync]
|
5
|
+
|
6
|
+
|
7
|
+
= Real ReadMe coming soon.
|
8
|
+
|
9
|
+
This project rocks and uses MIT-LICENSE.
|
@@ -3,6 +3,10 @@ require 'active_support/concern'
|
|
3
3
|
module ContactSync
|
4
4
|
module StringPhone
|
5
5
|
# extend ActiveSupport::Concern
|
6
|
+
def extract_encrypted_string_from_phone
|
7
|
+
return self.extract_country_code.last.encrypt(:symmetric)
|
8
|
+
end
|
9
|
+
|
6
10
|
def extract_country_code
|
7
11
|
string = self
|
8
12
|
if string[0..1] == "00"
|
@@ -21,6 +25,7 @@ module ContactSync
|
|
21
25
|
return ["", string]
|
22
26
|
end
|
23
27
|
end
|
28
|
+
alias_method :format_phone_number, :extract_country_code
|
24
29
|
end
|
25
30
|
end
|
26
31
|
|
data/lib/contact_sync/version.rb
CHANGED
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: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saad Masood
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: Easy Contacts Syncing over API with encrypted contacts email and phone
|
84
98
|
numbers
|
85
99
|
email:
|
@@ -152,7 +166,7 @@ files:
|
|
152
166
|
- test/integration/navigation_test.rb
|
153
167
|
- test/lib/generators/con_sync/install_con_sync_generator_test.rb
|
154
168
|
- test/test_helper.rb
|
155
|
-
homepage: http://github.com/itsSaad/
|
169
|
+
homepage: http://github.com/itsSaad/contact_sync
|
156
170
|
licenses:
|
157
171
|
- MIT
|
158
172
|
metadata: {}
|