phony 2.2.12 → 2.2.13
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 +8 -8
- data/lib/phony/countries.rb +1 -1
- data/spec/functional/plausibility_spec.rb +1 -1
- data/spec/lib/phony/countries_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
M2I1OTQyNDFlNDQxNzc1YWQ2OTJlNzk0MzE5ZGQxZDhiOGUwOGM1Yw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZjNhNmVlMmQxYWMwNGNmYjg0MTI5MjMxOGViZTM4MjAzMTMzY2RiNQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NWY1ODk4ZjRlNjI2OGZmNzFmN2U3ODAzNDA5MmE1MThlODc0ZDI0NTdhNTI0
|
|
10
|
+
MTg2NDIxYmVkODg3MmEzNjJlYmU2MjI4Nzc5ODE0YzE5ZTI2N2E5Mjc3MGMy
|
|
11
|
+
OTBhMjRmMThhMDI3NTliMjM2YWM0YmYzZjczOGY4MzFlOGMyZmE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NDEyMTBjNTY4MzEwZDI4ZWU3MTUzYTg1YmEzZmFhMmIyNGQzM2Y3YzMzMWY0
|
|
14
|
+
NmQ0YjNjNWYwYjU5N2YzMjA1NTc5MGVmOGVkM2M0ZWU0M2QwMmVjN2JmNmY0
|
|
15
|
+
NDE3ZGUwNzEzM2I0YjI3YWY2NDhmZDc2NWY0NWQ3NWY2OTU2ZjY=
|
data/lib/phony/countries.rb
CHANGED
|
@@ -416,7 +416,7 @@ Phony.define do
|
|
|
416
416
|
/\A6\d+\z/ => [3,3,3] # satellite
|
|
417
417
|
)
|
|
418
418
|
|
|
419
|
-
country '262',
|
|
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
|
|
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 '
|
|
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.
|
|
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-
|
|
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
|