ofac 2.0.1 → 2.0.2
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.
- checksums.yaml +4 -4
- data/Rakefile +24 -49
- data/lib/ofac/version.rb +1 -0
- data/test/test_helper.rb +5 -1
- metadata +118 -94
- data/.document +0 -5
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/History.txt +0 -134
- data/PostInstall.txt +0 -11
- data/VERSION.yml +0 -5
- data/generators/ofac_migration/.DS_Store +0 -0
- data/generators/ofac_migration/ofac_migration_generator.rb +0 -12
- data/generators/ofac_migration/templates/.DS_Store +0 -0
- data/generators/ofac_migration/templates/migration.rb +0 -31
- data/nbproject/project.properties +0 -7
- data/nbproject/project.xml +0 -15
- data/ofac.gemspec +0 -129
- data/rdoc/CreateOfacSdns.html +0 -249
- data/rdoc/Ofac.html +0 -434
- data/rdoc/OfacMatch.html +0 -299
- data/rdoc/OfacMigration.html +0 -138
- data/rdoc/OfacMigration/Generators.html +0 -138
- data/rdoc/OfacMigration/Generators/BuildGenerator.html +0 -251
- data/rdoc/OfacSdn.html +0 -209
- data/rdoc/OfacSdnLoader.html +0 -238
- data/rdoc/README_rdoc.html +0 -323
- data/rdoc/String.html +0 -262
- data/rdoc/classes/Ofac.html +0 -411
- data/rdoc/classes/OfacMatch.html +0 -239
- data/rdoc/classes/OfacSdn.html +0 -111
- data/rdoc/classes/OfacSdnLoader.html +0 -190
- data/rdoc/classes/String.html +0 -207
- data/rdoc/created.rid +0 -10
- data/rdoc/files/README_rdoc.html +0 -317
- data/rdoc/files/lib/ofac/models/ofac_rb.html +0 -101
- data/rdoc/files/lib/ofac/models/ofac_sdn_loader_rb.html +0 -110
- data/rdoc/files/lib/ofac/models/ofac_sdn_rb.html +0 -108
- data/rdoc/files/lib/ofac/ofac_match_rb.html +0 -101
- data/rdoc/files/lib/ofac/ruby_string_extensions_rb.html +0 -101
- data/rdoc/files/lib/ofac_rb.html +0 -113
- data/rdoc/fr_class_index.html +0 -31
- data/rdoc/fr_file_index.html +0 -33
- data/rdoc/fr_method_index.html +0 -35
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/arrow_up.png +0 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +0 -96
- data/rdoc/js/darkfish.js +0 -155
- data/rdoc/js/jquery.js +0 -18
- data/rdoc/js/navigation.js +0 -142
- data/rdoc/js/search.js +0 -94
- data/rdoc/js/search_index.js +0 -1
- data/rdoc/js/searcher.js +0 -228
- data/rdoc/lib/generators/ofac_migration/build/build_generator_rb.html +0 -97
- data/rdoc/lib/generators/ofac_migration/build/templates/create_ofac_sdns_rb.html +0 -97
- data/rdoc/lib/ofac/models/ofac_rb.html +0 -97
- data/rdoc/lib/ofac/models/ofac_sdn_loader_rb.html +0 -97
- data/rdoc/lib/ofac/models/ofac_sdn_rb.html +0 -97
- data/rdoc/lib/ofac/ofac_match_rb.html +0 -97
- data/rdoc/lib/ofac/ruby_string_extensions_rb.html +0 -97
- data/rdoc/lib/ofac_rb.html +0 -97
- data/rdoc/rdoc-style.css +0 -208
- data/rdoc/rdoc.css +0 -595
- data/rdoc/table_of_contents.html +0 -120
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f55a0fbba9481d96a1b0592d49de6e0ff0f12a9
|
|
4
|
+
data.tar.gz: 97ea7a47105ff4d963d0a2d4b7d817817c2c69f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02f44233b14370b4333670363837fc097600eed4aeb9535cfbbb7a9ef93f05fc46c1ee02c346bf47e13201f470f69ec001cbd4a508d0eb32b358298ed25e17e4
|
|
7
|
+
data.tar.gz: 30212eae044da4ad407a78eb8594eb5068842bbb164eb48d05977feb53314fbb5191ef56f9a4fcaaeaa7d364ec4e3a5a7e691f0646a0f503238b22fead145c25
|
data/Rakefile
CHANGED
|
@@ -1,61 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
require 'rake'
|
|
3
|
-
require 'yaml'
|
|
4
|
-
|
|
1
|
+
#!/usr/bin/env rake
|
|
5
2
|
begin
|
|
6
|
-
require '
|
|
7
|
-
Jeweler::Tasks.new do |gem|
|
|
8
|
-
gem.name = "ofac"
|
|
9
|
-
gem.summary = %Q{Attempts to find a hit on the Office of Foreign Assets Control's Specially Designated Nationals list.}
|
|
10
|
-
gem.description = %Q{Attempts to find a hit on the Office of Foreign Assets Control's Specially Designated Nationals list.}
|
|
11
|
-
gem.email = "kevintyll@gmail.com"
|
|
12
|
-
gem.homepage = "http://github.com/kevintyll/ofac"
|
|
13
|
-
gem.authors = ["Kevin Tyll"]
|
|
14
|
-
gem.post_install_message = File.readlines("PostInstall.txt").join("")
|
|
15
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
Jeweler::GemcutterTasks.new
|
|
19
|
-
|
|
3
|
+
require 'bundler/setup'
|
|
20
4
|
rescue LoadError
|
|
21
|
-
puts
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
require 'rake/testtask'
|
|
25
|
-
Rake::TestTask.new(:test) do |test|
|
|
26
|
-
test.libs << 'lib' << 'test'
|
|
27
|
-
test.pattern = 'test/**/*_test.rb'
|
|
28
|
-
test.verbose = true
|
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
29
6
|
end
|
|
30
|
-
|
|
31
7
|
begin
|
|
32
|
-
require '
|
|
33
|
-
Rcov::RcovTask.new do |test|
|
|
34
|
-
test.libs << 'test'
|
|
35
|
-
test.pattern = 'test/**/*_test.rb'
|
|
36
|
-
test.verbose = true
|
|
37
|
-
end
|
|
8
|
+
require 'rdoc/task'
|
|
38
9
|
rescue LoadError
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
10
|
+
require 'rdoc/rdoc'
|
|
11
|
+
require 'rake/rdoctask'
|
|
12
|
+
RDoc::Task = Rake::RDocTask
|
|
42
13
|
end
|
|
43
14
|
|
|
15
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
|
16
|
+
rdoc.rdoc_dir = 'rdoc'
|
|
17
|
+
rdoc.title = 'Ofac'
|
|
18
|
+
rdoc.options << '--line-numbers'
|
|
19
|
+
rdoc.rdoc_files.include('README.rdoc')
|
|
20
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
21
|
+
rdoc.rdoc_files.include('app/**/*.rb')
|
|
22
|
+
end
|
|
44
23
|
|
|
45
|
-
|
|
24
|
+
Bundler::GemHelper.install_tasks
|
|
46
25
|
|
|
47
|
-
require '
|
|
48
|
-
Rake::RDocTask.new do |rdoc|
|
|
49
|
-
if File.exist?('VERSION.yml')
|
|
50
|
-
config = YAML.load(File.read('VERSION.yml'))
|
|
51
|
-
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
|
52
|
-
else
|
|
53
|
-
version = ""
|
|
54
|
-
end
|
|
26
|
+
require 'rake/testtask'
|
|
55
27
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
28
|
+
Rake::TestTask.new(:test) do |t|
|
|
29
|
+
t.libs << 'lib'
|
|
30
|
+
t.libs << 'test'
|
|
31
|
+
t.pattern = 'test/**/*_test.rb'
|
|
32
|
+
t.verbose = false
|
|
60
33
|
end
|
|
61
34
|
|
|
35
|
+
|
|
36
|
+
task :default => :test
|
data/lib/ofac/version.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '2.0.2'
|
data/test/test_helper.rb
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
require 'rubygems'
|
|
2
1
|
require 'test/unit'
|
|
2
|
+
require 'turn'
|
|
3
3
|
require 'shoulda'
|
|
4
4
|
require 'mocks/test/ofac_sdn_loader'
|
|
5
5
|
|
|
6
|
+
# for RubyMine
|
|
7
|
+
require 'minitest/reporters'
|
|
8
|
+
MiniTest::Reporters.use! [MiniTest::Reporters::RubyMineReporter.new] if ENV["RUBYMINE_TESTUNIT_REPORTER"]
|
|
9
|
+
|
|
6
10
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
7
11
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
8
12
|
require 'ofac'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ofac
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Tyll
|
|
@@ -9,110 +9,125 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2014-01-07 00:00:00.000000000 Z
|
|
12
|
-
dependencies:
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rails
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '>='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '>='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bundler
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: sqlite3
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: shoulda
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: minitest
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - '>='
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - '>='
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: turn
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - '>='
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - '>='
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: minitest-reporters
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - '>='
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - '>='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
13
111
|
description: Attempts to find a hit on the Office of Foreign Assets Control's Specially
|
|
14
112
|
Designated Nationals list.
|
|
15
113
|
email: kevintyll@gmail.com
|
|
16
114
|
executables: []
|
|
17
115
|
extensions: []
|
|
18
|
-
extra_rdoc_files:
|
|
19
|
-
- LICENSE
|
|
20
|
-
- README.rdoc
|
|
116
|
+
extra_rdoc_files: []
|
|
21
117
|
files:
|
|
22
|
-
- .document
|
|
23
|
-
- .ruby-gemset
|
|
24
|
-
- .ruby-version
|
|
25
|
-
- History.txt
|
|
26
|
-
- LICENSE
|
|
27
|
-
- PostInstall.txt
|
|
28
|
-
- README.rdoc
|
|
29
|
-
- Rakefile
|
|
30
|
-
- VERSION.yml
|
|
31
|
-
- generators/ofac_migration/.DS_Store
|
|
32
|
-
- generators/ofac_migration/ofac_migration_generator.rb
|
|
33
|
-
- generators/ofac_migration/templates/.DS_Store
|
|
34
|
-
- generators/ofac_migration/templates/migration.rb
|
|
35
118
|
- lib/generators/ofac_migration/build/build_generator.rb
|
|
36
119
|
- lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
|
|
37
|
-
- lib/ofac.rb
|
|
38
120
|
- lib/ofac/models/ofac.rb
|
|
39
121
|
- lib/ofac/models/ofac_sdn.rb
|
|
40
122
|
- lib/ofac/models/ofac_sdn_loader.rb
|
|
41
123
|
- lib/ofac/ofac_match.rb
|
|
42
124
|
- lib/ofac/ruby_string_extensions.rb
|
|
125
|
+
- lib/ofac/version.rb
|
|
126
|
+
- lib/ofac.rb
|
|
43
127
|
- lib/tasks/ofac.rake
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
- rdoc/CreateOfacSdns.html
|
|
48
|
-
- rdoc/Ofac.html
|
|
49
|
-
- rdoc/OfacMatch.html
|
|
50
|
-
- rdoc/OfacMigration.html
|
|
51
|
-
- rdoc/OfacMigration/Generators.html
|
|
52
|
-
- rdoc/OfacMigration/Generators/BuildGenerator.html
|
|
53
|
-
- rdoc/OfacSdn.html
|
|
54
|
-
- rdoc/OfacSdnLoader.html
|
|
55
|
-
- rdoc/README_rdoc.html
|
|
56
|
-
- rdoc/String.html
|
|
57
|
-
- rdoc/classes/Ofac.html
|
|
58
|
-
- rdoc/classes/OfacMatch.html
|
|
59
|
-
- rdoc/classes/OfacSdn.html
|
|
60
|
-
- rdoc/classes/OfacSdnLoader.html
|
|
61
|
-
- rdoc/classes/String.html
|
|
62
|
-
- rdoc/created.rid
|
|
63
|
-
- rdoc/files/README_rdoc.html
|
|
64
|
-
- rdoc/files/lib/ofac/models/ofac_rb.html
|
|
65
|
-
- rdoc/files/lib/ofac/models/ofac_sdn_loader_rb.html
|
|
66
|
-
- rdoc/files/lib/ofac/models/ofac_sdn_rb.html
|
|
67
|
-
- rdoc/files/lib/ofac/ofac_match_rb.html
|
|
68
|
-
- rdoc/files/lib/ofac/ruby_string_extensions_rb.html
|
|
69
|
-
- rdoc/files/lib/ofac_rb.html
|
|
70
|
-
- rdoc/fr_class_index.html
|
|
71
|
-
- rdoc/fr_file_index.html
|
|
72
|
-
- rdoc/fr_method_index.html
|
|
73
|
-
- rdoc/images/add.png
|
|
74
|
-
- rdoc/images/arrow_up.png
|
|
75
|
-
- rdoc/images/brick.png
|
|
76
|
-
- rdoc/images/brick_link.png
|
|
77
|
-
- rdoc/images/bug.png
|
|
78
|
-
- rdoc/images/bullet_black.png
|
|
79
|
-
- rdoc/images/bullet_toggle_minus.png
|
|
80
|
-
- rdoc/images/bullet_toggle_plus.png
|
|
81
|
-
- rdoc/images/date.png
|
|
82
|
-
- rdoc/images/delete.png
|
|
83
|
-
- rdoc/images/find.png
|
|
84
|
-
- rdoc/images/loadingAnimation.gif
|
|
85
|
-
- rdoc/images/macFFBgHack.png
|
|
86
|
-
- rdoc/images/package.png
|
|
87
|
-
- rdoc/images/page_green.png
|
|
88
|
-
- rdoc/images/page_white_text.png
|
|
89
|
-
- rdoc/images/page_white_width.png
|
|
90
|
-
- rdoc/images/plugin.png
|
|
91
|
-
- rdoc/images/ruby.png
|
|
92
|
-
- rdoc/images/tag_blue.png
|
|
93
|
-
- rdoc/images/tag_green.png
|
|
94
|
-
- rdoc/images/transparent.png
|
|
95
|
-
- rdoc/images/wrench.png
|
|
96
|
-
- rdoc/images/wrench_orange.png
|
|
97
|
-
- rdoc/images/zoom.png
|
|
98
|
-
- rdoc/index.html
|
|
99
|
-
- rdoc/js/darkfish.js
|
|
100
|
-
- rdoc/js/jquery.js
|
|
101
|
-
- rdoc/js/navigation.js
|
|
102
|
-
- rdoc/js/search.js
|
|
103
|
-
- rdoc/js/search_index.js
|
|
104
|
-
- rdoc/js/searcher.js
|
|
105
|
-
- rdoc/lib/generators/ofac_migration/build/build_generator_rb.html
|
|
106
|
-
- rdoc/lib/generators/ofac_migration/build/templates/create_ofac_sdns_rb.html
|
|
107
|
-
- rdoc/lib/ofac/models/ofac_rb.html
|
|
108
|
-
- rdoc/lib/ofac/models/ofac_sdn_loader_rb.html
|
|
109
|
-
- rdoc/lib/ofac/models/ofac_sdn_rb.html
|
|
110
|
-
- rdoc/lib/ofac/ofac_match_rb.html
|
|
111
|
-
- rdoc/lib/ofac/ruby_string_extensions_rb.html
|
|
112
|
-
- rdoc/lib/ofac_rb.html
|
|
113
|
-
- rdoc/rdoc-style.css
|
|
114
|
-
- rdoc/rdoc.css
|
|
115
|
-
- rdoc/table_of_contents.html
|
|
128
|
+
- LICENSE
|
|
129
|
+
- Rakefile
|
|
130
|
+
- README.rdoc
|
|
116
131
|
- test/files/test_address_data_load.pip
|
|
117
132
|
- test/files/test_alt_data_load.pip
|
|
118
133
|
- test/files/test_sdn_data_load.pip
|
|
@@ -121,8 +136,9 @@ files:
|
|
|
121
136
|
- test/ofac_sdn_loader_test.rb
|
|
122
137
|
- test/ofac_test.rb
|
|
123
138
|
- test/test_helper.rb
|
|
124
|
-
homepage:
|
|
125
|
-
licenses:
|
|
139
|
+
homepage: https://github.com/kevintyll/ofac
|
|
140
|
+
licenses:
|
|
141
|
+
- MIT
|
|
126
142
|
metadata: {}
|
|
127
143
|
post_install_message: |-
|
|
128
144
|
For more information on ofac, see http://kevintyll.github.com/ofac/
|
|
@@ -156,4 +172,12 @@ signing_key:
|
|
|
156
172
|
specification_version: 4
|
|
157
173
|
summary: Attempts to find a hit on the Office of Foreign Assets Control's Specially
|
|
158
174
|
Designated Nationals list.
|
|
159
|
-
test_files:
|
|
175
|
+
test_files:
|
|
176
|
+
- test/files/test_address_data_load.pip
|
|
177
|
+
- test/files/test_alt_data_load.pip
|
|
178
|
+
- test/files/test_sdn_data_load.pip
|
|
179
|
+
- test/files/valid_flattened_file.csv
|
|
180
|
+
- test/mocks/test/ofac_sdn_loader.rb
|
|
181
|
+
- test/ofac_sdn_loader_test.rb
|
|
182
|
+
- test/ofac_test.rb
|
|
183
|
+
- test/test_helper.rb
|
data/.document
DELETED
data/.ruby-gemset
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ofac
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-p247
|
data/History.txt
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
== 2.0.1 2014-01-07
|
|
2
|
-
|
|
3
|
-
* 1 bug fix
|
|
4
|
-
* Make backward compatible for Rails 3
|
|
5
|
-
|
|
6
|
-
== 2.0.0 2014-01-07
|
|
7
|
-
|
|
8
|
-
* 1 enhancement:
|
|
9
|
-
* Rails 4 compatible. Rails 2 no longer supported.
|
|
10
|
-
* 1 bug fix
|
|
11
|
-
* Tests now pass using sqlite
|
|
12
|
-
|
|
13
|
-
== 1.3.2 2013-06-05
|
|
14
|
-
|
|
15
|
-
* 1 enhancement:
|
|
16
|
-
* merge pkarnawat's commit to make sql db agnostic. SQL was assuming db was case insensitive.
|
|
17
|
-
|
|
18
|
-
== 1.3.1 2012-10-09
|
|
19
|
-
|
|
20
|
-
* 1 enhancement:
|
|
21
|
-
* use mysql2 adapter if it is installed, otherwise use mysql adapter if installed. Fall back to Active Record if neither.
|
|
22
|
-
|
|
23
|
-
== 1.3.0 2012-03-16
|
|
24
|
-
|
|
25
|
-
* 1 enhancements:
|
|
26
|
-
* Rails 3 generator added
|
|
27
|
-
|
|
28
|
-
== 1.2.5 2012-02-15
|
|
29
|
-
|
|
30
|
-
* 1 enhancements:
|
|
31
|
-
* didn't add the proxy everywhere
|
|
32
|
-
|
|
33
|
-
== 1.2.4 2012-02-14
|
|
34
|
-
|
|
35
|
-
* 1 enhancements:
|
|
36
|
-
* use a proxy server if the ENV['http_proxy'] variable is set. ie. your.proxy.addr:8080
|
|
37
|
-
|
|
38
|
-
== 1.2.2, 1.2.3 2011-03-07
|
|
39
|
-
|
|
40
|
-
* 1 enhancement:
|
|
41
|
-
* added yields to the loader class to pass statuses to the calling class.
|
|
42
|
-
|
|
43
|
-
== 1.2.1 2010-12-21
|
|
44
|
-
|
|
45
|
-
* 1 enhancement:
|
|
46
|
-
* changed require 'activerecord' to 'active_record'.
|
|
47
|
-
|
|
48
|
-
== 1.2.0 2010-12-14
|
|
49
|
-
|
|
50
|
-
* 1 enhancement:
|
|
51
|
-
* The url to download the sdn file changed. Modified the loader so it will not truncate the table
|
|
52
|
-
if it does not get a good file.
|
|
53
|
-
|
|
54
|
-
== 1.1.12 2010-09-03
|
|
55
|
-
|
|
56
|
-
* 1 minor enhancement:
|
|
57
|
-
* Changed the method to load the rake tasks from import to load to be jruby friendly.
|
|
58
|
-
|
|
59
|
-
== 1.1.11 2009-07-29
|
|
60
|
-
|
|
61
|
-
* 1 minor enhancement:
|
|
62
|
-
* Removed the changes from 1.1.10. 1.1.10 produced a score of 0 when a higher score was more accurate.
|
|
63
|
-
Changed the scoring algorithm to not include partial matches on sounds like. This code has little impact on score, and
|
|
64
|
-
has a very high overhead on performance.
|
|
65
|
-
|
|
66
|
-
== 1.1.10 2009-07-28
|
|
67
|
-
|
|
68
|
-
* 1 minor enhancement:
|
|
69
|
-
* Modified the select in OfacSdn to use the city to pull records from the database. This is another compromise to improve performance,
|
|
70
|
-
but still get a score. The db_hit? method is still faster, but this will still calculate a score for accuracy.
|
|
71
|
-
|
|
72
|
-
== 1.1.9 2009-07-24
|
|
73
|
-
|
|
74
|
-
* 1 minor enhancement:
|
|
75
|
-
* Added a method, db_hit? for when your more concerned with speed than accuracy. db_hit? will retun true if there is an exact name match
|
|
76
|
-
in the ofac_sdn database. This method ignores address and city and does not produce a score.
|
|
77
|
-
Usage: Ofac.new({:name => 'Oscar Hernandez', :city => 'Clearwater', :address => '123 somewhere ln'}).db_hit?
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
== 1.1.8 2009-06-30
|
|
81
|
-
|
|
82
|
-
* 1 bug fix:
|
|
83
|
-
* Refactored the select on OfacSdn to use the AR connection instead of building sql and using the raw connection. Fixes a bug
|
|
84
|
-
introducted in 1.1.6 where quotes in the name raised an error.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
== 1.1.7 2009-06-30
|
|
88
|
-
|
|
89
|
-
* 1 bug fix:
|
|
90
|
-
* fixed error when passing a nil value into the new :first_name or :last_name hash values when initializing the Ofac object.
|
|
91
|
-
|
|
92
|
-
== 1.1.6 2009-06-29
|
|
93
|
-
|
|
94
|
-
* 1 minor enhancement:
|
|
95
|
-
* Allow passing of first and last name seperately...to improve performance.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
== 1.1.5 2009-06-03
|
|
99
|
-
|
|
100
|
-
* 1 bug fix:
|
|
101
|
-
* fixed a bug that threw an error if only single character initials are passed in for the name.
|
|
102
|
-
|
|
103
|
-
== 1.1.4 2009-06-02
|
|
104
|
-
|
|
105
|
-
* 1 minor enhancement:
|
|
106
|
-
* Improved performance by ignoring initial in names when searching the database for possible hits.
|
|
107
|
-
|
|
108
|
-
== 1.1.3 2009-05-15
|
|
109
|
-
|
|
110
|
-
* 1 bug fix:
|
|
111
|
-
* fixed a bug that threw an error if a space was passed in for the name.
|
|
112
|
-
|
|
113
|
-
== 1.1.2 2009-05-13
|
|
114
|
-
|
|
115
|
-
* 2 minor changes:
|
|
116
|
-
* Changed the sql in the initial search to do a like instead of a soundex. For short names, the soundex returned almost the entire table
|
|
117
|
-
making the process take too long.
|
|
118
|
-
* Also changed the sql to only return individuals, also for the sake of performance.
|
|
119
|
-
|
|
120
|
-
== 1.1.0 2009-05-12
|
|
121
|
-
|
|
122
|
-
* 1 minor enhancement:
|
|
123
|
-
* Modified the match alogorithm to reduct the score if there is not an address or city match if the data is in the database.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
== 1.0.0 2009-05-11
|
|
127
|
-
|
|
128
|
-
* 1 major enhancement:
|
|
129
|
-
* Initail release
|
|
130
|
-
|
|
131
|
-
== 0.1.0 2009-05-7
|
|
132
|
-
|
|
133
|
-
* 1 major enhancement:
|
|
134
|
-
* Table creation and data load task complete
|