phony 2.14.9 → 2.14.10
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 +7 -3
- data/spec/lib/phony/countries_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4bd3d4fe4bd6bb4fd6d3f95ead56b7ee56c09384
|
|
4
|
+
data.tar.gz: 0cbce54564b5d80bfbbecaad5b4c8b41af01f8f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c82e47adaeb7873b62781186247d280be98f58b7a44c0004f885b2212d8bd780ca08fa391c38283caca9832551251f4a5f9e3f8f38a20ebeca5fa11fad95008
|
|
7
|
+
data.tar.gz: 887053503f8411dd16ad026aadba4f912c68e93e25f71374ab7e157ed9f98e15045cbfb14ca7f0000ae3ce69e2e8d4a04e614b5f0e04e1fddb39da2fa739766b
|
data/lib/phony/countries.rb
CHANGED
|
@@ -476,7 +476,9 @@ Phony.define do
|
|
|
476
476
|
/\A6\d+\z/ => [3,3,3] # satellite
|
|
477
477
|
)
|
|
478
478
|
|
|
479
|
-
country '262',
|
|
479
|
+
country '262', # Reunion / Mayotte (new) http://www.wtng.info/wtng-262-fr.html
|
|
480
|
+
trunk('0') |
|
|
481
|
+
fixed(3) >> split(2,2,2)
|
|
480
482
|
|
|
481
483
|
# country '263' # Zimbabwe, see special file
|
|
482
484
|
|
|
@@ -769,7 +771,8 @@ Phony.define do
|
|
|
769
771
|
|
|
770
772
|
# Guadeloupe (French Department of) http://www.wtng.info/wtng-590-fr.html
|
|
771
773
|
# https://www.numberingplans.com/?page=dialling&sub=areacodes
|
|
772
|
-
country '590',
|
|
774
|
+
country '590', trunk('0') |
|
|
775
|
+
fixed(3) >> split(2,2,2)
|
|
773
776
|
|
|
774
777
|
country '591', # Bolivia (Republic of) http://www.itu.int/oth/T020200001A/en
|
|
775
778
|
fixed(1) >> split(3,4)
|
|
@@ -787,7 +790,8 @@ Phony.define do
|
|
|
787
790
|
# country '595' # Paraguay (Republic of), see special file
|
|
788
791
|
|
|
789
792
|
# Martinique (French Department of) http://www.wtng.info/wtng-596-mq.html, https://www.numberingplans.com
|
|
790
|
-
country '596',
|
|
793
|
+
country '596', trunk('0') |
|
|
794
|
+
fixed(3) >> split(2,2,2)
|
|
791
795
|
|
|
792
796
|
# Suriname (Republic of) http://www.wtng.info/wtng-597-sr.html, https://www.numberingplans.com
|
|
793
797
|
country '597',
|
|
@@ -797,7 +797,7 @@ describe 'country descriptions' do
|
|
|
797
797
|
it_splits '299691123', ['299', '691', '123']
|
|
798
798
|
end
|
|
799
799
|
describe 'Guadeloupe (French Department of)' do
|
|
800
|
-
it_splits '
|
|
800
|
+
it_splits '590123121212', %w(590 123 12 12 12)
|
|
801
801
|
end
|
|
802
802
|
describe 'Guatemala (Republic of)' do
|
|
803
803
|
it_splits '50219123456789', ['502', '19', '123', '456', '789']
|
|
@@ -897,7 +897,7 @@ describe 'country descriptions' do
|
|
|
897
897
|
it_splits '6924226536', ['692', false, '422', '6536']
|
|
898
898
|
end
|
|
899
899
|
describe 'Martinique (French Department of)' do
|
|
900
|
-
it_splits '
|
|
900
|
+
it_splits '596123123456', %w(596 123 12 34 56)
|
|
901
901
|
end
|
|
902
902
|
describe 'Mauritania' do
|
|
903
903
|
it_splits '22212345678', ['222', false, '1234', '5678']
|
|
@@ -1027,7 +1027,7 @@ describe 'country descriptions' do
|
|
|
1027
1027
|
it_splits '67511512345678', %w(675 115 1234 5678)
|
|
1028
1028
|
end
|
|
1029
1029
|
describe 'Reunion / Mayotte (new)' do
|
|
1030
|
-
it_splits '
|
|
1030
|
+
it_splits '262123121212', ['262', '123', '12', '12', '12']
|
|
1031
1031
|
end
|
|
1032
1032
|
describe 'Saint Helena' do
|
|
1033
1033
|
it_splits '2903614', ['290', false, '3614']
|