contact_sync 1.4.1 → 1.4.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: f9cfe548346bce79f1501dda84697e97799804cc
4
- data.tar.gz: eb5e9441b73c85ec6ac68bfec0a37879df96288b
3
+ metadata.gz: 2d6c0a287d80841dd4a490134ea33c84a37f86a2
4
+ data.tar.gz: d1138accdeec6c7335e683e38ca52ec0feb41610
5
5
  SHA512:
6
- metadata.gz: 82ee65bd87b6afc8172c5cb53a2a70d88cab5672a063ab7a0b42e923fecb1858d98f485ec93eed6c003f38033343a2899a9a78c7415aecee92b592afc69a4906
7
- data.tar.gz: 37e2447fbdec42a67db79eb73710a323c50dbcf85701c48b928fdd8108dca6b94b0b82f11072d9547089f0ac62f60f88c7e4ae4f2542dc942e2c44ffc67c8185
6
+ metadata.gz: 797c299a4a8f1ca747821e83e21b0100fce5a0ef0e6851ebe7448e2a10df1f2417ee65ee4c5fa618111118a9e22556d8849f88ef5eae20fed5cacb7cae795e8e
7
+ data.tar.gz: 305581805f30b1b8db6e795983951be61fa825b2f1ca400ad371c77ededeb1d945a6e548eee2d3864de3ac6796f00ce4b15fd694d5032144b537af0543bf33ff
@@ -14,6 +14,9 @@ module ContactSync
14
14
  end
15
15
  if string[0] == "+"
16
16
  breakdown = GlobalPhone.parse(string)
17
+ if breakdown.nil?
18
+ return ["", string]
19
+ end
17
20
  prefix = breakdown.country_code
18
21
  num = breakdown.national_string
19
22
  return [prefix,num]
@@ -1,3 +1,3 @@
1
1
  module ContactSync
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.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.4.1
4
+ version: 1.4.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: 2015-05-29 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails