phony 2.20.12 → 2.20.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phony/countries/pakistan.rb +2 -2
- data/lib/phony/countries.rb +1 -8
- data/spec/functional/plausibility_spec.rb +1 -0
- data/spec/lib/phony/countries_spec.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97402c47d67fd236847767387bea1905e7f492e39526cc7697b1925c6c3d0aeb
|
4
|
+
data.tar.gz: 6e9938a0433fceff58077c1b7defcbcc65c5c568138fe3d350edaadf30b67b7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f404f96f9723be633e2d5120a28a8db0998e6a06ddea055968c5afe61b20f9d487680ca389ffc9f22e0b5cdae20ce38b82ce118112d97e2e09c9765f762be961
|
7
|
+
data.tar.gz: 3930976542fe6f350cd4f4ceca1dd3f7587461faeb5056212f973f7b1510e972b71da064706aa397b0d5df270c6bef807bb672b2cf5b89fb5f774036d662ba19
|
@@ -112,10 +112,10 @@ Phony.define do
|
|
112
112
|
|
113
113
|
country '92',
|
114
114
|
one_of(ndcs_with_6_subscriber_numbers) >> split(3,3) |
|
115
|
-
one_of('
|
115
|
+
one_of('111') >> split(3,3) | # universal access number
|
116
116
|
one_of(ndcs_with_7_subscriber_numbers) >> split(4,3) |
|
117
117
|
one_of(ndcs_with_8_subscriber_numbers) >> split(4,4) |
|
118
118
|
one_of(%w(30 31 32 33 34 35 36)) >> split(4,4) | # mobile
|
119
119
|
fixed(2) >> split(4,4)
|
120
120
|
|
121
|
-
end
|
121
|
+
end
|
data/lib/phony/countries.rb
CHANGED
@@ -517,18 +517,11 @@ Phony.define do
|
|
517
517
|
# https://en.wikipedia.org/wiki/Telephone_numbers_in_Madagascar
|
518
518
|
# http://www.itu.int/oth/T020200007F/en
|
519
519
|
country '261',
|
520
|
-
# none >> matched_split(
|
521
|
-
# /\A20\d+\z/ => [2,2,3,2], # Telecom Malagasy (Telma)
|
522
|
-
# /\A32\d+\z/ => [2,2,3,2], # mobile Orange Madagascar
|
523
|
-
# /\A33\d+\z/ => [2,2,3,2], # mobile Airtel Madagascar
|
524
|
-
# /\A34\d+\z/ => [2,2,3,2], # mobile Telecom Malagasy (Telma)
|
525
|
-
# /\A38\d+\z/ => [2,2,3,2], # mobile Telecom Malagasy (Telma)
|
526
|
-
# /\A39\d+\z => [2,2,3,2] # mobile Blueline
|
527
|
-
# ),
|
528
520
|
match(/\A(20)\d+\z/) >> split(2,3,2) | # fix Telecom Malagasy (Telma)
|
529
521
|
match(/\A(32)\d+\z/) >> split(2,3,2) | # mobile Orange Madagascar
|
530
522
|
match(/\A(33)\d+\z/) >> split(2,3,2) | # mobile Airtel Madagascar
|
531
523
|
match(/\A(34)\d+\z/) >> split(2,3,2) | # mobile Telecom Malagasy (Telma)
|
524
|
+
match(/\A(37)\d+\z/) >> split(2,3,2) | # mobile Orange Madagascar
|
532
525
|
match(/\A(38)\d+\z/) >> split(2,3,2) | # mobile Telecom Malagasy (Telma)
|
533
526
|
match(/\A(39)\d+\z/) >> split(2,3,2) # mobile Blueline Madagascar
|
534
527
|
|
@@ -618,6 +618,7 @@ describe 'country descriptions' do
|
|
618
618
|
it_splits '92221234567', %w(92 22 1234 567)
|
619
619
|
it_splits '92232123456', %w(92 232 123 456)
|
620
620
|
it_splits '923012345678', %w(92 30 1234 5678)
|
621
|
+
it_splits '92111332211', %w(92 111 332 211)
|
621
622
|
end
|
622
623
|
describe 'Paraguay (Republic of)' do
|
623
624
|
it_splits '59521123456', %w(595 21 123 456)
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Hanke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-10 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,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
rubygems_version: 3.
|
118
|
+
rubygems_version: 3.5.6
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Fast international phone number (E164 standard) normalizing, splitting and
|