phony 2.20.3 → 2.20.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27443f0af2d18a25a1b9056a1a09e77dffd8e8669346d974a3970cdfe9931ee4
4
- data.tar.gz: b5d22d65bb38fcb66b8f966716e5a5ee582d272a53b418b3ed20070ce90a74c1
3
+ metadata.gz: 056a5103bea259b54c66831e3e9ead915d9db6168b6295a470b1fcbfe6ed720f
4
+ data.tar.gz: 7b4e9a45e26f31461c972ad389e7e44c01c2049980c8545fb9f6a8ac26697679
5
5
  SHA512:
6
- metadata.gz: 5ee83977f8d9f5b8ccbcbbea65976ff20456fd35f4adca206e91b9efe4838cf80bef3a15b8cd837e093f4cfedca43a757e7ecd2c941abae9d08c0d54f217c930
7
- data.tar.gz: 30760e746ca05cadc07b41e404507537a18f516938b9701a18ecedd6a56d14f9f1eb39eee754d8121679e7217514be356f250292a7d7a9bad7a89efcc98168c4
6
+ metadata.gz: 7de8a6cc525987b4f3145d9a8fcfad6d00ce60d1962a8261adf0729560fb58eefb95a64a0937ad25532aebc2eb6b7bdb89f09da3c0027789c2fa3f5a6a777a08
7
+ data.tar.gz: 4d9d35c34f18a2b1b5b04f6bf22dcb6e629f24adc44a57c4b1e76b99eb7cd7bba7ebeb9ce23fddf4468893d90792d2999cc7f3caf3ba15ca65f5bf4b4dd20cc5
@@ -992,7 +992,7 @@ Phony.define do
992
992
  /\A\d+\z/ => [2,3] # geographic
993
993
  )
994
994
 
995
- country '686', none >> split(2,3) # Kiribati (Republic of) http://www.wtng.info/wtng-686-ki.html
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 31993'
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 '68634814', ['686', false, '34', '814']
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.3
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-04-18 00:00:00.000000000 Z
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.26
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/functional/config_spec.rb
125
- - spec/functional/plausibility_spec.rb
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/national_splitters/default_spec.rb
134
- - spec/lib/phony/national_splitters/fixed_spec.rb
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/variable_spec.rb
138
- - spec/lib/phony/trunk_code_spec.rb
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/lib/phony_spec.rb
139
+ - spec/functional/config_spec.rb
140
+ - spec/functional/plausibility_spec.rb