phony 2.20.3 → 2.20.4
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 +1 -1
- data/spec/functional/plausibility_spec.rb +1 -1
- data/spec/lib/phony/countries_spec.rb +2 -1
- metadata +15 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 056a5103bea259b54c66831e3e9ead915d9db6168b6295a470b1fcbfe6ed720f
|
|
4
|
+
data.tar.gz: 7b4e9a45e26f31461c972ad389e7e44c01c2049980c8545fb9f6a8ac26697679
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7de8a6cc525987b4f3145d9a8fcfad6d00ce60d1962a8261adf0729560fb58eefb95a64a0937ad25532aebc2eb6b7bdb89f09da3c0027789c2fa3f5a6a777a08
|
|
7
|
+
data.tar.gz: 4d9d35c34f18a2b1b5b04f6bf22dcb6e629f24adc44a57c4b1e76b99eb7cd7bba7ebeb9ce23fddf4468893d90792d2999cc7f3caf3ba15ca65f5bf4b4dd20cc5
|
data/lib/phony/countries.rb
CHANGED
|
@@ -992,7 +992,7 @@ Phony.define do
|
|
|
992
992
|
/\A\d+\z/ => [2,3] # geographic
|
|
993
993
|
)
|
|
994
994
|
|
|
995
|
-
country '686', none >> split(
|
|
995
|
+
country '686', none >> split(8) # Kiribati (Republic of) https://www.numberingplans.com/?page=plans&sub=phonenr&alpha_2_input=KI
|
|
996
996
|
country '687', none >> split(3,3) # New Caledonia (Territoire français d'outre-mer) http://www.wtng.info/wtng-687-nc.html
|
|
997
997
|
country '688', none >> split(5) # Tuvalu http://www.wtng.info/wtng-688-tv.html
|
|
998
998
|
country '689', none >> split(2,2,2,2) # French Polynesia (Territoire français d'outre-mer) http://www.wtng.info/wtng-689-pf.html
|
|
@@ -293,7 +293,7 @@ describe 'plausibility' do
|
|
|
293
293
|
'+964 71 1234 5678']
|
|
294
294
|
|
|
295
295
|
|
|
296
|
-
it_is_correct_for 'Kiribati (Republic of)', :samples => '+686
|
|
296
|
+
it_is_correct_for 'Kiribati (Republic of)', :samples => '+686 34814527'
|
|
297
297
|
it_is_correct_for "Democratic People's Republic of Korea", :samples => ['+850 2 123 45',
|
|
298
298
|
'+850 2 123 456 789',
|
|
299
299
|
'+850 2 381 2356',
|
|
@@ -872,6 +872,7 @@ describe 'country descriptions' do
|
|
|
872
872
|
end
|
|
873
873
|
describe 'Burkina Faso' do
|
|
874
874
|
it_splits '22667839323', ['226', false, '67', '83', '93', '23']
|
|
875
|
+
it_splits '22601234567', ['226', false, '01', '23', '45', '67'] # 0 not removed.
|
|
875
876
|
end
|
|
876
877
|
describe 'Burundi' do
|
|
877
878
|
it_splits '25712345678', ['257', false, '1234', '5678']
|
|
@@ -1012,7 +1013,7 @@ describe 'country descriptions' do
|
|
|
1012
1013
|
it_splits '96287901456', %w(962 8790 1456)
|
|
1013
1014
|
end
|
|
1014
1015
|
describe 'Kiribati (Republic of)' do
|
|
1015
|
-
it_splits '
|
|
1016
|
+
it_splits '68634814527', ['686', false, '34814527']
|
|
1016
1017
|
end
|
|
1017
1018
|
describe "Democratic People's Republic of Korea" do
|
|
1018
1019
|
it_splits '850212345', %w(850 2 123 45)
|
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.20.
|
|
4
|
+
version: 2.20.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Hanke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-05-03 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
|
|
@@ -115,26 +115,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
116
|
version: '0'
|
|
117
117
|
requirements: []
|
|
118
|
-
rubygems_version: 3.3
|
|
118
|
+
rubygems_version: 3.2.3
|
|
119
119
|
signing_key:
|
|
120
120
|
specification_version: 4
|
|
121
121
|
summary: Fast international phone number (E164 standard) normalizing, splitting and
|
|
122
122
|
formatting.
|
|
123
123
|
test_files:
|
|
124
|
-
- spec/
|
|
125
|
-
- spec/
|
|
126
|
-
- spec/lib/phony/countries_spec.rb
|
|
127
|
-
- spec/lib/phony/country_codes_spec.rb
|
|
124
|
+
- spec/lib/phony_spec.rb
|
|
125
|
+
- spec/lib/phony/trunk_code_spec.rb
|
|
128
126
|
- spec/lib/phony/country_spec.rb
|
|
129
|
-
- spec/lib/phony/dsl_spec.rb
|
|
130
|
-
- spec/lib/phony/local_splitters/fixed_spec.rb
|
|
131
|
-
- spec/lib/phony/local_splitters/regex_spec.rb
|
|
132
127
|
- spec/lib/phony/national_code_spec.rb
|
|
133
|
-
- spec/lib/phony/
|
|
134
|
-
- spec/lib/phony/
|
|
128
|
+
- spec/lib/phony/countries_spec.rb
|
|
129
|
+
- spec/lib/phony/dsl_spec.rb
|
|
130
|
+
- spec/lib/phony/national_splitters/variable_spec.rb
|
|
135
131
|
- spec/lib/phony/national_splitters/none_spec.rb
|
|
136
132
|
- spec/lib/phony/national_splitters/regex_spec.rb
|
|
137
|
-
- spec/lib/phony/national_splitters/
|
|
138
|
-
- spec/lib/phony/
|
|
133
|
+
- spec/lib/phony/national_splitters/fixed_spec.rb
|
|
134
|
+
- spec/lib/phony/national_splitters/default_spec.rb
|
|
135
|
+
- spec/lib/phony/country_codes_spec.rb
|
|
136
|
+
- spec/lib/phony/local_splitters/regex_spec.rb
|
|
137
|
+
- spec/lib/phony/local_splitters/fixed_spec.rb
|
|
139
138
|
- spec/lib/phony/vanity_spec.rb
|
|
140
|
-
- spec/
|
|
139
|
+
- spec/functional/config_spec.rb
|
|
140
|
+
- spec/functional/plausibility_spec.rb
|