ssn_validator 1.0.4 → 1.0.6

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/History.txt CHANGED
@@ -1,3 +1,14 @@
1
+ == 1.0.6 2010-09-03
2
+ * correct gemspec
3
+
4
+ == 1.0.5 2010-09-03
5
+
6
+ * 1 minor enhancement:
7
+ * Changed the method to load the rake tasks from import to load to be jruby friendly.
8
+ * 1 bug fix:
9
+ * Fixed an infinite loop that can happen if the current month's file is not yet posted on the ssa.gov web site
10
+ on the update_data rake task
11
+
1
12
  == 1.0.4 2010-02-05
2
13
 
3
14
  * 1 bug fixes:
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 0
4
- :patch: 4
4
+ :patch: 6
5
5
  :build:
@@ -4,7 +4,7 @@ class SsnHighGroupCodeLoader
4
4
  def self.load_all_high_group_codes_files
5
5
  months = ['Jan','Feb','Mar','Apr','May','June','July','Aug','Sept','Oct','Nov','Dec']
6
6
  run_file_date = SsnHighGroupCode.maximum(:as_of)
7
- run_file_date = run_file_date ? run_file_date.next_month.beginning_of_month : Date.new(2003,11,01)
7
+ run_file_date = run_file_date ? run_file_date.next_month.beginning_of_month.to_date : Date.new(2003,11,01)
8
8
  last_file_date = Date.today.beginning_of_month
9
9
  while run_file_date <= last_file_date
10
10
  file_processed = false
@@ -22,13 +22,14 @@ class SsnHighGroupCodeLoader
22
22
  text = Net::HTTP.get(URI.parse("http://www.socialsecurity.gov/employer/#{url_mod}/#{file_name}"))
23
23
  unless text.include? 'File Not Found'
24
24
  create_records(parse_text(text),extract_as_of_date(text))
25
- run_file_date = run_file_date.next_month
25
+ #run_file_date = run_file_date.next_month
26
26
  file_processed = true
27
27
  break
28
28
  end
29
29
  end
30
30
  end
31
31
  end
32
+ run_file_date = run_file_date.next_month
32
33
  end
33
34
  end
34
35
 
data/lib/ssn_validator.rb CHANGED
@@ -9,4 +9,4 @@ require 'ssn_validator/models/death_master_file_loader'
9
9
  require 'rake'
10
10
 
11
11
  # Load rake file
12
- import "#{File.dirname(__FILE__)}/tasks/ssn_validator.rake"
12
+ load "#{File.dirname(__FILE__)}/tasks/ssn_validator.rake"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ssn_validator}
8
- s.version = "1.0.4"
8
+ s.version = "1.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kevin Tyll"]
12
- s.date = %q{2010-02-05}
12
+ s.date = %q{2010-09-03}
13
13
  s.description = %q{Validates whether an SSN has likely been issued or not.}
14
14
  s.email = %q{kevintyll@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,15 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssn_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 6
9
+ version: 1.0.6
5
10
  platform: ruby
6
11
  authors:
7
- - Kevin Tyll
12
+ - Kevin Tyll
8
13
  autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-05 00:00:00 -05:00
17
+ date: 2010-09-03 00:00:00 -04:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -20,65 +25,65 @@ executables: []
20
25
  extensions: []
21
26
 
22
27
  extra_rdoc_files:
23
- - LICENSE
24
- - README.rdoc
28
+ - LICENSE
29
+ - README.rdoc
25
30
  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
31
+ - .gitignore
32
+ - History.txt
33
+ - LICENSE
34
+ - PostInstall.txt
35
+ - README.rdoc
36
+ - Rakefile
37
+ - VERSION.yml
38
+ - generators/death_master_file_migration/death_master_file_migration_generator.rb
39
+ - generators/death_master_file_migration/templates/migration.rb
40
+ - generators/ssn_validator_migration/.DS_Store
41
+ - generators/ssn_validator_migration/ssn_validator_migration_generator.rb
42
+ - generators/ssn_validator_migration/templates/.DS_Store
43
+ - generators/ssn_validator_migration/templates/migration.rb
44
+ - lib/ssn_validator.rb
45
+ - lib/ssn_validator/models/death_master_file.rb
46
+ - lib/ssn_validator/models/death_master_file_loader.rb
47
+ - lib/ssn_validator/models/ssn_high_group_code.rb
48
+ - lib/ssn_validator/models/ssn_high_group_code_loader.rb
49
+ - lib/ssn_validator/models/ssn_validator.rb
50
+ - lib/ssn_validator/ntis.rb
51
+ - lib/tasks/ssn_validator.rake
52
+ - rdoc/classes/DeathMasterFile.html
53
+ - rdoc/classes/DeathMasterFileLoader.html
54
+ - rdoc/classes/SsnHighGroupCode.html
55
+ - rdoc/classes/SsnHighGroupCodeLoader.html
56
+ - rdoc/classes/SsnValidator.html
57
+ - rdoc/classes/SsnValidator/Ntis.html
58
+ - rdoc/classes/SsnValidator/Ssn.html
59
+ - rdoc/created.rid
60
+ - rdoc/files/LICENSE.html
61
+ - rdoc/files/README_rdoc.html
62
+ - rdoc/files/lib/ssn_validator/models/death_master_file_loader_rb.html
63
+ - rdoc/files/lib/ssn_validator/models/death_master_file_rb.html
64
+ - rdoc/files/lib/ssn_validator/models/ssn_high_group_code_loader_rb.html
65
+ - rdoc/files/lib/ssn_validator/models/ssn_high_group_code_rb.html
66
+ - rdoc/files/lib/ssn_validator/models/ssn_validator_rb.html
67
+ - rdoc/files/lib/ssn_validator/ntis_rb.html
68
+ - rdoc/files/lib/ssn_validator_rb.html
69
+ - rdoc/fr_class_index.html
70
+ - rdoc/fr_file_index.html
71
+ - rdoc/fr_method_index.html
72
+ - rdoc/index.html
73
+ - rdoc/rdoc-style.css
74
+ - script/console
75
+ - script/destroy
76
+ - script/generate
77
+ - ssn_validator.gemspec
78
+ - test/files/test_dmf_funky_data_load.txt
79
+ - test/files/test_dmf_initial_load.txt
80
+ - test/files/test_dmf_update_load.txt
81
+ - test/files/valid_csv_from_funky_data_file.txt
82
+ - test/mocks/test/death_master_file_loader.rb
83
+ - test/test_death_master_file_loader.rb
84
+ - test/test_helper.rb
85
+ - test/test_ssn_high_group_code_loader.rb
86
+ - test/test_ssn_validator.rb
82
87
  has_rdoc: true
83
88
  homepage: http://kevintyll.git.com/ssn_validator
84
89
  licenses: []
@@ -115,31 +120,35 @@ post_install_message: |
115
120
  * The death master file data is updated monthly, so you'll want to run this rake task monthly to keep your validations accurate.
116
121
 
117
122
  rdoc_options:
118
- - --charset=UTF-8
123
+ - --charset=UTF-8
119
124
  require_paths:
120
- - lib
125
+ - lib
121
126
  required_ruby_version: !ruby/object:Gem::Requirement
127
+ none: false
122
128
  requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- version: "0"
126
- version:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ segments:
132
+ - 0
133
+ version: "0"
127
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
+ none: false
128
136
  requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: "0"
132
- version:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ segments:
140
+ - 0
141
+ version: "0"
133
142
  requirements: []
134
143
 
135
144
  rubyforge_project:
136
- rubygems_version: 1.3.5
145
+ rubygems_version: 1.3.7
137
146
  signing_key:
138
147
  specification_version: 3
139
148
  summary: Validates whether an SSN has likely been issued or not.
140
149
  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
150
+ - test/mocks/test/death_master_file_loader.rb
151
+ - test/test_death_master_file_loader.rb
152
+ - test/test_helper.rb
153
+ - test/test_ssn_high_group_code_loader.rb
154
+ - test/test_ssn_validator.rb