phony 2.16.11 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/phony/country.rb +4 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12a40a0fe9dcbc578b3f99963bef86135596894d1145cfe3582ddb088ca918f1
4
- data.tar.gz: 58959c59c7641ed3ab70f0586bb64100bd599d2e2e0dce4c4bf46522d0231ba8
3
+ metadata.gz: 719cbc1250612306ada5780c84781e64894b4ff8ff7c3681242a53237d1fee8c
4
+ data.tar.gz: 6ffdf26bf946e357021bcac364f4dad7f68871a01ee887a81e9783051671b3a4
5
5
  SHA512:
6
- metadata.gz: cef3550f87ea1c9b33e80358389b435c52a765445035d9f61a9c7ceee3c44e921a14505e34a88eb13fcc61b9378a104179512cf1024252bcc0510fce778a843c
7
- data.tar.gz: 01a79012341a7758151d66b80877cc2dc865a1bafb605b897d2667a8dadbf3ed44fe7e00d04ef437b86abbd42a63231490b5e4d346592c8d7e4cc735ab544d60
6
+ metadata.gz: f45108af8f560d29fbf657b7635614ab852116eb14e51117ad2338c0cacb66c28634235008adce46b26e6d9094e457ee7a2087e24c6869d0e17fbfd00e0a546e
7
+ data.tar.gz: 2d6d7b7ba0faf7f1e9a323e6d39a6e4b8f0c674b42686d17deaa865d7f3bc44cc5ddc4580bbc7fae15f2b0649512fa14325630f6b8f6abe98cf125fa7e6c3005
@@ -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.16.11
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-15 00:00:00.000000000 Z
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