phony 2.16.2 → 2.16.3
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/austria.rb +1 -0
- data/lib/phony/countries/georgia.rb +4 -4
- data/spec/lib/phony/countries_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c21a8c6e8081e6ef55bb582caa1b4c395bc134
|
4
|
+
data.tar.gz: 2d15cf9be4f0912ac1e03b81cd12750aabdf5cc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d4384ce970c0650b68b6c8afb8b936784ac52c0fd862462c690bc22487e633c2ac8033288cb27a1521e1272e5a456d3e32130f0fb1f5160404806874f059888
|
7
|
+
data.tar.gz: 7f634655df245f4c5de104a80a4f32aeec95338cb4129aadf0297193fc8576923798ac4acdf8fcd01992e59598525d9cd366c55611151345fb8bda1308033b7e
|
@@ -2,8 +2,8 @@
|
|
2
2
|
# https://www.numberingplans.com/?page=dialling&sub=areacodes
|
3
3
|
# https://www.numberingplans.com/?page=plans&sub=phonenr&alpha_2_input=GE
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
ndcs_with_7_subscriber_digits = %w(32)
|
6
|
+
ndcs_with_6_subscriber_digits = %w(
|
7
7
|
341
|
8
8
|
342
|
9
9
|
344
|
@@ -86,7 +86,7 @@ Phony.define do
|
|
86
86
|
trunk('0') |
|
87
87
|
one_of('220') >> split(3,2) |
|
88
88
|
one_of(%w(514 550 551 555 557 558 568 571 574 577 578 579 591 592 593 595 596 597 598 599 770 790)) >> split(3,3) | # mobile
|
89
|
-
one_of(
|
90
|
-
one_of(
|
89
|
+
one_of(ndcs_with_6_subscriber_digits) >> split(3,3) |
|
90
|
+
one_of(ndcs_with_7_subscriber_digits) >> split(3,4) |
|
91
91
|
fixed(3) >> split(3,3)
|
92
92
|
end
|
@@ -51,6 +51,7 @@ describe 'country descriptions' do
|
|
51
51
|
it_splits '436880000000', %w( 43 688 0000 000 ) # Mobile
|
52
52
|
it_splits '4366900000000', %w( 43 669 0000 0000 ) # Mobile
|
53
53
|
it_splits '4367000000000', %w( 43 670 0000 0000 ) # Mobile
|
54
|
+
it_splits '4369000000000', %w( 43 690 0000 0000 ) # Mobile
|
54
55
|
it_splits '433161234567891', %w( 43 316 1234567891 ) # Graz
|
55
56
|
it_splits '432164123456789', %w( 43 2164 123456789 ) # Rohrau
|
56
57
|
it_splits '43720116987', %w( 43 720 116987 ) # VoIP
|
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.16.
|
4
|
+
version: 2.16.3
|
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: 2018-01-08 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
|