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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d899b7238e4730c3c4dc1c8363e25cc7056e1519
4
- data.tar.gz: dd00c40bf2d45b68d5795c6531b5dc5ce68b45a9
3
+ metadata.gz: 4bd3d4fe4bd6bb4fd6d3f95ead56b7ee56c09384
4
+ data.tar.gz: 0cbce54564b5d80bfbbecaad5b4c8b41af01f8f7
5
5
  SHA512:
6
- metadata.gz: 6e60482959cc85b8bde5b75c2f422bb822a9ac9a3a147eb185ef454e5a28f6ec18343210c9c813d7e949c894b390966421b0172be07224030a48f3582ac17768
7
- data.tar.gz: 2bde5d6738291e1809003f78972fab5a2134f0601c684f005e0420f213617622f0c87019b972acde44d40e8a8c46dc38872844cc74ce6638f472038789603fc3
6
+ metadata.gz: 8c82e47adaeb7873b62781186247d280be98f58b7a44c0004f885b2212d8bd780ca08fa391c38283caca9832551251f4a5f9e3f8f38a20ebeca5fa11fad95008
7
+ data.tar.gz: 887053503f8411dd16ad026aadba4f912c68e93e25f71374ab7e157ed9f98e15045cbfb14ca7f0000ae3ce69e2e8d4a04e614b5f0e04e1fddb39da2fa739766b
@@ -476,7 +476,9 @@ Phony.define do
476
476
  /\A6\d+\z/ => [3,3,3] # satellite
477
477
  )
478
478
 
479
- country '262', fixed(3) >> split(3, 3) # Reunion / Mayotte (new) http://www.wtng.info/wtng-262-fr.html
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', fixed(3) >> split(3,3)
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', fixed(3) >> split(3, 3)
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 '590123456789', %w(590 123 456 789)
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 '596596123456', %w(596 596 123 456)
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 '262594399265', ['262', '594', '399', '265']
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']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.9
4
+ version: 2.14.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke