phony 2.18.20 → 2.18.21

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4aa121c2347d97ea4409201b0aa8ef7d25e6a614f2dcdcd311775a55e825fd26
4
- data.tar.gz: 180d24ec2a82f11072dbd03eba8659cbf5ab32d6d1a9867132fe16ac5c93c204
3
+ metadata.gz: e2b9c50bfb64f0a6eb3e0f191645e5f31de7c33b91034fde8620aa93881dd90a
4
+ data.tar.gz: e0d17bcc147253b71f24d713c26b942587df86f002c24e85e1164ff72461db4f
5
5
  SHA512:
6
- metadata.gz: 8c768ad38bc9fbb7a715de4317f0857a8ee62ca00c728a25968fbe6adbe96da09923523e9f34244af24655e02c6a09b9cfc1e13ae52ec3c304a589599fe3a2cc
7
- data.tar.gz: 0644f348c82d5b1994dbbace37c4045b9c7d917ced71a3fbe99ef7706e7dad9c1831dc7641fdb07e6a4e77d2a8fa04d203d3dd0adfcae4155eb4968bab59a1d8
6
+ metadata.gz: b05a78e8c484e48b7656489b0d1388c990aadbd2634f30e7283ae98cb4bb96d9aa8466eb9bf98ca1a3845b4fa7f450d4ea115d63d4d0b5b24c8c5cb448003c1b
7
+ data.tar.gz: 48bad87202e0c1424bc6ea2458f9042de35a74b03d536c3a0267027dc742a9178632e44c14a1ce4b51956cd005a625ea722008af2f308e01c648b35b5ef36b74
@@ -24,6 +24,7 @@ Phony.define do
24
24
  one_of(%w(72)) >> split(3,3) | # ISP
25
25
  one_of(%w(60 61 68 69)) >> matched_split(
26
26
  /\A\d{3}\z/ => [3],
27
+ /\A\d{6}\z/ => [3,3],
27
28
  /\A\d{7}\z/ => [3,4],
28
29
  /\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
29
30
  one_of(%w(66 63)) >> matched_split(
@@ -43,4 +44,4 @@ Phony.define do
43
44
  fixed(2) >> matched_split(
44
45
  /\A\d{5}\z/ => [3,2],
45
46
  /\A\d+\z/ => [3,3])
46
- end
47
+ end
@@ -427,7 +427,7 @@ describe 'plausibility' do
427
427
  ['+381 11 123 456', '+381 11 123 4567'],
428
428
  '+381 72 123 456',
429
429
  '+381 60 123',
430
- '+381 60 123 4567',
430
+ ['+381 60 123 4567', '+381 69 123 456'],
431
431
  '+381 42 123 456',
432
432
  '+381 677 123 456',
433
433
  '+381 678 123 456',
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.18.20
4
+ version: 2.18.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-23 00:00:00.000000000 Z
11
+ date: 2021-03-29 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