phony 2.2.12 → 2.2.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDRjN2I3MjBhNGRkMWIxNzI0YTA0ZjcxZTZjYmIzMTQ1YzIzNGNlNg==
4
+ M2I1OTQyNDFlNDQxNzc1YWQ2OTJlNzk0MzE5ZGQxZDhiOGUwOGM1Yw==
5
5
  data.tar.gz: !binary |-
6
- NTlkNTNjMTc5YzRjYTVlM2RjMGU4ZTdkYmE4NzkyZWZkMmIxZmI2Mg==
6
+ ZjNhNmVlMmQxYWMwNGNmYjg0MTI5MjMxOGViZTM4MjAzMTMzY2RiNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- N2FjNjkxMDQwMzgxZWUzZTBiOGRhYjU5NDJiNGVjZGM1NDg0MWRmZjk0NmY4
10
- YWM1ZTFiYzYyMGNlMzViNDhjODE3ZmJjOTMzNmRlMTdmNDMxYTY5ODI0OTFk
11
- Y2E4ODYyNzUxZWRkNjY4Yjk0NzU5OGVmNDAyZmFjZTIzNjI1MjA=
9
+ NWY1ODk4ZjRlNjI2OGZmNzFmN2U3ODAzNDA5MmE1MThlODc0ZDI0NTdhNTI0
10
+ MTg2NDIxYmVkODg3MmEzNjJlYmU2MjI4Nzc5ODE0YzE5ZTI2N2E5Mjc3MGMy
11
+ OTBhMjRmMThhMDI3NTliMjM2YWM0YmYzZjczOGY4MzFlOGMyZmE=
12
12
  data.tar.gz: !binary |-
13
- MmU5YmIxYzI2YmIzMDIxMWEzYjM4YjZiMjE2Y2JmYTFiODhmNzkwNDU4NGMy
14
- MzBjOGViMTFiMzUzNGVmYzRiNDdlZTNjM2RmYjc3MmRiNDY3YjJjM2M4NTNk
15
- MzU4ZjE5ZjhmOGExOGE1ODgyZDExM2M4N2Q3MTI5NmE4MWQ1ODk=
13
+ NDEyMTBjNTY4MzEwZDI4ZWU3MTUzYTg1YmEzZmFhMmIyNGQzM2Y3YzMzMWY0
14
+ NmQ0YjNjNWYwYjU5N2YzMjA1NTc5MGVmOGVkM2M0ZWU0M2QwMmVjN2JmNmY0
15
+ NDE3ZGUwNzEzM2I0YjI3YWY2NDhmZDc2NWY0NWQ3NWY2OTU2ZjY=
@@ -416,7 +416,7 @@ Phony.define do
416
416
  /\A6\d+\z/ => [3,3,3] # satellite
417
417
  )
418
418
 
419
- country '262', none >> split(5, 5) # Reunion / Mayotte (new) http://www.wtng.info/wtng-262-fr.html
419
+ country '262', fixed(3) >> split(3, 3) # Reunion / Mayotte (new) http://www.wtng.info/wtng-262-fr.html
420
420
 
421
421
  # country '263' # Zimbabwe, see special file
422
422
 
@@ -654,7 +654,7 @@ describe 'plausibility' do
654
654
  '+974 900 12 34',
655
655
  '+974 92 123',
656
656
  '+974 97 123']
657
- it_is_correct_for 'Reunion / Mayotte (new)', :samples => '+262 29527 69649'
657
+ it_is_correct_for 'Reunion / Mayotte (new)', :samples => '+262 295 276 964'
658
658
  it_is_correct_for 'Saint Helena', :samples => '+290 5134'
659
659
  it_is_correct_for 'Saint Pierre and Miquelon (Collectivité territoriale de la République française)', :samples => '+508 474 714'
660
660
  it_is_correct_for 'Samoa (Independent State of)', :samples => ['+685 800 123',
@@ -921,7 +921,7 @@ describe 'country descriptions' do
921
921
  it_splits '67511512345678', %w(675 115 1234 5678)
922
922
  end
923
923
  describe 'Reunion / Mayotte (new)' do
924
- it_splits '2625943992657', ['262', false, '59439', '92657']
924
+ it_splits '262594399265', ['262', '594', '399', '265']
925
925
  end
926
926
  describe 'Saint Helena' do
927
927
  it_splits '2903614', ['290', false, '3614']
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.2.12
4
+ version: 2.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-26 00:00:00.000000000 Z
11
+ date: 2014-05-27 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