phony 2.19.4 → 2.19.5

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: fe07b2679b93f5f47130983d691b0c9cba7d99bc9cb83e68c62055dfc21b0c4d
4
- data.tar.gz: cacc529ee97eb80c8538912869e836035c6c2458f464a99b23b97d13c791cd87
3
+ metadata.gz: 992055cdb02a340ea072dfd5909e05fb5cab8bd2c223764539527a1b13635404
4
+ data.tar.gz: 2357031c39a1a1345fb84ef4800115f867c815627a018dc029660165f3f2c04c
5
5
  SHA512:
6
- metadata.gz: effe3a2aa50125a4ecbabcb805dcb80c49f5b394ca5c8d443ea58eae124964e34bfa90309187dc91e934fb7df472d4884e036034c1a4d98387510ad81483892d
7
- data.tar.gz: 364893e401aaad1bbbc0bd3e5466e78dd3eb94b3e2780a98c781109643818c7ce89eacc9cece8925e72029ec07cf22a9dae496b260e9c7e3f88bf39993f0a588
6
+ metadata.gz: 7a4c94d5e5af075704d1a4651160f98f00346a8885f4bb9a38b9d47bdec0749bb2c3b3442d3ece7e5fe9aa624e93ad21c26f780114c8e06a89de04ca2dd662dd
7
+ data.tar.gz: 38f16122cad2ee8b1ecdc909c12c3383d6a69072d5ddcbdfca49a88420df60d0e8874bb69f74b9da2804631951145625a4b843214ce925bdbc3a5b0e72d86426
@@ -993,7 +993,10 @@ Phony.define do
993
993
  country '698', todo # -
994
994
  country '699', todo # -
995
995
 
996
- country '800', todo # International Freephone Service
996
+ # International Freephone Service
997
+ # https://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx
998
+ country '800', none >> split(8)
999
+
997
1000
  country '801', todo # -
998
1001
  country '802', todo # -
999
1002
  country '803', todo # -
@@ -1001,7 +1004,7 @@ Phony.define do
1001
1004
  country '805', todo # -
1002
1005
  country '806', todo # -
1003
1006
  country '807', todo # -
1004
- country '808', todo # International Shared Cost Service (ISCS)
1007
+ country '808', none >> split(12) # International Shared Cost Service (ISCS)
1005
1008
  country '809', todo # -
1006
1009
 
1007
1010
  country '830', todo # -
@@ -1429,6 +1429,14 @@ describe 'country descriptions' do
1429
1429
  it_splits number, ['263', prefix, '234', '5678']
1430
1430
  end
1431
1431
  end
1432
+
1433
+ describe 'Universal International Freephone' do
1434
+ it_splits '80012345678', ['800', false, '12345678']
1435
+ end
1436
+
1437
+ describe 'Shared-Cost Service' do
1438
+ it_splits '80812345678', ['808', false, '12345678']
1439
+ end
1432
1440
  end
1433
1441
 
1434
1442
  end
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.19.4
4
+ version: 2.19.5
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-08-26 00:00:00.000000000 Z
11
+ date: 2021-09-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