phony 2.0.0.beta3 → 2.0.0.beta4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/phony.rb CHANGED
@@ -42,9 +42,9 @@ require File.expand_path '../phony/countries/nepal', __FILE__
42
42
  require File.expand_path '../phony/countries/netherlands', __FILE__
43
43
  require File.expand_path '../phony/countries/pakistan', __FILE__
44
44
  require File.expand_path '../phony/countries/paraguay', __FILE__
45
- require File.expand_path '../phony/countries/russia_kazakhstan_abhasia_south_osetia', __FILE__
45
+ require File.expand_path '../phony/countries/russia_kazakhstan_abkhasia_south_ossetia', __FILE__
46
46
  require File.expand_path '../phony/countries/serbia', __FILE__
47
- require File.expand_path '../phony/countries/somali', __FILE__
47
+ require File.expand_path '../phony/countries/somalia', __FILE__
48
48
  require File.expand_path '../phony/countries/south_korea', __FILE__
49
49
  require File.expand_path '../phony/countries/sweden', __FILE__
50
50
  require File.expand_path '../phony/countries/taiwan', __FILE__
File without changes
@@ -12,19 +12,20 @@
12
12
  #
13
13
 
14
14
  two_digit_ndc = [
15
- # Geographic [2+8].
15
+ # Geographic [2+8] - includes (02x) 0 and (02x) 1 as NDO.
16
16
  #
17
- '20', # London
18
- '23', # Southampton, Portsmith
19
- '24', # Coventry
20
- '28', # Northern Ireland
21
- '29', # Cardiff
17
+ '20', # London - (020) 3, (020) 7, (020) 8
18
+ '23', # Southampton - (023) 8, Portsmouth - (023) 9
19
+ '24', # Coventry - (024) 7
20
+ '28', # Northern Ireland - (028) but not (028) 5
21
+ '29', # Cardiff - (029) 2
22
22
 
23
23
  # Non-geographic [2+8].
24
24
  #
25
25
  '55', # Corporate
26
26
  '56', # LIECS/VoIP
27
27
  '70', # Personal numbers
28
+ '76', # Pagers (not 7624)
28
29
  ]
29
30
 
30
31
  # three_digit_ndc_with_nine_digits
@@ -34,7 +35,7 @@ two_digit_ndc = [
34
35
  # '800', # Freephone (9 digits) handled in specific rule, see below.
35
36
 
36
37
  three_digit_ndc = [
37
- # Geographic [3+7].
38
+ # Geographic [3+7] - includes (01xx) 0 and (01xx) 1 as NDO.
38
39
  #
39
40
  '113', # Leeds
40
41
  '114', # Sheffield
@@ -51,7 +52,7 @@ three_digit_ndc = [
51
52
 
52
53
  # Non-geographic [3+7].
53
54
  #
54
- '300', # Non-geographic numbers charged at geographic rates.
55
+ '300', # Non-geographic numbers (NTS) charged at geographic rates.
55
56
  '301',
56
57
  '302',
57
58
  '303',
@@ -105,7 +106,7 @@ three_digit_ndc = [
105
106
  '918',
106
107
  '919',
107
108
 
108
- '908', # Sexual entertainment services (SES) with Service Charge up to 300p/min [3+7].
109
+ '908', # Sexual Entertainment Services (SES) with Service Charge up to 300p/min [3+7].
109
110
  '909',
110
111
  '981',
111
112
  '982',
@@ -115,13 +116,13 @@ three_digit_ndc = [
115
116
  ]
116
117
 
117
118
  # five_digit_ndc_with_nine_digits
118
- # Geographic [5+4].
119
+ # Geographic [5+4] - includes (016977) 0 and (016977) 1 as NDO.
119
120
  #
120
121
  # '16977', # Brampton (contains both 4 and 5 digit numbers)
121
122
  # # 9 digits handled in specific rule, see below.
122
123
 
123
124
  five_digit_ndc = [
124
- # Geographic [5+5].
125
+ # Geographic [5+5] - includes (01xxxx) 0 and (01xxxx) 1 as NDO.
125
126
  #
126
127
  # These areas use 5-5 format. One area has some 5-4 numbers too (see above).
127
128
  # They share their initial digits with area codes using 4-6 (and 4-5).
@@ -140,7 +141,7 @@ five_digit_ndc = [
140
141
  ]
141
142
 
142
143
  no_split = [
143
- # Geographic [4+6]/[4+5].
144
+ # Geographic [4+6]/[4+5] - includes (01xxx) 0 and (01xxx) 1 as NDO.
144
145
  #
145
146
  # These 40 area codes have a mix of 4-6 and 4-5 numbers
146
147
  # The three 'mixed' areas also have part of their number
@@ -190,11 +191,11 @@ no_split = [
190
191
  #
191
192
  # Mobile [4+6].
192
193
  #
193
- ('7400'..'7599').to_a,
194
+ ('7100'..'7599').to_a,
194
195
  '7624',
195
196
  ('7700'..'7999').to_a,
196
197
 
197
- # Geographic [4+6].
198
+ # Geographic [4+6] - includes (01xxx) 0 and (01xxx) 1 as NDO.
198
199
  #
199
200
  # About 500 area codes use the 4-6 format
200
201
  # The three 'mixed' areas also have part of their number
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta3
4
+ version: 2.0.0.beta4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-10 00:00:00.000000000 Z
12
+ date: 2013-05-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Fast international phone number (E164 standard) normalizing, splitting
15
15
  and formatting. Lots of formatting options: International (+.., 00..), national
@@ -43,9 +43,9 @@ files:
43
43
  - lib/phony/countries/netherlands.rb
44
44
  - lib/phony/countries/pakistan.rb
45
45
  - lib/phony/countries/paraguay.rb
46
- - lib/phony/countries/russia_kazakhstan_abhasia_south_osetia.rb
46
+ - lib/phony/countries/russia_kazakhstan_abkhasia_south_ossetia.rb
47
47
  - lib/phony/countries/serbia.rb
48
- - lib/phony/countries/somali.rb
48
+ - lib/phony/countries/somalia.rb
49
49
  - lib/phony/countries/south_korea.rb
50
50
  - lib/phony/countries/sweden.rb
51
51
  - lib/phony/countries/taiwan.rb