phony 3.0.0 → 3.0.1
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 +4 -4
- data/lib/phony/countries.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5491894cacb9480a995f6019cee2bc68b3d3e02b8e18f5263e014478b2877e4
|
|
4
|
+
data.tar.gz: 11c7378a92034ac69617aaa0dd5e0ce2a4da0b1cc29b5ae88a7ee471a8e3c546
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7be10b412c69bb4e034b2fdba3968c25191205d89a6c861468169f799d0a28e5d555a1c5a2a3f8a96b957ab0ac5c625c826001f048b6b4055f5da63872329b46
|
|
7
|
+
data.tar.gz: '0619a41caaaeb7d1a72d1688811355bcc6343fdac0c5e54d19fec4e2d90049eb0a73ed04eec0c432f74940ac5c7ba765a7adb7f9d893588b0cdc73d3ec9f7a74'
|
data/lib/phony/countries.rb
CHANGED
|
@@ -101,7 +101,7 @@ Phony.define do
|
|
|
101
101
|
match(/^(800|90\d)\d+$/) >> split(2, 3) | # Toll free service and premium numbers
|
|
102
102
|
match(/^(46[056789])\d{6}$/) >> split(2, 2, 2) | # Mobile (Lycamobile, Telenet, Join Experience, Proximus 0460)
|
|
103
103
|
match(/^(4[789]\d)\d{6}$/) >> split(2, 2, 2) | # Mobile
|
|
104
|
-
match(/^(45[156])\d{6}$/)
|
|
104
|
+
match(/^(45[156])\d{6}$/) >> split(2, 2, 2) | # Mobile Vikings, Digi and Voo
|
|
105
105
|
one_of('2', '3', '4', '9') >> split(3, 2, 2) | # Short NDCs
|
|
106
106
|
fixed(2) >> split(2, 2, 2) # 2-digit NDCs
|
|
107
107
|
|
|
@@ -251,7 +251,7 @@ Phony.define do
|
|
|
251
251
|
match(/^(13)\d+$/) >> split(2, 2) | # 13 local rate
|
|
252
252
|
fixed(1) >> split(4, 4) # Rest
|
|
253
253
|
|
|
254
|
-
|
|
254
|
+
# country '62' # Indonesia (Republic of), see special file
|
|
255
255
|
|
|
256
256
|
# Philippines (Republic of the)
|
|
257
257
|
# https://www.numberingplans.com/?page=plans&sub=phonenr&alpha_2_input=PH
|
|
@@ -279,7 +279,9 @@ Phony.define do
|
|
|
279
279
|
|
|
280
280
|
# Singapore (Republic of).
|
|
281
281
|
#
|
|
282
|
+
# There is no trunk code for this country and some numbers start with 0.
|
|
282
283
|
country '65',
|
|
284
|
+
trunk('', normalize: false) |
|
|
283
285
|
none >> matched_split(
|
|
284
286
|
/^(800)\d{7}$/ => [3, 3, 4], # International Toll Free Service (ITFS) and Home Country Direct Service (HCDS) Numbers
|
|
285
287
|
/^\d{8}$/ => [4, 4] # TODO: Short Codes
|
|
@@ -375,7 +377,7 @@ Phony.define do
|
|
|
375
377
|
|
|
376
378
|
# Benin http://www.itu.int/oth/T0202000017/en
|
|
377
379
|
#
|
|
378
|
-
# There is no trunk code for this country and prefixes start with 0
|
|
380
|
+
# There is no trunk code for this country and prefixes start with 0.
|
|
379
381
|
country '229',
|
|
380
382
|
trunk('', normalize: false) |
|
|
381
383
|
none >> matched_split(
|