phony 2.18.19 → 2.18.20

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: 191311d0c0169c0df4dd8b25dd66237bb90daf37806631092c4fe73881fade0c
4
- data.tar.gz: f9c030830f9303fead7730266cc3bf08a3a260a1f34db0e81f47105cd9d576e4
3
+ metadata.gz: 4aa121c2347d97ea4409201b0aa8ef7d25e6a614f2dcdcd311775a55e825fd26
4
+ data.tar.gz: 180d24ec2a82f11072dbd03eba8659cbf5ab32d6d1a9867132fe16ac5c93c204
5
5
  SHA512:
6
- metadata.gz: a36bf0ccdbfae65c24d192f6ed89b39a549643028bab3a14309f8ec9473b5c590dc58699dd26a913e530175fe03e2334ce0920bedffc2069a700588a834c8d18
7
- data.tar.gz: 9d715c474e64dc92cf1d8de778f91676d4ab791f147f7a34694783dd64e737e751bf42cab231fd337a608b7527387770c9bca51a9cc992689c56cf8f67755aa0
6
+ metadata.gz: 8c768ad38bc9fbb7a715de4317f0857a8ee62ca00c728a25968fbe6adbe96da09923523e9f34244af24655e02c6a09b9cfc1e13ae52ec3c304a589599fe3a2cc
7
+ data.tar.gz: 0644f348c82d5b1994dbbace37c4045b9c7d917ced71a3fbe99ef7706e7dad9c1831dc7641fdb07e6a4e77d2a8fa04d203d3dd0adfcae4155eb4968bab59a1d8
@@ -8,6 +8,9 @@ Phony.define do
8
8
  trunk('0') |
9
9
  one_of(%w(800)) >> split(3,2) | # freephone
10
10
  one_of(%w(808)) >> split(3,2) | # payphone
11
+ one_of(%w(677 678)) >> matched_split(
12
+ /\A\d{4}\z/ => [3],
13
+ /\A\d+\z/ => [3,3]) |
11
14
  one_of(%w(230)) >> matched_split(
12
15
  /\A\d{4}\z/ => [4],
13
16
  /\A\d+\z/ => [3,2]) |
@@ -429,6 +429,8 @@ describe 'plausibility' do
429
429
  '+381 60 123',
430
430
  '+381 60 123 4567',
431
431
  '+381 42 123 456',
432
+ '+381 677 123 456',
433
+ '+381 678 123 456',
432
434
  '+381 9 123 4567',
433
435
  '+381 60 123',
434
436
  '+381 60 123 456 7890',
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.19
4
+ version: 2.18.20
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-02-05 00:00:00.000000000 Z
11
+ date: 2021-03-23 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