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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 236cbea6eafc78710f947dfecec5784685afea02
4
- data.tar.gz: a207d5d46d5dc6bd37c3427e5a6f135f259f93a5
3
+ metadata.gz: 052c3eab0561d2605d47651f891e29db112dc0f3
4
+ data.tar.gz: 42b5659cf3e4bbcf6e468a7b1a3cdfee758a3b92
5
5
  SHA512:
6
- metadata.gz: bceafeb723a4ec649d0f37463f0626f0b29f0171ee2181e7e01e0046f7d70e99f06b7b96bc0b3e1acf08a23b470d9f448f3982ad4210ff0e9467f77a0d1eb69a
7
- data.tar.gz: f89ea16b66d5376f57fa433b8c55cb81e3a85c781b954a43c88f45e546027036ab85da357bb4ea46fca30a0d187986a576ccc78ca6513c002b455d9e9cce89c5
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.11
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-27 00:00:00.000000000 Z
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