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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bd8d54f0ec8c07d89b9e88af1747486ba86152f
4
- data.tar.gz: f70e8f598e2c73d3083e2c02ef4ab46070026215
3
+ metadata.gz: 683068d6331958dc5cb1d1c5d332b3039fbf3f81
4
+ data.tar.gz: 2c6306ef503912536c994a9b925e6623bda6c543
5
5
  SHA512:
6
- metadata.gz: 91de1f90d2932897a7371fd52767af7ad6497feebfddd99c7a974df7bd0bd76f770752ba7bf6561b751fe2f2cfafadb362c11f29c62a879ffd5455e35db10660
7
- data.tar.gz: f234cc05e0d062267f54eb0f9e0074624cf38e3808ed10141d29195e6a1ba89b974041e8257a7ce29e30b588519a47755953a110baffb185eb36493074c7361e
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.13
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-07-28 00:00:00.000000000 Z
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