area_code_validator 0.0.5 → 0.0.6

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: 1b54007e087ec7cec4a31bf004ee41989c6f0d9c
4
- data.tar.gz: 0bf629cfd0fe65e49ff48c52e1d2250ff0b22d0d
3
+ metadata.gz: 2c9dee1d7d4ef38d5791b50958471821f8a915e5
4
+ data.tar.gz: 025749cb86dbae89957d592f641313004ba2288f
5
5
  SHA512:
6
- metadata.gz: 99a087bc485289eae77cd641e3addddbe6c0c5cbf1a96b73f8baa02be863c5a9d34f422c6272079159543f0478ca19b01135ced82868c85cbb78fe9ff5837f77
7
- data.tar.gz: f913dbf184debd3eb037a2ebe0f26cc1250f11b311afb4b773d8e576bdc029e3f65e9fd99db05d552cb7148733488db63b890c2c8c207f6cca82a52d92951696
6
+ metadata.gz: 252b8803ff90c179c6f098e639053c1649f6e5caa690bf32cd985d58364bd8107e95e51368e6ac8d95d21a7df58716f5b5622c3eec76577f2a5879945a9b69ef
7
+ data.tar.gz: 5d4fa4d03eb138c0e66689998dd70e91fdf3bd628b48bd8cbadba35a169a8c64ee7f577c7ee6ab4c6f51337d73939a5aff69b8d265f62f9c3a295e6facc49dbc
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.2.3
1
+ ruby-2.2.4
@@ -1,3 +1,3 @@
1
1
  module AreaCodeValidator
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -62,7 +62,7 @@ module AreaCodeValidator
62
62
  'AK' => ['907'],
63
63
  'AZ' => ['480', '520', '602', '623', '928'],
64
64
  'AR' => ['479', '501', '870'],
65
- 'CA' => ['209', '213', '310', '323', '408', '415', '424', '442', '510', '530', '559', '562', '619', '626', '628', '650', '657', '661', '707', '714', '747', '760', '805', '818', '831', '858', '909', '916', '925', '949', '951'],
65
+ 'CA' => ['209', '213', '310', '323', '408', '415', '424', '442', '510', '530', '559', '562', '619', '626', '628', '650', '657', '661', '669', '707', '714', '747', '760', '805', '818', '831', '858', '909', '916', '925', '949', '951'],
66
66
  'CO' => ['303', '719', '720', '970'],
67
67
  'CT' => ['203', '475', '860', '959'],
68
68
  'DE' => ['302'],
@@ -78,38 +78,38 @@ module AreaCodeValidator
78
78
  'KY' => ['270', '364', '502', '606', '859'],
79
79
  'LA' => ['225', '318', '337', '504', '985'],
80
80
  'ME' => ['207'],
81
- 'MD' => ['240', '301', '410', '443'],
81
+ 'MD' => ['240', '301', '410', '443', '667'],
82
82
  'MA' => ['339', '351', '413', '508', '617', '774', '781', '857', '978'],
83
83
  'MI' => ['231', '248', '269', '313', '517', '586', '616', '734', '810', '906', '947', '989'],
84
84
  'MN' => ['218', '320', '507', '612', '651', '763', '952'],
85
85
  'MS' => ['228', '601', '662', '769'],
86
86
  'MO' => ['314', '417', '573', '636', '660', '816'],
87
87
  'MT' => ['406'],
88
- 'NE' => ['308', '402'],
88
+ 'NE' => ['308', '402', '531'],
89
89
  'NV' => ['702', '725', '775'],
90
90
  'NH' => ['603'],
91
91
  'NJ' => ['201', '551', '609', '732', '848', '856', '862', '908', '973'],
92
92
  'NY' => ['212', '315', '347', '516', '518', '585', '607', '631', '646', '680', '716', '718', '845', '914', '917', '929', '934'],
93
93
  'NM' => ['505', '575'],
94
- 'NC' => ['252', '336', '704', '743', '828', '910', '919', '980'],
94
+ 'NC' => ['252', '336', '704', '743', '828', '910', '919', '980', '984'],
95
95
  'ND' => ['701'],
96
96
  'OH' => ['216', '220', '234', '330', '380', '419', '440', '513', '567', '614', '740', '937'],
97
97
  'OK' => ['405', '539', '580', '918'],
98
98
  'OR' => ['458', '503', '541', '971'],
99
- 'PA' => ['215', '267', '412', '484', '570', '610', '717', '724', '814', '878'],
99
+ 'PA' => ['215', '267', '272', '412', '484', '570', '610', '717', '724', '814', '878'],
100
100
  'PR' => ['787', '939'],
101
101
  'RI' => ['401'],
102
102
  'SC' => ['803', '843', '854', '864'],
103
103
  'SD' => ['605'],
104
104
  'TN' => ['423', '615', '629', '731', '865', '901', '931'],
105
- 'TX' => ['210', '214', '254', '281', '325', '346', '361', '409', '430', '432', '469', '512', '682', '713', '806', '817', '830', '832', '903', '915', '936', '940', '956', '972', '979'],
105
+ 'TX' => ['210', '214', '254', '281', '325', '346', '361', '409', '430', '432', '469', '512', '682', '713', '737', '806', '817', '830', '832', '903', '915', '936', '940', '956', '972', '979'],
106
106
  'UT' => ['385', '435', '801'],
107
107
  'VT' => ['802'],
108
108
  'VI' => ['340'],
109
109
  'VA' => ['276', '434', '540', '571', '703', '757', '804'],
110
110
  'WA' => ['206', '253', '360', '425', '509'],
111
111
  'WV' => ['304', '681'],
112
- 'WI' => ['262', '414', '608', '715', '920'],
112
+ 'WI' => ['262', '414', '534', '608', '715', '920'],
113
113
  'WY' => ['307'] }.freeze
114
114
  end
115
115
  end
data/test/test_helper.rb CHANGED
@@ -27,57 +27,57 @@ load configuration.join('schema.rb')
27
27
 
28
28
  class ActiveSupport::TestCase
29
29
  VALID_AREA_CODES = {
30
- 'AL' => ['205', '251', '256', '334', '938'],
31
- 'AK' => ['907'],
32
- 'AZ' => ['480', '520', '602', '623', '928'],
33
- 'AR' => ['479', '501', '870'],
34
- 'CA' => ['209', '213', '310', '323', '408', '415', '424', '442', '510', '530', '559', '562', '619', '626', '650', '657', '661', '707', '714', '747', '760', '805', '818', '831', '858', '909', '916', '925', '949', '951'],
35
- 'CO' => ['303', '719', '720', '970'],
36
- 'CT' => ['203', '475', '860'],
37
- 'DE' => ['302'],
38
- 'DC' => ['202'],
39
- 'FL' => ['239', '305', '321', '352', '386', '407', '561', '727', '754', '772', '786', '813', '850', '863', '904', '941', '954'],
40
- 'GA' => ['229', '404', '470', '478', '678', '706', '762', '770', '912'],
41
- 'HI' => ['808'],
42
- 'ID' => ['208'],
43
- 'IL' => ['217', '224', '309', '312', '331', '618', '630', '708', '773', '779', '815', '847', '872'],
44
- 'IN' => ['219', '260', '317', '574', '765', '812'],
45
- 'IA' => ['319', '515', '563', '641', '712'],
46
- 'KS' => ['316', '620', '785', '913'],
47
- 'KY' => ['270', '502', '606', '859'],
48
- 'LA' => ['225', '318', '337', '504', '985'],
49
- 'ME' => ['207'],
50
- 'MD' => ['240', '301', '410', '443'],
51
- 'MA' => ['339', '351', '413', '508', '617', '774', '781', '857', '978'],
52
- 'MI' => ['231', '248', '269', '313', '517', '586', '616', '734', '810', '906', '947', '989'],
53
- 'MN' => ['218', '320', '507', '612', '651', '763', '952'],
54
- 'MS' => ['228', '601', '662', '769'],
55
- 'MO' => ['314', '417', '573', '636', '660', '816'],
56
- 'MT' => ['406'],
57
- 'NE' => ['308', '402'],
58
- 'NV' => ['702', '775'],
59
- 'NH' => ['603'],
60
- 'NJ' => ['201', '551', '609', '732', '848', '856', '862', '908', '973'],
61
- 'NY' => ['212', '315', '347', '516', '518', '585', '607', '631', '646', '716', '718', '845', '914', '917', '929'],
62
- 'NM' => ['505', '575'],
63
- 'NC' => ['252', '336', '704', '828', '910', '919', '980'],
64
- 'ND' => ['701'],
65
- 'OH' => ['216', '234', '330', '419', '440', '513', '567', '614', '740', '937'],
66
- 'OK' => ['405', '539', '580', '918'],
67
- 'OR' => ['458', '503', '541', '971'],
68
- 'PA' => ['215', '267', '412', '484', '570', '610', '717', '724', '814', '878'],
69
- 'PR' => ['787', '939'],
70
- 'RI' => ['401'],
71
- 'SC' => ['803', '843', '864'],
72
- 'SD' => ['605'],
73
- 'TN' => ['423', '615', '731', '865', '901', '931'],
74
- 'TX' => ['210', '214', '254', '281', '325', '361', '409', '430', '432', '469', '512', '682', '713', '806', '817', '830', '832', '903', '915', '936', '940', '956', '972', '979'],
75
- 'UT' => ['385', '435', '801'],
76
- 'VT' => ['802'],
77
- 'VI' => ['340'],
78
- 'VA' => ['276', '434', '540', '571', '703', '757', '804'],
79
- 'WA' => ['206', '253', '360', '425', '509'],
80
- 'WV' => ['304', '681'],
81
- 'WI' => ['262', '414', '608', '715', '920'],
82
- 'WY' => ['307'] }
30
+ 'AL' => ['205', '251', '256', '334', '938'],
31
+ 'AK' => ['907'],
32
+ 'AZ' => ['480', '520', '602', '623', '928'],
33
+ 'AR' => ['479', '501', '870'],
34
+ 'CA' => ['209', '213', '310', '323', '408', '415', '424', '442', '510', '530', '559', '562', '619', '626', '628', '650', '657', '661', '669', '707', '714', '747', '760', '805', '818', '831', '858', '909', '916', '925', '949', '951'],
35
+ 'CO' => ['303', '719', '720', '970'],
36
+ 'CT' => ['203', '475', '860', '959'],
37
+ 'DE' => ['302'],
38
+ 'DC' => ['202'],
39
+ 'FL' => ['239', '305', '321', '352', '386', '407', '561', '727', '754', '772', '786', '813', '850', '863', '904', '941', '954'],
40
+ 'GA' => ['229', '404', '470', '478', '678', '706', '762', '770', '912'],
41
+ 'HI' => ['808'],
42
+ 'ID' => ['208'],
43
+ 'IL' => ['217', '224', '309', '312', '331', '618', '630', '708', '773', '779', '815', '847', '872'],
44
+ 'IN' => ['219', '260', '317', '463', '574', '765', '812', '930'],
45
+ 'IA' => ['319', '515', '563', '641', '712'],
46
+ 'KS' => ['316', '620', '785', '913'],
47
+ 'KY' => ['270', '364', '502', '606', '859'],
48
+ 'LA' => ['225', '318', '337', '504', '985'],
49
+ 'ME' => ['207'],
50
+ 'MD' => ['240', '301', '410', '443', '667'],
51
+ 'MA' => ['339', '351', '413', '508', '617', '774', '781', '857', '978'],
52
+ 'MI' => ['231', '248', '269', '313', '517', '586', '616', '734', '810', '906', '947', '989'],
53
+ 'MN' => ['218', '320', '507', '612', '651', '763', '952'],
54
+ 'MS' => ['228', '601', '662', '769'],
55
+ 'MO' => ['314', '417', '573', '636', '660', '816'],
56
+ 'MT' => ['406'],
57
+ 'NE' => ['308', '402', '531'],
58
+ 'NV' => ['702', '725', '775'],
59
+ 'NH' => ['603'],
60
+ 'NJ' => ['201', '551', '609', '732', '848', '856', '862', '908', '973'],
61
+ 'NY' => ['212', '315', '347', '516', '518', '585', '607', '631', '646', '680', '716', '718', '845', '914', '917', '929', '934'],
62
+ 'NM' => ['505', '575'],
63
+ 'NC' => ['252', '336', '704', '743', '828', '910', '919', '980', '984'],
64
+ 'ND' => ['701'],
65
+ 'OH' => ['216', '220', '234', '330', '380', '419', '440', '513', '567', '614', '740', '937'],
66
+ 'OK' => ['405', '539', '580', '918'],
67
+ 'OR' => ['458', '503', '541', '971'],
68
+ 'PA' => ['215', '267', '272', '412', '484', '570', '610', '717', '724', '814', '878'],
69
+ 'PR' => ['787', '939'],
70
+ 'RI' => ['401'],
71
+ 'SC' => ['803', '843', '854', '864'],
72
+ 'SD' => ['605'],
73
+ 'TN' => ['423', '615', '629', '731', '865', '901', '931'],
74
+ 'TX' => ['210', '214', '254', '281', '325', '346', '361', '409', '430', '432', '469', '512', '682', '713', '737', '806', '817', '830', '832', '903', '915', '936', '940', '956', '972', '979'],
75
+ 'UT' => ['385', '435', '801'],
76
+ 'VT' => ['802'],
77
+ 'VI' => ['340'],
78
+ 'VA' => ['276', '434', '540', '571', '703', '757', '804'],
79
+ 'WA' => ['206', '253', '360', '425', '509'],
80
+ 'WV' => ['304', '681'],
81
+ 'WI' => ['262', '414', '534', '608', '715', '920'],
82
+ 'WY' => ['307'] }
83
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: area_code_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Medeiros
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -130,7 +130,6 @@ files:
130
130
  - lib/area_code_validator/version.rb
131
131
  - lib/config/area_code_config.rb
132
132
  - lib/extensions/area_code_invalid_validator.rb
133
- - lib/tasks/area_code_validator_tasks.rake
134
133
  - test/area_code_validator_test.rb
135
134
  - test/configuration/database.yml
136
135
  - test/configuration/schema.rb
@@ -157,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
156
  version: '0'
158
157
  requirements: []
159
158
  rubyforge_project:
160
- rubygems_version: 2.4.5.1
159
+ rubygems_version: 2.4.8
161
160
  signing_key:
162
161
  specification_version: 4
163
162
  summary: AreaCodeValidator is a small gem that validates a phone numbers area code
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :area_code_validator do
3
- # # Task goes here
4
- # end