elskwid-phone 0.9.9.3 → 0.9.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Readme.rdoc +1 -0
- data/data/phone_countries.yml +3 -9
- data/test/countries/au_test.rb +49 -0
- metadata +6 -4
data/Readme.rdoc
CHANGED
data/data/phone_countries.yml
CHANGED
|
@@ -489,9 +489,10 @@
|
|
|
489
489
|
:country_code: "61"
|
|
490
490
|
:national_dialing_prefix: "0"
|
|
491
491
|
:char_2_code: "0"
|
|
492
|
-
:char_3_code:
|
|
493
|
-
:name:
|
|
492
|
+
:char_3_code: AU
|
|
493
|
+
:name: Australia
|
|
494
494
|
:international_dialing_prefix: "11"
|
|
495
|
+
:area_code: "[234578]"
|
|
495
496
|
"880":
|
|
496
497
|
:country_code: "880"
|
|
497
498
|
:national_dialing_prefix: "0"
|
|
@@ -1384,13 +1385,6 @@
|
|
|
1384
1385
|
:char_3_code: HN
|
|
1385
1386
|
:name: Honduras
|
|
1386
1387
|
:international_dialing_prefix: "0"
|
|
1387
|
-
"618":
|
|
1388
|
-
:country_code: "618"
|
|
1389
|
-
:national_dialing_prefix: "0"
|
|
1390
|
-
:char_2_code: "0"
|
|
1391
|
-
:char_3_code: CX
|
|
1392
|
-
:name: Christmas Island
|
|
1393
|
-
:international_dialing_prefix: "11"
|
|
1394
1388
|
"250":
|
|
1395
1389
|
:country_code: "250"
|
|
1396
1390
|
:national_dialing_prefix: "0"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
|
2
|
+
|
|
3
|
+
# 0x 5551 reserved for fictitious use. (not including x=3)
|
|
4
|
+
# 0x 7010 reserved for fictitious use.
|
|
5
|
+
|
|
6
|
+
## Australia
|
|
7
|
+
class AUTest < Test::Unit::TestCase
|
|
8
|
+
|
|
9
|
+
# 00 Emergency and International access
|
|
10
|
+
# 01 Alternate phone services
|
|
11
|
+
# 014 Satellite phone services
|
|
12
|
+
# 016 Paging [+3D or +6D]
|
|
13
|
+
# 018 Analogue (AMPS) mobile phone - few numbers still in use [+6D]
|
|
14
|
+
# 0198 Data networks [+2D or +6D] - e.g. 0198 379 000 is the Dial-Up POP number for iiNet
|
|
15
|
+
|
|
16
|
+
# 02 Central East region (NSW, ACT)
|
|
17
|
+
def test_central_east
|
|
18
|
+
parse_test('+61 2 5551 1234', '61', '2', '55511234')
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# 03 South-east region (VIC, TAS)
|
|
22
|
+
def test_south_east
|
|
23
|
+
parse_test('+61 3 5551 1234', '61', '3', '55511234')
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# 04 Mobile services (Digital - GSM, CDMA, 3G)
|
|
27
|
+
def test_mobile
|
|
28
|
+
parse_test('+61 4 5551 1234', '61', '4', '55511234')
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# 05 Universal/Personal numberings (uncommon)
|
|
32
|
+
def test_personal
|
|
33
|
+
parse_test('+61 5 5551 1234', '61', '5', '55511234')
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# 07 North-east region (QLD)
|
|
37
|
+
def test_north_east
|
|
38
|
+
parse_test('+61 7 5551 1234', '61', '7', '55511234')
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# 08 Central and West region (SA, NT, WA)
|
|
42
|
+
def test_central
|
|
43
|
+
parse_test('+61 8 5551 1234', '61', '8', '55511234')
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# (Geographical region boundaries do not exactly follow state borders.)
|
|
47
|
+
# 1 Non-geographic numbers
|
|
48
|
+
|
|
49
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: elskwid-phone
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 43
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 9
|
|
9
9
|
- 9
|
|
10
|
-
-
|
|
11
|
-
version: 0.9.9.
|
|
10
|
+
- 4
|
|
11
|
+
version: 0.9.9.4
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Tomislav Car
|
|
@@ -18,7 +18,7 @@ autorequire:
|
|
|
18
18
|
bindir: bin
|
|
19
19
|
cert_chain: []
|
|
20
20
|
|
|
21
|
-
date: 2010-07-
|
|
21
|
+
date: 2010-07-30 00:00:00 -07:00
|
|
22
22
|
default_executable:
|
|
23
23
|
dependencies: []
|
|
24
24
|
|
|
@@ -44,6 +44,7 @@ files:
|
|
|
44
44
|
- test/extension_test.rb
|
|
45
45
|
- test/phone_test.rb
|
|
46
46
|
- test/test_helper.rb
|
|
47
|
+
- test/countries/au_test.rb
|
|
47
48
|
- test/countries/ba_test.rb
|
|
48
49
|
- test/countries/be_test.rb
|
|
49
50
|
- test/countries/de_test.rb
|
|
@@ -99,6 +100,7 @@ test_files:
|
|
|
99
100
|
- test/extension_test.rb
|
|
100
101
|
- test/phone_test.rb
|
|
101
102
|
- test/test_helper.rb
|
|
103
|
+
- test/countries/au_test.rb
|
|
102
104
|
- test/countries/ba_test.rb
|
|
103
105
|
- test/countries/be_test.rb
|
|
104
106
|
- test/countries/de_test.rb
|