phony 2.14.11 → 2.14.12
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/cambodia.rb +6 -1
- 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: 052c3eab0561d2605d47651f891e29db112dc0f3
|
4
|
+
data.tar.gz: 42b5659cf3e4bbcf6e468a7b1a3cdfee758a3b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94739e17a00eacdf026f9dc1449d2ad47a5212650676824445cc4cf06090f3f5f719eecd8a5ab8f4ef5c02471481a8c945e054836bc1bb4a72291f071299802d
|
7
|
+
data.tar.gz: d2456e03cf772e6e3727aebe82b7c4ddf8f47bbfce3eca403f74d0f08bef18a762983b828c8c3f98013625cbc1d490c2a6434b84eb6cd308791ce599dba1e97a
|
@@ -41,7 +41,6 @@ six_digit_mobile_prefixes = [
|
|
41
41
|
'15', # Smart
|
42
42
|
'16', # Smart
|
43
43
|
'17', # Mobitel
|
44
|
-
'18', # Excell
|
45
44
|
'60', # Metfone
|
46
45
|
'61', # Mobitel
|
47
46
|
'66', # Metfone
|
@@ -70,6 +69,7 @@ six_digit_mobile_prefixes = [
|
|
70
69
|
seven_digit_mobile_prefixes = [
|
71
70
|
'31', # Metfone
|
72
71
|
'38', # CooTel
|
72
|
+
'39', # EMAXX
|
73
73
|
'71', # Metfone
|
74
74
|
'76', # Mobitel
|
75
75
|
'88', # Metfone
|
@@ -77,6 +77,10 @@ seven_digit_mobile_prefixes = [
|
|
77
77
|
'97', # Metfone
|
78
78
|
]
|
79
79
|
|
80
|
+
mobile_prefixes_with_variable_length = [
|
81
|
+
'18' # Seatel
|
82
|
+
]
|
83
|
+
|
80
84
|
six_digit_total_single_digit_fixed_line_prefixes = [
|
81
85
|
'2', # Telecom Cambodia
|
82
86
|
'3', # Mobitel
|
@@ -114,6 +118,7 @@ seven_digit_total_double_digit_fixed_line_prefixes = [
|
|
114
118
|
|
115
119
|
Phony.define do
|
116
120
|
country '855', trunk('0', :normalize => true) |
|
121
|
+
one_of(mobile_prefixes_with_variable_length) >> matched_split(/^9/ => [3, 4], /^[2-8]/ => [3, 3]) |
|
117
122
|
one_of(six_digit_mobile_prefixes) >> matched_split(/^[2-9]/ => [3, 3]) |
|
118
123
|
one_of(seven_digit_mobile_prefixes) >> matched_split(/^[2-9]/ => [3, 4]) |
|
119
124
|
one_of(ndcs) >> matched_split(/^(#{seven_digit_total_double_digit_fixed_line_prefixes.join('|')})\d{5}$/ => [3, 4], /^(#{seven_digit_total_single_digit_fixed_line_prefixes.join('|')})\d{6}$/ => [3, 4], /^(#{six_digit_total_double_digit_fixed_line_prefixes.join('|')})\d{4}$/ => [3, 3], /^(#{six_digit_total_single_digit_fixed_line_prefixes.join('|')})\d{5}$/ => [3, 3])
|
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.14.
|
4
|
+
version: 2.14.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Hanke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-28 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
|