phony 2.20.8 → 2.20.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
  SHA256:
3
- metadata.gz: a9beecb3c5ba9d3ca599f0a3284aa82305bb5512d479f0fc55c10467e1e5e3b2
4
- data.tar.gz: b704cd453f22ebd0ca35e838895f706ee662882001c133f1f970d7b8a65338f3
3
+ metadata.gz: 3d74174244f95d313c9addce1e9bdf6977534fb4accc356566f6e4435b183ec6
4
+ data.tar.gz: e694651c6c3293c9b967ada7eb306913114ede441ed99a920f7acae49186f9a2
5
5
  SHA512:
6
- metadata.gz: c611f80164333973c6f3193f8997aaffefb492eb7417dc8a603d7adcfd5183d8c474806e1cd85e521f97078e36adecc3cbb43c50ee8062f40f994400324212aa
7
- data.tar.gz: 2fd3068506fa93bba120e6c62eb49055bad27fee5725dc665c10112d1c8b1a1bbab148347dbda0e3d6d9e60885f4df8df56c173e56966a34544dd36cab5d5021
6
+ metadata.gz: cb0dbf2b5a0e42436c116cb4047dc4848783de6caff1889430b1b3f2b32925ba6eb24428217c1841278ca248f69bb5ec44a8987e6a7beacd29f31147589bd442
7
+ data.tar.gz: 6a586b100039f976fef6f800d5021e6219dbd26c80d22c3945dd588573e65e3f0e64e0e7929b97c87b119b5bc2204386baa9c7fd3b1ebf420830dab247aaa510
@@ -287,6 +287,7 @@ Phony.define do
287
287
  /\A\d{6}\z/ => [4,2],
288
288
  /\A\d{7}\z/ => [4,3],
289
289
  /\A\d{8}\z/ => [4,4],
290
+ /\A\d{9}\z/ => [4,5]
290
291
  ) |
291
292
  one_of(*ndcs_2digit) >> matched_split(
292
293
  /\A\d{4}\z/ => [4],
@@ -636,6 +636,9 @@ describe 'plausibility' do
636
636
 
637
637
  Phony.plausible?('+39 803 08163').should be_falsy
638
638
  Phony.plausible?('+39 803 081').should be_truthy
639
+
640
+ Phony.plausible?('+39 06 8323074181').should be_falsy
641
+ Phony.plausible?('+39 06 832307418').should be_truthy
639
642
  end
640
643
 
641
644
  it 'is correct for Russia' do
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.20.8
4
+ version: 2.20.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-06 00:00:00.000000000 Z
11
+ date: 2023-10-16 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