phony 2.16.11 → 2.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phony/country.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 719cbc1250612306ada5780c84781e64894b4ff8ff7c3681242a53237d1fee8c
|
4
|
+
data.tar.gz: 6ffdf26bf946e357021bcac364f4dad7f68871a01ee887a81e9783051671b3a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f45108af8f560d29fbf657b7635614ab852116eb14e51117ad2338c0cacb66c28634235008adce46b26e6d9094e457ee7a2087e24c6869d0e17fbfd00e0a546e
|
7
|
+
data.tar.gz: 2d6d7b7ba0faf7f1e9a323e6d39a6e4b8f0c674b42686d17deaa865d7f3bc44cc5ddc4580bbc7fae15f2b0649512fa14325630f6b8f6abe98cf125fa7e6c3005
|
data/lib/phony/country.rb
CHANGED
@@ -185,6 +185,10 @@ module Phony
|
|
185
185
|
#
|
186
186
|
ndc_needed = hints[:ndc]
|
187
187
|
return false if ndc_needed && !(ndc_needed === ndc)
|
188
|
+
|
189
|
+
# If there is no local part, we can assume it's not a plausible number.
|
190
|
+
# (Or, not defined correctly in Phony yet)
|
191
|
+
return false unless local
|
188
192
|
|
189
193
|
# Local code specific checks.
|
190
194
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Hanke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Fast international phone number (E164 standard) normalizing, splitting
|
14
14
|
and formatting. Lots of formatting options: International (+.., 00..), national
|