phony 2.14.13 → 2.14.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/cambodia.rb +5 -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: 683068d6331958dc5cb1d1c5d332b3039fbf3f81
|
4
|
+
data.tar.gz: 2c6306ef503912536c994a9b925e6623bda6c543
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 244939128dc71e8fc7e93090e031736ccbbcbebc91f9abfad8ddc0585216ff65ca3e522c20a3eda7cfa4eb9984d147fa2065a64343df9f874fbcdff75c6f4dce
|
7
|
+
data.tar.gz: 35449d828f7b060045a804bd76e33c027dca913955f78846241acec9b0d4a597c81c2a0f4192954f090f06890202cf0b6025a650016cb6b7544ba0660963b840
|
@@ -59,13 +59,16 @@ six_digit_mobile_prefixes = [
|
|
59
59
|
'87', # Smart
|
60
60
|
'89', # Mobitel
|
61
61
|
'90', # Metfone
|
62
|
-
'92', # Mobitel
|
63
62
|
'93', # Smart
|
64
63
|
'95', # Mobitel
|
65
64
|
'98', # Smart
|
66
65
|
'99', # Mobitel
|
67
66
|
]
|
68
67
|
|
68
|
+
six_digit_extended_range_mobile_prefixes = [
|
69
|
+
'92' # Mobitel
|
70
|
+
]
|
71
|
+
|
69
72
|
seven_digit_mobile_prefixes = [
|
70
73
|
'31', # Metfone
|
71
74
|
'38', # CooTel
|
@@ -120,6 +123,7 @@ Phony.define do
|
|
120
123
|
country '855', trunk('0', :normalize => true) |
|
121
124
|
one_of(mobile_prefixes_with_variable_length) >> matched_split(/^9/ => [3, 4], /^[2-8]/ => [3, 3]) |
|
122
125
|
one_of(six_digit_mobile_prefixes) >> matched_split(/^[2-9]/ => [3, 3]) |
|
126
|
+
one_of(six_digit_extended_range_mobile_prefixes) >> matched_split(/^[1-9]/ => [3, 3]) |
|
123
127
|
one_of(seven_digit_mobile_prefixes) >> matched_split(/^[2-9]/ => [3, 4]) |
|
124
128
|
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])
|
125
129
|
end
|
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.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: 2015-
|
11
|
+
date: 2015-08-15 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
|