ssn_validator 1.0.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.
Files changed (55) hide show
  1. data/.gitignore +4 -0
  2. data/History.txt +41 -0
  3. data/LICENSE +20 -0
  4. data/PostInstall.txt +29 -0
  5. data/README.rdoc +98 -0
  6. data/Rakefile +60 -0
  7. data/VERSION.yml +5 -0
  8. data/generators/death_master_file_migration/death_master_file_migration_generator.rb +12 -0
  9. data/generators/death_master_file_migration/templates/migration.rb +26 -0
  10. data/generators/ssn_validator_migration/ssn_validator_migration_generator.rb +12 -0
  11. data/generators/ssn_validator_migration/templates/migration.rb +18 -0
  12. data/lib/ssn_validator.rb +12 -0
  13. data/lib/ssn_validator/models/death_master_file.rb +5 -0
  14. data/lib/ssn_validator/models/death_master_file_loader.rb +235 -0
  15. data/lib/ssn_validator/models/ssn_high_group_code.rb +5 -0
  16. data/lib/ssn_validator/models/ssn_high_group_code_loader.rb +87 -0
  17. data/lib/ssn_validator/models/ssn_validator.rb +94 -0
  18. data/lib/ssn_validator/ntis.rb +9 -0
  19. data/lib/tasks/ssn_validator.rake +24 -0
  20. data/rdoc/classes/DeathMasterFile.html +111 -0
  21. data/rdoc/classes/DeathMasterFileLoader.html +298 -0
  22. data/rdoc/classes/SsnHighGroupCode.html +111 -0
  23. data/rdoc/classes/SsnHighGroupCodeLoader.html +202 -0
  24. data/rdoc/classes/SsnValidator.html +116 -0
  25. data/rdoc/classes/SsnValidator/Ntis.html +111 -0
  26. data/rdoc/classes/SsnValidator/Ssn.html +315 -0
  27. data/rdoc/created.rid +1 -0
  28. data/rdoc/files/LICENSE.html +129 -0
  29. data/rdoc/files/README_rdoc.html +262 -0
  30. data/rdoc/files/lib/ssn_validator/models/death_master_file_loader_rb.html +112 -0
  31. data/rdoc/files/lib/ssn_validator/models/death_master_file_rb.html +108 -0
  32. data/rdoc/files/lib/ssn_validator/models/ssn_high_group_code_loader_rb.html +108 -0
  33. data/rdoc/files/lib/ssn_validator/models/ssn_high_group_code_rb.html +108 -0
  34. data/rdoc/files/lib/ssn_validator/models/ssn_validator_rb.html +101 -0
  35. data/rdoc/files/lib/ssn_validator/ntis_rb.html +101 -0
  36. data/rdoc/files/lib/ssn_validator_rb.html +113 -0
  37. data/rdoc/fr_class_index.html +33 -0
  38. data/rdoc/fr_file_index.html +35 -0
  39. data/rdoc/fr_method_index.html +37 -0
  40. data/rdoc/index.html +24 -0
  41. data/rdoc/rdoc-style.css +208 -0
  42. data/script/console +10 -0
  43. data/script/destroy +14 -0
  44. data/script/generate +14 -0
  45. data/ssn_validator.gemspec +130 -0
  46. data/test/files/test_dmf_funky_data_load.txt +6 -0
  47. data/test/files/test_dmf_initial_load.txt +5 -0
  48. data/test/files/test_dmf_update_load.txt +5 -0
  49. data/test/files/valid_csv_from_funky_data_file.txt +6 -0
  50. data/test/mocks/test/death_master_file_loader.rb +40 -0
  51. data/test/test_death_master_file_loader.rb +113 -0
  52. data/test/test_helper.rb +62 -0
  53. data/test/test_ssn_high_group_code_loader.rb +22 -0
  54. data/test/test_ssn_validator.rb +85 -0
  55. metadata +145 -0
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ssn_validator
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.4
5
+ platform: ruby
6
+ authors:
7
+ - Kevin Tyll
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-02-05 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Validates whether an SSN has likely been issued or not.
17
+ email: kevintyll@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - LICENSE
24
+ - README.rdoc
25
+ files:
26
+ - .gitignore
27
+ - History.txt
28
+ - LICENSE
29
+ - PostInstall.txt
30
+ - README.rdoc
31
+ - Rakefile
32
+ - VERSION.yml
33
+ - generators/death_master_file_migration/death_master_file_migration_generator.rb
34
+ - generators/death_master_file_migration/templates/migration.rb
35
+ - generators/ssn_validator_migration/.DS_Store
36
+ - generators/ssn_validator_migration/ssn_validator_migration_generator.rb
37
+ - generators/ssn_validator_migration/templates/.DS_Store
38
+ - generators/ssn_validator_migration/templates/migration.rb
39
+ - lib/ssn_validator.rb
40
+ - lib/ssn_validator/models/death_master_file.rb
41
+ - lib/ssn_validator/models/death_master_file_loader.rb
42
+ - lib/ssn_validator/models/ssn_high_group_code.rb
43
+ - lib/ssn_validator/models/ssn_high_group_code_loader.rb
44
+ - lib/ssn_validator/models/ssn_validator.rb
45
+ - lib/ssn_validator/ntis.rb
46
+ - lib/tasks/ssn_validator.rake
47
+ - rdoc/classes/DeathMasterFile.html
48
+ - rdoc/classes/DeathMasterFileLoader.html
49
+ - rdoc/classes/SsnHighGroupCode.html
50
+ - rdoc/classes/SsnHighGroupCodeLoader.html
51
+ - rdoc/classes/SsnValidator.html
52
+ - rdoc/classes/SsnValidator/Ntis.html
53
+ - rdoc/classes/SsnValidator/Ssn.html
54
+ - rdoc/created.rid
55
+ - rdoc/files/LICENSE.html
56
+ - rdoc/files/README_rdoc.html
57
+ - rdoc/files/lib/ssn_validator/models/death_master_file_loader_rb.html
58
+ - rdoc/files/lib/ssn_validator/models/death_master_file_rb.html
59
+ - rdoc/files/lib/ssn_validator/models/ssn_high_group_code_loader_rb.html
60
+ - rdoc/files/lib/ssn_validator/models/ssn_high_group_code_rb.html
61
+ - rdoc/files/lib/ssn_validator/models/ssn_validator_rb.html
62
+ - rdoc/files/lib/ssn_validator/ntis_rb.html
63
+ - rdoc/files/lib/ssn_validator_rb.html
64
+ - rdoc/fr_class_index.html
65
+ - rdoc/fr_file_index.html
66
+ - rdoc/fr_method_index.html
67
+ - rdoc/index.html
68
+ - rdoc/rdoc-style.css
69
+ - script/console
70
+ - script/destroy
71
+ - script/generate
72
+ - ssn_validator.gemspec
73
+ - test/files/test_dmf_funky_data_load.txt
74
+ - test/files/test_dmf_initial_load.txt
75
+ - test/files/test_dmf_update_load.txt
76
+ - test/files/valid_csv_from_funky_data_file.txt
77
+ - test/mocks/test/death_master_file_loader.rb
78
+ - test/test_death_master_file_loader.rb
79
+ - test/test_helper.rb
80
+ - test/test_ssn_high_group_code_loader.rb
81
+ - test/test_ssn_validator.rb
82
+ has_rdoc: true
83
+ homepage: http://kevintyll.git.com/ssn_validator
84
+ licenses: []
85
+
86
+ post_install_message: |
87
+
88
+ For more information on ssn_validator, see http://kevintyll.github.com/ssn_validator/
89
+
90
+ * To create the necessary db migration, from the command line, run:
91
+ script/generate ssn_validator_migration
92
+ * Require the gem in your environment.rb file in the Rails::Initializer block:
93
+ config.gem 'kevintyll-ssn_validator', :lib => 'ssn_validator'
94
+ * To load your table with the current SSN data, from the command line, run:
95
+ rake ssn_validator:update_data
96
+ * The SSN data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.
97
+ * If you've purchased the death master file data, create the death_master_files migration:
98
+ script/generate death_master_file_migration
99
+ * To load the dmf files you receive from ntis:
100
+ rake ssn_validator:death_master_file:load_file PATH='path/to/file' AS_OF='2009-03-01'
101
+ * You'll need to pass in the full path to where the file is on disk. You'll also need
102
+ to pass in the date this file's data are as of in the format yyyy-mm-dd.
103
+ * This task must be used to load the initial file you receive from ntis on CD. It can optionally be used
104
+ to load the monthly update files you download from the website. If you manually download the update files,
105
+ you do not need to add your user name and password to the environment.rb file. For a more automated approach
106
+ to loading the update files, add your user name and password to the environment.rb file and use the 2nd rake task.
107
+ * To load the monthly updates from the ntis website:
108
+ * Add your user_name and password to the environment.rb file
109
+ SsnValidator::Ntis.user_name = 'REPLACE WITH YOUR dmf.ntis.gov USER NAME'
110
+ SsnValidator::Ntis.password = 'REPLACE WITH YOUR dmf.ntis.gov PASSWORD'
111
+ * Run the rake task:
112
+ rake ssn_validator:death_master_file:update_data
113
+ * This rake task will determine the most recent file that has been loaded, and loads all subsequent files in order
114
+ from the dmf.ntis.gov website.
115
+ * The death master file data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.
116
+
117
+ rdoc_options:
118
+ - --charset=UTF-8
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: "0"
126
+ version:
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: "0"
132
+ version:
133
+ requirements: []
134
+
135
+ rubyforge_project:
136
+ rubygems_version: 1.3.5
137
+ signing_key:
138
+ specification_version: 3
139
+ summary: Validates whether an SSN has likely been issued or not.
140
+ test_files:
141
+ - test/mocks/test/death_master_file_loader.rb
142
+ - test/test_death_master_file_loader.rb
143
+ - test/test_helper.rb
144
+ - test/test_ssn_high_group_code_loader.rb
145
+ - test/test_ssn_validator.rb