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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 387f3b7febb5ba5e7a78e41920b667a1a0d89aa7
4
- data.tar.gz: 877992cc5047c07398078360b43b519ef5d71988
3
+ metadata.gz: d7e48a218d34f8152ff00c66e9d397df6a00c001
4
+ data.tar.gz: 6d30ca8269380c5679c4dcdfa1115ba294dd0944
5
5
  SHA512:
6
- metadata.gz: ac251fed601ce9b6f9ad8ce5571f15851778e8a19d0b9abbc9b6a867d1f7ecff27cd3d98a74ef749116e2ca49edb9b44b313ff6e0addcb0c4c70b698776978b6
7
- data.tar.gz: 84e87516482f0c8933c5aea790e685c8758a7dafe3ac2f7fd30ba7f98a34a2467a787d56ef698058fe7f0c9de5766e920a0700eecd1030196dafdea681e6f126
6
+ metadata.gz: 0d0ba8d555242de5208799a1f7d9edc2e51c3ee032b64425dee62efcafe04409ce483ea8e08134246981d0c375dbf6324364d0c80aafbd2d4791cb3fad8afeee
7
+ data.tar.gz: 4d66272ecfe02fae948794c41cb9ac4f9b6f88c8753ef593c8154dbe6723776e0d9714acdd978031fa301607b4ef945fd8645baacc9789790858f2017b3201bd
data/README.rdoc CHANGED
@@ -1,3 +1,9 @@
1
1
  = ContactSync
2
2
 
3
- This project rocks and uses MIT-LICENSE.
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
 
@@ -1,3 +1,3 @@
1
1
  module ContactSync
2
- VERSION = "0.4.8"
2
+ VERSION = "0.4.9"
3
3
  end
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.8
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/contacts_sync
169
+ homepage: http://github.com/itsSaad/contact_sync
156
170
  licenses:
157
171
  - MIT
158
172
  metadata: {}