phony 2.18.18 → 2.18.19
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 +2 -2
- data/spec/functional/plausibility_spec.rb +1 -1
- data/spec/lib/phony/countries_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 191311d0c0169c0df4dd8b25dd66237bb90daf37806631092c4fe73881fade0c
|
|
4
|
+
data.tar.gz: f9c030830f9303fead7730266cc3bf08a3a260a1f34db0e81f47105cd9d576e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a36bf0ccdbfae65c24d192f6ed89b39a549643028bab3a14309f8ec9473b5c590dc58699dd26a913e530175fe03e2334ce0920bedffc2069a700588a834c8d18
|
|
7
|
+
data.tar.gz: 9d715c474e64dc92cf1d8de778f91676d4ab791f147f7a34694783dd64e737e751bf42cab231fd337a608b7527387770c9bca51a9cc992689c56cf8f67755aa0
|
data/lib/phony/countries.rb
CHANGED
|
@@ -352,13 +352,13 @@ Phony.define do
|
|
|
352
352
|
|
|
353
353
|
# Côte d'Ivoire
|
|
354
354
|
# http://www.wtng.info/wtng-225-ci.html
|
|
355
|
-
#
|
|
355
|
+
# https://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000310006PDFE.pdf
|
|
356
356
|
# http://en.wikipedia.org/wiki/Telephone_numbers_in_Ivory_Coast
|
|
357
357
|
#
|
|
358
358
|
# There is no trunk code for this country and several of the mobile prefixes start with 0
|
|
359
359
|
country '225',
|
|
360
360
|
trunk('', :normalize => false) |
|
|
361
|
-
fixed(2) >> split(2,2,2)
|
|
361
|
+
fixed(2) >> split(2,2,2,2)
|
|
362
362
|
|
|
363
363
|
country '226', none >> split(4,4) # Burkina Faso http://www.wtng.info/wtng-226-bf.html
|
|
364
364
|
country '227', none >> split(4,4) # Niger http://www.wtng.info/wtng-227-ne.html
|
|
@@ -192,7 +192,7 @@ describe 'plausibility' do
|
|
|
192
192
|
Phony.plausible?('+385 60 12 345').should be_truthy # Premium rate
|
|
193
193
|
Phony.plausible?('+385 62 123 456').should be_truthy # Premium, personal and UAN
|
|
194
194
|
end
|
|
195
|
-
it_is_correct_for "Côte d'Ivoire", :samples => '+225
|
|
195
|
+
it_is_correct_for "Côte d'Ivoire", :samples => '+225 01 9358 8764'
|
|
196
196
|
it_is_correct_for 'Democratic Republic of Timor-Leste', :samples => ['+670 465 7886', '+670 7465 7886']
|
|
197
197
|
it_is_correct_for 'Democratic Republic of the Congo', :samples => '+243 80 864 9794'
|
|
198
198
|
it_is_correct_for 'Diego Garcia', :samples => '+246 123 7686'
|
|
@@ -895,8 +895,8 @@ describe 'country descriptions' do
|
|
|
895
895
|
it_splits '50622345678', %w(506 2 234 5678)
|
|
896
896
|
end
|
|
897
897
|
describe "Côte d'Ivoire" do
|
|
898
|
-
it_splits '
|
|
899
|
-
it_splits '
|
|
898
|
+
it_splits '2250107335518', ['225', '01', '07', '33', '55', '18']
|
|
899
|
+
it_splits '2250237335518', ['225', '02', '37', '33', '55', '18']
|
|
900
900
|
end
|
|
901
901
|
describe 'Democratic Republic of Timor-Leste' do
|
|
902
902
|
it_splits '6701742945', ['670', false, '174', '2945']
|
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.18.
|
|
4
|
+
version: 2.18.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Hanke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-02-05 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
|