ssn_validator 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.11 2012-10-09
2
+
3
+ * 1 enhancement:
4
+ * use mysql2 adapter if it is installed, otherwise use mysql adapter if installed. Fall back to Active Record if neither.
5
+
1
6
  == 1.0.10 2012-02-14
2
7
 
3
8
  * 1 enhancements:
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 0
4
- :patch: 10
4
+ :patch: 11
5
5
  :build:
@@ -1,7 +1,15 @@
1
1
  require 'net/http'
2
2
  require 'net/https'
3
3
  require 'active_record'
4
- require 'active_record/connection_adapters/mysql_adapter'
4
+ begin
5
+ require 'active_record/connection_adapters/mysql2_adapter'
6
+ rescue Gem::LoadError
7
+ begin
8
+ require 'active_record/connection_adapters/mysql_adapter'
9
+ rescue Gem::LoadError
10
+ puts 'Not using mysql, will use active record to load data'
11
+ end
12
+ end
5
13
  require 'ssn_validator/ntis'
6
14
 
7
15
  class DeathMasterFileLoader
@@ -31,7 +39,7 @@ class DeathMasterFileLoader
31
39
 
32
40
  def load_file
33
41
 
34
- if DeathMasterFile.connection.kind_of?(ActiveRecord::ConnectionAdapters::MysqlAdapter) || DeathMasterFile.connection.kind_of?(ActiveRecord::ConnectionAdapters::JdbcAdapter)
42
+ if DeathMasterFile.connection.kind_of?(ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter) || DeathMasterFile.connection.kind_of?(ActiveRecord::ConnectionAdapters::JdbcAdapter)
35
43
  puts "Converting file to csv format for Mysql import. This could take several minutes."
36
44
  yield "Converting file to csv format for Mysql import. This could take several minutes." if block_given?
37
45
 
@@ -165,7 +165,7 @@ loaded, and loads each missing file in sequence up to the current file.</p>
165
165
 
166
166
 
167
167
  <div class="method-source-code" id="load_update_files_from_web-source">
168
- <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 80</span>
168
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 88</span>
169
169
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_update_files_from_web</span>
170
170
  <span class="ruby-identifier">max_as_of</span> = <span class="ruby-constant">DeathMasterFile</span>.<span class="ruby-identifier">maximum</span>(<span class="ruby-value">:as_of</span>)
171
171
  <span class="ruby-identifier">run_file_date</span> = <span class="ruby-identifier">max_as_of</span>.<span class="ruby-identifier">beginning_of_month</span>.<span class="ruby-identifier">next_month</span>
@@ -209,7 +209,7 @@ data is accurate.</p>
209
209
 
210
210
 
211
211
  <div class="method-source-code" id="new-source">
212
- <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 11</span>
212
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 19</span>
213
213
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path_or_url</span>, <span class="ruby-identifier">file_as_of</span>)
214
214
  <span class="ruby-ivar">@file_path_or_url</span> = <span class="ruby-identifier">path_or_url</span>
215
215
  <span class="ruby-ivar">@file_as_of</span> = <span class="ruby-identifier">file_as_of</span>
@@ -247,7 +247,7 @@ data is accurate.</p>
247
247
 
248
248
 
249
249
  <div class="method-source-code" id="get_file_from_web-source">
250
- <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 47</span>
250
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 55</span>
251
251
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_file_from_web</span>
252
252
  <span class="ruby-identifier">uri</span> = <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-ivar">@file_path_or_url</span>)
253
253
 
@@ -303,10 +303,10 @@ data is accurate.</p>
303
303
 
304
304
 
305
305
  <div class="method-source-code" id="load_file-source">
306
- <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 32</span>
306
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 40</span>
307
307
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">load_file</span>
308
308
 
309
- <span class="ruby-keyword">if</span> <span class="ruby-constant">DeathMasterFile</span>.<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">ConnectionAdapters</span><span class="ruby-operator">::</span><span class="ruby-constant">MysqlAdapter</span>) <span class="ruby-operator">||</span> <span class="ruby-constant">DeathMasterFile</span>.<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">ConnectionAdapters</span><span class="ruby-operator">::</span><span class="ruby-constant">JdbcAdapter</span>)
309
+ <span class="ruby-keyword">if</span> <span class="ruby-constant">DeathMasterFile</span>.<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">ConnectionAdapters</span><span class="ruby-operator">::</span><span class="ruby-constant">AbstractMysqlAdapter</span>) <span class="ruby-operator">||</span> <span class="ruby-constant">DeathMasterFile</span>.<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">ConnectionAdapters</span><span class="ruby-operator">::</span><span class="ruby-constant">JdbcAdapter</span>)
310
310
  <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;Converting file to csv format for Mysql import. This could take several minutes.&quot;</span>
311
311
  <span class="ruby-keyword">yield</span> <span class="ruby-string">&quot;Converting file to csv format for Mysql import. This could take several minutes.&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
312
312
 
@@ -344,7 +344,7 @@ data is accurate.</p>
344
344
 
345
345
 
346
346
  <div class="method-source-code" id="valid-3F-source">
347
- <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 17</span>
347
+ <pre><span class="ruby-comment"># File lib/ssn_validator/models/death_master_file_loader.rb, line 25</span>
348
348
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">valid?</span>
349
349
  <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&quot;path_or_url not specified&quot;</span>) <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@file_path_or_url</span>
350
350
  <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&quot;as_of not specified&quot;</span>) <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@file_as_of</span>
data/rdoc/created.rid CHANGED
@@ -1,10 +1,10 @@
1
- Tue, 14 Feb 2012 13:36:53 -0500
1
+ Tue, 09 Oct 2012 11:33:09 -0400
2
2
  README.rdoc Fri, 24 Apr 2009 11:28:41 -0400
3
3
  LICENSE Fri, 24 Apr 2009 11:27:55 -0400
4
4
  lib/ssn_validator.rb Thu, 02 Sep 2010 14:39:54 -0400
5
5
  lib/ssn_validator/ntis.rb Wed, 22 Apr 2009 16:43:19 -0400
6
6
  lib/ssn_validator/models/death_master_file.rb Tue, 21 Dec 2010 12:06:44 -0500
7
- lib/ssn_validator/models/death_master_file_loader.rb Tue, 14 Feb 2012 13:12:59 -0500
7
+ lib/ssn_validator/models/death_master_file_loader.rb Tue, 09 Oct 2012 11:23:00 -0400
8
8
  lib/ssn_validator/models/ssn_high_group_code.rb Tue, 21 Dec 2010 12:06:44 -0500
9
9
  lib/ssn_validator/models/ssn_high_group_code_loader.rb Mon, 07 Mar 2011 16:14:18 -0500
10
10
  lib/ssn_validator/models/ssn_validator.rb Fri, 24 Apr 2009 14:53:40 -0400
data/rdoc/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
6
 
7
- <title>ssn_validator 1.0.10</title>
7
+ <title>ssn_validator 1.0.11</title>
8
8
 
9
9
  <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
10
 
@@ -81,7 +81,7 @@
81
81
  </div>
82
82
  </nav>
83
83
 
84
- <p>This is the API documentation for ssn_validator 1.0.10.
84
+ <p>This is the API documentation for ssn_validator 1.0.11.
85
85
 
86
86
 
87
87
  <footer id="validator-badges">
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{ssn_validator}
8
- s.version = "1.0.10"
7
+ s.name = "ssn_validator"
8
+ s.version = "1.0.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Kevin Tyll}]
12
- s.date = %q{2012-02-14}
13
- s.description = %q{Validates whether an SSN has likely been issued or not.}
14
- s.email = %q{kevintyll@gmail.com}
11
+ s.authors = ["Kevin Tyll"]
12
+ s.date = "2012-10-09"
13
+ s.description = "Validates whether an SSN has likely been issued or not."
14
+ s.email = "kevintyll@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.rdoc"
@@ -121,40 +121,11 @@ Gem::Specification.new do |s|
121
121
  "test/test_ssn_high_group_code_loader.rb",
122
122
  "test/test_ssn_validator.rb"
123
123
  ]
124
- s.homepage = %q{http://kevintyll.git.com/ssn_validator}
125
- s.post_install_message = %q{
126
- For more information on ssn_validator, see http://kevintyll.github.com/ssn_validator/
127
-
128
- * To create the necessary db migration, from the command line, run:
129
- script/generate ssn_validator_migration
130
- * Require the gem in your environment.rb file in the Rails::Initializer block:
131
- config.gem 'kevintyll-ssn_validator', :lib => 'ssn_validator'
132
- * To load your table with the current SSN data, from the command line, run:
133
- rake ssn_validator:update_data
134
- * The SSN data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.
135
- * If you've purchased the death master file data, create the death_master_files migration:
136
- script/generate death_master_file_migration
137
- * To load the dmf files you receive from ntis:
138
- rake ssn_validator:death_master_file:load_file PATH='path/to/file' AS_OF='2009-03-01'
139
- * You'll need to pass in the full path to where the file is on disk. You'll also need
140
- to pass in the date this file's data are as of in the format yyyy-mm-dd.
141
- * This task must be used to load the initial file you receive from ntis on CD. It can optionally be used
142
- to load the monthly update files you download from the website. If you manually download the update files,
143
- you do not need to add your user name and password to the environment.rb file. For a more automated approach
144
- to loading the update files, add your user name and password to the environment.rb file and use the 2nd rake task.
145
- * To load the monthly updates from the ntis website:
146
- * Add your user_name and password to the environment.rb file
147
- SsnValidator::Ntis.user_name = 'REPLACE WITH YOUR dmf.ntis.gov USER NAME'
148
- SsnValidator::Ntis.password = 'REPLACE WITH YOUR dmf.ntis.gov PASSWORD'
149
- * Run the rake task:
150
- rake ssn_validator:death_master_file:update_data
151
- * This rake task will determine the most recent file that has been loaded, and loads all subsequent files in order
152
- from the dmf.ntis.gov website.
153
- * The death master file data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.
154
- }
155
- s.require_paths = [%q{lib}]
156
- s.rubygems_version = %q{1.8.9}
157
- s.summary = %q{Validates whether an SSN has likely been issued or not.}
124
+ s.homepage = "http://kevintyll.git.com/ssn_validator"
125
+ s.post_install_message = "\nFor more information on ssn_validator, see http://kevintyll.github.com/ssn_validator/\n\n* To create the necessary db migration, from the command line, run:\n script/generate ssn_validator_migration\n* Require the gem in your environment.rb file in the Rails::Initializer block:\n config.gem 'kevintyll-ssn_validator', :lib => 'ssn_validator'\n* To load your table with the current SSN data, from the command line, run:\n rake ssn_validator:update_data\n * The SSN data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.\n* If you've purchased the death master file data, create the death_master_files migration:\n script/generate death_master_file_migration\n* To load the dmf files you receive from ntis:\n rake ssn_validator:death_master_file:load_file PATH='path/to/file' AS_OF='2009-03-01'\n * You'll need to pass in the full path to where the file is on disk. You'll also need\n to pass in the date this file's data are as of in the format yyyy-mm-dd.\n * This task must be used to load the initial file you receive from ntis on CD. It can optionally be used\n to load the monthly update files you download from the website. If you manually download the update files,\n you do not need to add your user name and password to the environment.rb file. For a more automated approach\n to loading the update files, add your user name and password to the environment.rb file and use the 2nd rake task.\n* To load the monthly updates from the ntis website:\n * Add your user_name and password to the environment.rb file\n SsnValidator::Ntis.user_name = 'REPLACE WITH YOUR dmf.ntis.gov USER NAME'\n SsnValidator::Ntis.password = 'REPLACE WITH YOUR dmf.ntis.gov PASSWORD'\n * Run the rake task:\n rake ssn_validator:death_master_file:update_data\n * This rake task will determine the most recent file that has been loaded, and loads all subsequent files in order\n from the dmf.ntis.gov website.\n * The death master file data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.\n"
126
+ s.require_paths = ["lib"]
127
+ s.rubygems_version = "1.8.24"
128
+ s.summary = "Validates whether an SSN has likely been issued or not."
158
129
 
159
130
  if s.respond_to? :specification_version then
160
131
  s.specification_version = 3
metadata CHANGED
@@ -1,187 +1,174 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ssn_validator
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.11
4
5
  prerelease:
5
- version: 1.0.10
6
6
  platform: ruby
7
- authors:
8
- - Kevin Tyll
7
+ authors:
8
+ - Kevin Tyll
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-02-14 00:00:00 Z
12
+ date: 2012-10-09 00:00:00.000000000 Z
14
13
  dependencies: []
15
-
16
14
  description: Validates whether an SSN has likely been issued or not.
17
15
  email: kevintyll@gmail.com
18
16
  executables: []
19
-
20
17
  extensions: []
21
-
22
- extra_rdoc_files:
23
- - LICENSE
24
- - README.rdoc
25
- files:
26
- - History.txt
27
- - LICENSE
28
- - PostInstall.txt
29
- - README.rdoc
30
- - Rakefile
31
- - VERSION.yml
32
- - generators/death_master_file_migration/death_master_file_migration_generator.rb
33
- - generators/death_master_file_migration/templates/migration.rb
34
- - generators/ssn_validator_migration/.DS_Store
35
- - generators/ssn_validator_migration/ssn_validator_migration_generator.rb
36
- - generators/ssn_validator_migration/templates/.DS_Store
37
- - generators/ssn_validator_migration/templates/migration.rb
38
- - lib/ssn_validator.rb
39
- - lib/ssn_validator/models/death_master_file.rb
40
- - lib/ssn_validator/models/death_master_file_loader.rb
41
- - lib/ssn_validator/models/ssn_high_group_code.rb
42
- - lib/ssn_validator/models/ssn_high_group_code_loader.rb
43
- - lib/ssn_validator/models/ssn_validator.rb
44
- - lib/ssn_validator/ntis.rb
45
- - lib/tasks/ssn_validator.rake
46
- - rdoc/DeathMasterFile.html
47
- - rdoc/DeathMasterFileLoader.html
48
- - rdoc/LICENSE.html
49
- - rdoc/README_rdoc.html
50
- - rdoc/SsnHighGroupCode.html
51
- - rdoc/SsnHighGroupCodeLoader.html
52
- - rdoc/SsnValidator.html
53
- - rdoc/SsnValidator/Ntis.html
54
- - rdoc/SsnValidator/Ssn.html
55
- - rdoc/classes/DeathMasterFile.html
56
- - rdoc/classes/DeathMasterFileLoader.html
57
- - rdoc/classes/SsnHighGroupCode.html
58
- - rdoc/classes/SsnHighGroupCodeLoader.html
59
- - rdoc/classes/SsnValidator.html
60
- - rdoc/classes/SsnValidator/Ntis.html
61
- - rdoc/classes/SsnValidator/Ssn.html
62
- - rdoc/created.rid
63
- - rdoc/files/LICENSE.html
64
- - rdoc/files/README_rdoc.html
65
- - rdoc/files/lib/ssn_validator/models/death_master_file_loader_rb.html
66
- - rdoc/files/lib/ssn_validator/models/death_master_file_rb.html
67
- - rdoc/files/lib/ssn_validator/models/ssn_high_group_code_loader_rb.html
68
- - rdoc/files/lib/ssn_validator/models/ssn_high_group_code_rb.html
69
- - rdoc/files/lib/ssn_validator/models/ssn_validator_rb.html
70
- - rdoc/files/lib/ssn_validator/ntis_rb.html
71
- - rdoc/files/lib/ssn_validator_rb.html
72
- - rdoc/fr_class_index.html
73
- - rdoc/fr_file_index.html
74
- - rdoc/fr_method_index.html
75
- - rdoc/images/add.png
76
- - rdoc/images/brick.png
77
- - rdoc/images/brick_link.png
78
- - rdoc/images/bug.png
79
- - rdoc/images/bullet_black.png
80
- - rdoc/images/bullet_toggle_minus.png
81
- - rdoc/images/bullet_toggle_plus.png
82
- - rdoc/images/date.png
83
- - rdoc/images/delete.png
84
- - rdoc/images/find.png
85
- - rdoc/images/loadingAnimation.gif
86
- - rdoc/images/macFFBgHack.png
87
- - rdoc/images/package.png
88
- - rdoc/images/page_green.png
89
- - rdoc/images/page_white_text.png
90
- - rdoc/images/page_white_width.png
91
- - rdoc/images/plugin.png
92
- - rdoc/images/ruby.png
93
- - rdoc/images/tag_blue.png
94
- - rdoc/images/tag_green.png
95
- - rdoc/images/transparent.png
96
- - rdoc/images/wrench.png
97
- - rdoc/images/wrench_orange.png
98
- - rdoc/images/zoom.png
99
- - rdoc/index.html
100
- - rdoc/js/darkfish.js
101
- - rdoc/js/jquery.js
102
- - rdoc/js/navigation.js
103
- - rdoc/js/search.js
104
- - rdoc/js/search_index.js
105
- - rdoc/js/searcher.js
106
- - rdoc/lib/ssn_validator/models/death_master_file_loader_rb.html
107
- - rdoc/lib/ssn_validator/models/death_master_file_rb.html
108
- - rdoc/lib/ssn_validator/models/ssn_high_group_code_loader_rb.html
109
- - rdoc/lib/ssn_validator/models/ssn_high_group_code_rb.html
110
- - rdoc/lib/ssn_validator/models/ssn_validator_rb.html
111
- - rdoc/lib/ssn_validator/ntis_rb.html
112
- - rdoc/lib/ssn_validator_rb.html
113
- - rdoc/rdoc-style.css
114
- - rdoc/rdoc.css
115
- - rdoc/table_of_contents.html
116
- - script/console
117
- - script/destroy
118
- - script/generate
119
- - ssn_validator.gemspec
120
- - test/files/test_dmf_funky_data_load.txt
121
- - test/files/test_dmf_initial_load.txt
122
- - test/files/test_dmf_update_load.txt
123
- - test/files/valid_csv_from_funky_data_file.txt
124
- - test/mocks/test/death_master_file_loader.rb
125
- - test/test_death_master_file_loader.rb
126
- - test/test_helper.rb
127
- - test/test_ssn_high_group_code_loader.rb
128
- - test/test_ssn_validator.rb
18
+ extra_rdoc_files:
19
+ - LICENSE
20
+ - README.rdoc
21
+ files:
22
+ - History.txt
23
+ - LICENSE
24
+ - PostInstall.txt
25
+ - README.rdoc
26
+ - Rakefile
27
+ - VERSION.yml
28
+ - generators/death_master_file_migration/death_master_file_migration_generator.rb
29
+ - generators/death_master_file_migration/templates/migration.rb
30
+ - generators/ssn_validator_migration/.DS_Store
31
+ - generators/ssn_validator_migration/ssn_validator_migration_generator.rb
32
+ - generators/ssn_validator_migration/templates/.DS_Store
33
+ - generators/ssn_validator_migration/templates/migration.rb
34
+ - lib/ssn_validator.rb
35
+ - lib/ssn_validator/models/death_master_file.rb
36
+ - lib/ssn_validator/models/death_master_file_loader.rb
37
+ - lib/ssn_validator/models/ssn_high_group_code.rb
38
+ - lib/ssn_validator/models/ssn_high_group_code_loader.rb
39
+ - lib/ssn_validator/models/ssn_validator.rb
40
+ - lib/ssn_validator/ntis.rb
41
+ - lib/tasks/ssn_validator.rake
42
+ - rdoc/DeathMasterFile.html
43
+ - rdoc/DeathMasterFileLoader.html
44
+ - rdoc/LICENSE.html
45
+ - rdoc/README_rdoc.html
46
+ - rdoc/SsnHighGroupCode.html
47
+ - rdoc/SsnHighGroupCodeLoader.html
48
+ - rdoc/SsnValidator.html
49
+ - rdoc/SsnValidator/Ntis.html
50
+ - rdoc/SsnValidator/Ssn.html
51
+ - rdoc/classes/DeathMasterFile.html
52
+ - rdoc/classes/DeathMasterFileLoader.html
53
+ - rdoc/classes/SsnHighGroupCode.html
54
+ - rdoc/classes/SsnHighGroupCodeLoader.html
55
+ - rdoc/classes/SsnValidator.html
56
+ - rdoc/classes/SsnValidator/Ntis.html
57
+ - rdoc/classes/SsnValidator/Ssn.html
58
+ - rdoc/created.rid
59
+ - rdoc/files/LICENSE.html
60
+ - rdoc/files/README_rdoc.html
61
+ - rdoc/files/lib/ssn_validator/models/death_master_file_loader_rb.html
62
+ - rdoc/files/lib/ssn_validator/models/death_master_file_rb.html
63
+ - rdoc/files/lib/ssn_validator/models/ssn_high_group_code_loader_rb.html
64
+ - rdoc/files/lib/ssn_validator/models/ssn_high_group_code_rb.html
65
+ - rdoc/files/lib/ssn_validator/models/ssn_validator_rb.html
66
+ - rdoc/files/lib/ssn_validator/ntis_rb.html
67
+ - rdoc/files/lib/ssn_validator_rb.html
68
+ - rdoc/fr_class_index.html
69
+ - rdoc/fr_file_index.html
70
+ - rdoc/fr_method_index.html
71
+ - rdoc/images/add.png
72
+ - rdoc/images/brick.png
73
+ - rdoc/images/brick_link.png
74
+ - rdoc/images/bug.png
75
+ - rdoc/images/bullet_black.png
76
+ - rdoc/images/bullet_toggle_minus.png
77
+ - rdoc/images/bullet_toggle_plus.png
78
+ - rdoc/images/date.png
79
+ - rdoc/images/delete.png
80
+ - rdoc/images/find.png
81
+ - rdoc/images/loadingAnimation.gif
82
+ - rdoc/images/macFFBgHack.png
83
+ - rdoc/images/package.png
84
+ - rdoc/images/page_green.png
85
+ - rdoc/images/page_white_text.png
86
+ - rdoc/images/page_white_width.png
87
+ - rdoc/images/plugin.png
88
+ - rdoc/images/ruby.png
89
+ - rdoc/images/tag_blue.png
90
+ - rdoc/images/tag_green.png
91
+ - rdoc/images/transparent.png
92
+ - rdoc/images/wrench.png
93
+ - rdoc/images/wrench_orange.png
94
+ - rdoc/images/zoom.png
95
+ - rdoc/index.html
96
+ - rdoc/js/darkfish.js
97
+ - rdoc/js/jquery.js
98
+ - rdoc/js/navigation.js
99
+ - rdoc/js/search.js
100
+ - rdoc/js/search_index.js
101
+ - rdoc/js/searcher.js
102
+ - rdoc/lib/ssn_validator/models/death_master_file_loader_rb.html
103
+ - rdoc/lib/ssn_validator/models/death_master_file_rb.html
104
+ - rdoc/lib/ssn_validator/models/ssn_high_group_code_loader_rb.html
105
+ - rdoc/lib/ssn_validator/models/ssn_high_group_code_rb.html
106
+ - rdoc/lib/ssn_validator/models/ssn_validator_rb.html
107
+ - rdoc/lib/ssn_validator/ntis_rb.html
108
+ - rdoc/lib/ssn_validator_rb.html
109
+ - rdoc/rdoc-style.css
110
+ - rdoc/rdoc.css
111
+ - rdoc/table_of_contents.html
112
+ - script/console
113
+ - script/destroy
114
+ - script/generate
115
+ - ssn_validator.gemspec
116
+ - test/files/test_dmf_funky_data_load.txt
117
+ - test/files/test_dmf_initial_load.txt
118
+ - test/files/test_dmf_update_load.txt
119
+ - test/files/valid_csv_from_funky_data_file.txt
120
+ - test/mocks/test/death_master_file_loader.rb
121
+ - test/test_death_master_file_loader.rb
122
+ - test/test_helper.rb
123
+ - test/test_ssn_high_group_code_loader.rb
124
+ - test/test_ssn_validator.rb
129
125
  homepage: http://kevintyll.git.com/ssn_validator
130
126
  licenses: []
131
-
132
- post_install_message: |
133
-
134
- For more information on ssn_validator, see http://kevintyll.github.com/ssn_validator/
135
-
136
- * To create the necessary db migration, from the command line, run:
137
- script/generate ssn_validator_migration
138
- * Require the gem in your environment.rb file in the Rails::Initializer block:
139
- config.gem 'kevintyll-ssn_validator', :lib => 'ssn_validator'
140
- * To load your table with the current SSN data, from the command line, run:
141
- rake ssn_validator:update_data
142
- * The SSN data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.
143
- * If you've purchased the death master file data, create the death_master_files migration:
144
- script/generate death_master_file_migration
145
- * To load the dmf files you receive from ntis:
146
- rake ssn_validator:death_master_file:load_file PATH='path/to/file' AS_OF='2009-03-01'
147
- * You'll need to pass in the full path to where the file is on disk. You'll also need
148
- to pass in the date this file's data are as of in the format yyyy-mm-dd.
149
- * This task must be used to load the initial file you receive from ntis on CD. It can optionally be used
150
- to load the monthly update files you download from the website. If you manually download the update files,
151
- you do not need to add your user name and password to the environment.rb file. For a more automated approach
152
- to loading the update files, add your user name and password to the environment.rb file and use the 2nd rake task.
153
- * To load the monthly updates from the ntis website:
154
- * Add your user_name and password to the environment.rb file
155
- SsnValidator::Ntis.user_name = 'REPLACE WITH YOUR dmf.ntis.gov USER NAME'
156
- SsnValidator::Ntis.password = 'REPLACE WITH YOUR dmf.ntis.gov PASSWORD'
157
- * Run the rake task:
158
- rake ssn_validator:death_master_file:update_data
159
- * This rake task will determine the most recent file that has been loaded, and loads all subsequent files in order
160
- from the dmf.ntis.gov website.
161
- * The death master file data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.
162
-
127
+ post_install_message: ! "\nFor more information on ssn_validator, see http://kevintyll.github.com/ssn_validator/\n\n*
128
+ To create the necessary db migration, from the command line, run:\n script/generate
129
+ ssn_validator_migration\n* Require the gem in your environment.rb file in the Rails::Initializer
130
+ block:\n config.gem 'kevintyll-ssn_validator', :lib => 'ssn_validator'\n* To
131
+ load your table with the current SSN data, from the command line, run:\n rake
132
+ ssn_validator:update_data\n * The SSN data is updated monthly, so you'll want
133
+ to run this rake task monthly to keep your validations accurate.\n* If you've purchased
134
+ the death master file data, create the death_master_files migration:\n script/generate
135
+ death_master_file_migration\n* To load the dmf files you receive from ntis:\n rake
136
+ ssn_validator:death_master_file:load_file PATH='path/to/file' AS_OF='2009-03-01'\n
137
+ \ * You'll need to pass in the full path to where the file is on disk. You'll
138
+ also need\n to pass in the date this file's data are as of in the format yyyy-mm-dd.\n
139
+ \ * This task must be used to load the initial file you receive from ntis on CD.
140
+ \ It can optionally be used\n to load the monthly update files you download
141
+ from the website. If you manually download the update files,\n you do not
142
+ need to add your user name and password to the environment.rb file. For a more
143
+ automated approach\n to loading the update files, add your user name and password
144
+ to the environment.rb file and use the 2nd rake task.\n* To load the monthly updates
145
+ from the ntis website:\n * Add your user_name and password to the environment.rb
146
+ file\n SsnValidator::Ntis.user_name = 'REPLACE WITH YOUR dmf.ntis.gov USER
147
+ NAME'\n SsnValidator::Ntis.password = 'REPLACE WITH YOUR dmf.ntis.gov PASSWORD'\n
148
+ \ * Run the rake task:\n rake ssn_validator:death_master_file:update_data\n
149
+ \ * This rake task will determine the most recent file that has been loaded,
150
+ and loads all subsequent files in order\n from the dmf.ntis.gov website.\n
151
+ \ * The death master file data is updated monthly, so you'll want to run this
152
+ rake task monthly to keep your validations accurate.\n"
163
153
  rdoc_options: []
164
-
165
- require_paths:
166
- - lib
167
- required_ruby_version: !ruby/object:Gem::Requirement
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
168
157
  none: false
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: "0"
173
- required_rubygems_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ! '>='
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
163
  none: false
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- version: "0"
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
179
168
  requirements: []
180
-
181
169
  rubyforge_project:
182
- rubygems_version: 1.8.9
170
+ rubygems_version: 1.8.24
183
171
  signing_key:
184
172
  specification_version: 3
185
173
  summary: Validates whether an SSN has likely been issued or not.
186
174
  test_files: []
187
-