big-phoney 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/big-phoney.gemspec +1 -1
- data/lib/big_phoney/phone_number.rb +24 -2
- metadata +3 -3
data/big-phoney.gemspec
CHANGED
@@ -31,8 +31,30 @@ module BigPhoney
|
|
31
31
|
998
|
32
32
|
]
|
33
33
|
AREA_CODES = {
|
34
|
-
:
|
35
|
-
:
|
34
|
+
:american_samoa => %w[684],
|
35
|
+
:canada => %w[204 250 289 306 403 416 418 450 506 514 519 604 613 647 705 709 778 780 807 819 867 902 905],
|
36
|
+
:anguilla => %w[264],
|
37
|
+
:antigua_and_barbuda => %w[268],
|
38
|
+
:bahamas => %w[242],
|
39
|
+
:barbados => %w[246],
|
40
|
+
:bermuda => %w[441],
|
41
|
+
:british_virgin_islands => %w[284],
|
42
|
+
:cayman_islands => %w[345],
|
43
|
+
:dominica => %w[767],
|
44
|
+
:dominican_republic => %w[809 829 849],
|
45
|
+
:grenada => %w[473],
|
46
|
+
:guam => %[671],
|
47
|
+
:jamaica => %w[876],
|
48
|
+
:montserrat => %w[664],
|
49
|
+
:northern_marianas_islands => %w[670],
|
50
|
+
:puerto_rico => %w[787 939],
|
51
|
+
:saint_kitts_and_nevis => %w[869],
|
52
|
+
:saint_lucia => %w[758],
|
53
|
+
:saint_vincent_and_the_grenadines => %w[784],
|
54
|
+
:sint_maarten => %w[721],
|
55
|
+
:trinidad_and_tobago => %w[868],
|
56
|
+
:turks_and_caicos_islands => %w[649],
|
57
|
+
:us_virgin_islands => %w[340]
|
36
58
|
}
|
37
59
|
|
38
60
|
def self.assume_us? ; @assume_us end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: big-phoney
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pat Nakajima
|