ofac 1.3.0 → 1.3.1
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 +5 -0
- data/VERSION.yml +1 -1
- data/lib/ofac/models/ofac_sdn_loader.rb +10 -2
- data/ofac.gemspec +11 -23
- data/rdoc/CreateOfacSdns.html +2 -2
- data/rdoc/Ofac.html +10 -10
- data/rdoc/OfacMatch.html +5 -5
- data/rdoc/OfacMigration.html +2 -2
- data/rdoc/OfacMigration/Generators.html +2 -2
- data/rdoc/OfacMigration/Generators/BuildGenerator.html +2 -2
- data/rdoc/OfacSdn.html +2 -2
- data/rdoc/OfacSdnLoader.html +5 -5
- data/rdoc/README_rdoc.html +13 -14
- data/rdoc/String.html +2 -2
- data/rdoc/created.rid +5 -5
- data/rdoc/index.html +3 -3
- data/rdoc/table_of_contents.html +7 -7
- metadata +133 -146
- data/pkg/ofac-0.1.0.gem +0 -0
- data/pkg/ofac-1.0.0.gem +0 -0
data/History.txt
CHANGED
data/VERSION.yml
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
require 'active_record'
|
3
|
-
|
3
|
+
begin
|
4
|
+
require 'active_record/connection_adapters/mysql2_adapter'
|
5
|
+
rescue Gem::LoadError
|
6
|
+
begin
|
7
|
+
require 'active_record/connection_adapters/mysql_adapter'
|
8
|
+
rescue Gem::LoadError
|
9
|
+
puts 'Not using mysql, will use active record to load data'
|
10
|
+
end
|
11
|
+
end
|
4
12
|
|
5
13
|
class OfacSdnLoader
|
6
14
|
|
@@ -32,7 +40,7 @@ class OfacSdnLoader
|
|
32
40
|
alt.write(Net::HTTP::Proxy(proxy_addr, proxy_port).get(URI.parse('http://www.treasury.gov/ofac/downloads/alt.pip')))
|
33
41
|
alt.rewind
|
34
42
|
|
35
|
-
if OfacSdn.connection.kind_of?(ActiveRecord::ConnectionAdapters::
|
43
|
+
if OfacSdn.connection.kind_of?(ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter) || OfacSdn.connection.kind_of?(ActiveRecord::ConnectionAdapters::JdbcAdapter)
|
36
44
|
puts "Converting file to csv format for Mysql import. This could take several minutes."
|
37
45
|
yield "Converting file to csv format for Mysql import. This could take several minutes." if block_given?
|
38
46
|
|
data/ofac.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.3.
|
7
|
+
s.name = "ofac"
|
8
|
+
s.version = "1.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Kevin Tyll"]
|
12
|
+
s.date = "2012-10-09"
|
13
|
+
s.description = "Attempts to find a hit on the Office of Foreign Assets Control's Specially Designated Nationals list."
|
14
|
+
s.email = "kevintyll@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
17
|
"README.rdoc"
|
@@ -40,8 +40,6 @@ Gem::Specification.new do |s|
|
|
40
40
|
"nbproject/project.properties",
|
41
41
|
"nbproject/project.xml",
|
42
42
|
"ofac.gemspec",
|
43
|
-
"pkg/ofac-0.1.0.gem",
|
44
|
-
"pkg/ofac-1.0.0.gem",
|
45
43
|
"rdoc/CreateOfacSdns.html",
|
46
44
|
"rdoc/Ofac.html",
|
47
45
|
"rdoc/OfacMatch.html",
|
@@ -119,21 +117,11 @@ Gem::Specification.new do |s|
|
|
119
117
|
"test/ofac_test.rb",
|
120
118
|
"test/test_helper.rb"
|
121
119
|
]
|
122
|
-
s.homepage =
|
123
|
-
s.post_install_message =
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
* Require the gem in your environment.rb file in the Rails::Initializer block:
|
128
|
-
config.gem 'kevintyll-ofac', :lib => 'ofac'
|
129
|
-
* To load your table with the current OFAC data, from the command line, run:
|
130
|
-
rake ofac:update_data
|
131
|
-
|
132
|
-
* The OFAC data is not updated with any regularity, but you can sign up for email notifications when the data changes at
|
133
|
-
http://www.treas.gov/offices/enforcement/ofac/sdn/index.shtml.}
|
134
|
-
s.require_paths = [%q{lib}]
|
135
|
-
s.rubygems_version = %q{1.8.9}
|
136
|
-
s.summary = %q{Attempts to find a hit on the Office of Foreign Assets Control's Specially Designated Nationals list.}
|
120
|
+
s.homepage = "http://github.com/kevintyll/ofac"
|
121
|
+
s.post_install_message = "For more information on ofac, see http://kevintyll.github.com/ofac/\n\n* To create the necessary db migration, from the command line, run:\n script/generate ofac_migration\n* Require the gem in your environment.rb file in the Rails::Initializer block:\n config.gem 'kevintyll-ofac', :lib => 'ofac'\n* To load your table with the current OFAC data, from the command line, run:\n rake ofac:update_data\n\n * The OFAC data is not updated with any regularity, but you can sign up for email notifications when the data changes at\n http://www.treas.gov/offices/enforcement/ofac/sdn/index.shtml."
|
122
|
+
s.require_paths = ["lib"]
|
123
|
+
s.rubygems_version = "1.8.24"
|
124
|
+
s.summary = "Attempts to find a hit on the Office of Foreign Assets Control's Specially Designated Nationals list."
|
137
125
|
|
138
126
|
if s.respond_to? :specification_version then
|
139
127
|
s.specification_version = 3
|
data/rdoc/CreateOfacSdns.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>
|
7
|
+
<title>class CreateOfacSdns - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -234,7 +234,7 @@
|
|
234
234
|
|
235
235
|
<footer id="validator-badges">
|
236
236
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
237
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
237
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
238
238
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
239
239
|
</footer>
|
240
240
|
|
data/rdoc/Ofac.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>
|
7
|
+
<title>class Ofac - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -330,8 +330,8 @@ data on the SDN (Specially Designated Nationals) list.</p>
|
|
330
330
|
matched. So if only name is matched, then the max score is the weight for
|
331
331
|
<code>:name</code> which is 60</p>
|
332
332
|
|
333
|
-
<p>It’s possible to get partial matches, which will add partial weight to
|
334
|
-
|
333
|
+
<p>It’s possible to get partial matches, which will add partial weight to the
|
334
|
+
score. If there is not a match on the element as it is passed in, then
|
335
335
|
each word element gets broken down and matches are tried on each partial
|
336
336
|
element. The weighting is distrubuted equally for each partial that is
|
337
337
|
matched.</p>
|
@@ -375,12 +375,12 @@ and since Tyll was a sounds like match, it will add 30 * .75. So the
|
|
375
375
|
<p>If data is in the database for city and or address, and you pass data in
|
376
376
|
for these elements, the score will be reduced by 10% of the weight if there
|
377
377
|
is no match or sounds like match. So if you get a match on name, you’ve
|
378
|
-
already got a score of 60. So if you don’t pass in an address or city,
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
378
|
+
already got a score of 60. So if you don’t pass in an address or city, or
|
379
|
+
if you do, but there is no city or address info in the database, then your
|
380
|
+
final score will be 60. But if you do pass in a city, say Tampa, and the
|
381
|
+
city in the Database is New York, then we will deduct 10% of the weight (30
|
382
|
+
* .1) = 3 from the score since 30 is the weight for <code>:city</code>. So
|
383
|
+
the final score will be 57.</p>
|
384
384
|
|
385
385
|
<p>If were searching for New York, and the database had New Deli, then there
|
386
386
|
would be a match on New, but not on Deli. Since there were 2 elements in
|
@@ -425,7 +425,7 @@ to the score if there is first a match on <code>:name</code>.</p>
|
|
425
425
|
|
426
426
|
<footer id="validator-badges">
|
427
427
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
428
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
428
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
429
429
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
430
430
|
</footer>
|
431
431
|
|
data/rdoc/OfacMatch.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>
|
7
|
+
<title>class OfacMatch - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -185,10 +185,10 @@ type.</p>
|
|
185
185
|
:<span class="ruby-identifier">zip</span> =<span class="ruby-operator">></span> {:<span class="ruby-identifier">weight</span> =<span class="ruby-operator">></span> <span class="ruby-value">10</span>, :<span class="ruby-identifier">token</span> =<span class="ruby-operator">></span> <span class="ruby-string">'33759'</span>, :<span class="ruby-identifier">type</span> =<span class="ruby-operator">></span> :<span class="ruby-identifier">number</span>}})
|
186
186
|
|
187
187
|
<span class="ruby-identifier">data</span> <span class="ruby-identifier">hash</span> <span class="ruby-identifier">keys</span><span class="ruby-operator">:</span>
|
188
|
-
* <span class="ruby-operator"><</span><span class="ruby-identifier">tt</span><span class="ruby-operator">></span><span class="ruby-identifier">data</span>[:<span class="ruby-identifier">weight</span>]<span class="ruby-operator"><</span><span class="ruby-regexp"
|
189
|
-
* <span class="ruby-operator"><</span><span class="ruby-identifier">tt</span><span class="ruby-operator">></span><span class="ruby-identifier">data</span>[:<span class="ruby-identifier">token</span>]<span class="ruby-operator"><</span><span class="ruby-regexp"
|
188
|
+
* <span class="ruby-operator"><</span><span class="ruby-identifier">tt</span><span class="ruby-operator">></span><span class="ruby-identifier">data</span>[:<span class="ruby-identifier">weight</span>]<span class="ruby-operator"><</span><span class="ruby-regexp">%rtt> - value to apply to the score if there is a match (Default is 100/</span><span class="ruby-identifier">umber</span> <span class="ruby-identifier">of</span> <span class="ruby-identifier">keys</span> <span class="ruby-keyword">in</span> <span class="ruby-identifier">the</span> <span class="ruby-identifier">record</span> <span class="ruby-identifier">hash</span>)
|
189
|
+
* <span class="ruby-operator"><</span><span class="ruby-identifier">tt</span><span class="ruby-operator">></span><span class="ruby-identifier">data</span>[:<span class="ruby-identifier">token</span>]<span class="ruby-operator"><</span><span class="ruby-regexp">%rtt> - string to match
|
190
190
|
* <tt>data[:match]</</span><span class="ruby-identifier">tt</span><span class="ruby-operator">></span> <span class="ruby-operator">-</span> <span class="ruby-identifier">set</span> <span class="ruby-identifier">from</span> <span class="ruby-identifier">records</span> <span class="ruby-identifier">hash</span>
|
191
|
-
* <span class="ruby-operator"><</span><span class="ruby-identifier">tt</span><span class="ruby-operator">></span><span class="ruby-identifier">data</span>[:<span class="ruby-identifier">score</span>]<span class="ruby-operator"><</span><span class="ruby-regexp"
|
191
|
+
* <span class="ruby-operator"><</span><span class="ruby-identifier">tt</span><span class="ruby-operator">></span><span class="ruby-identifier">data</span>[:<span class="ruby-identifier">score</span>]<span class="ruby-operator"><</span><span class="ruby-regexp">%rtt> - output field
|
192
192
|
* <tt>data[:type]</</span><span class="ruby-identifier">tt</span><span class="ruby-operator">></span> <span class="ruby-operator">-</span> <span class="ruby-identifier">the</span> <span class="ruby-identifier">type</span> <span class="ruby-identifier">of</span> <span class="ruby-identifier">match</span> <span class="ruby-identifier">that</span> <span class="ruby-identifier">should</span> <span class="ruby-identifier">be</span> <span class="ruby-identifier">performed</span> (<span class="ruby-identifier">valid</span> <span class="ruby-identifier">values</span> <span class="ruby-identifier">are</span> <span class="ruby-operator">+</span>:<span class="ruby-identifier">sound</span><span class="ruby-operator">+</span> <span class="ruby-operator">|</span> <span class="ruby-operator">+</span>:<span class="ruby-identifier">number</span><span class="ruby-operator">+</span>) (<span class="ruby-constant">Default</span> <span class="ruby-identifier">is</span> <span class="ruby-operator">+</span>:<span class="ruby-identifier">sound</span><span class="ruby-operator">+</span>)
|
193
193
|
</pre>
|
194
194
|
|
@@ -284,7 +284,7 @@ match_records.</p>
|
|
284
284
|
|
285
285
|
<footer id="validator-badges">
|
286
286
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
287
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
287
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
288
288
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
289
289
|
</footer>
|
290
290
|
|
data/rdoc/OfacMigration.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>
|
7
|
+
<title>module OfacMigration - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -129,7 +129,7 @@
|
|
129
129
|
|
130
130
|
<footer id="validator-badges">
|
131
131
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
132
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
132
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
133
133
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
134
134
|
</footer>
|
135
135
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
6
|
|
7
|
-
<title>
|
7
|
+
<title>module OfacMigration::Generators - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -129,7 +129,7 @@
|
|
129
129
|
|
130
130
|
<footer id="validator-badges">
|
131
131
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
132
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
132
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
133
133
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
134
134
|
</footer>
|
135
135
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
6
|
|
7
|
-
<title>
|
7
|
+
<title>class OfacMigration::Generators::BuildGenerator - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -236,7 +236,7 @@
|
|
236
236
|
|
237
237
|
<footer id="validator-badges">
|
238
238
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
239
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
239
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
240
240
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
241
241
|
</footer>
|
242
242
|
|
data/rdoc/OfacSdn.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>
|
7
|
+
<title>class OfacSdn - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -135,7 +135,7 @@
|
|
135
135
|
|
136
136
|
<footer id="validator-badges">
|
137
137
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
138
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
138
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
139
139
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
140
140
|
</footer>
|
141
141
|
|
data/rdoc/OfacSdnLoader.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>
|
7
|
+
<title>class OfacSdnLoader - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -159,7 +159,7 @@ href="http://www.treas.gov/offices/enforcement/ofac/sdn/delimit/index.shtml">www
|
|
159
159
|
|
160
160
|
|
161
161
|
<div class="method-source-code" id="load_current_sdn_file-source">
|
162
|
-
<pre><span class="ruby-comment"># File lib/ofac/models/ofac_sdn_loader.rb, line
|
162
|
+
<pre><span class="ruby-comment"># File lib/ofac/models/ofac_sdn_loader.rb, line 17</span>
|
163
163
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_current_sdn_file</span>
|
164
164
|
<span class="ruby-identifier">puts</span> <span class="ruby-string">"Reloading OFAC sdn data"</span>
|
165
165
|
<span class="ruby-identifier">puts</span> <span class="ruby-string">"Downloading OFAC data from http://www.treas.gov/offices/enforcement/ofac/sdn"</span>
|
@@ -168,7 +168,7 @@ href="http://www.treas.gov/offices/enforcement/ofac/sdn/delimit/index.shtml">www
|
|
168
168
|
<span class="ruby-identifier">sdn</span> = <span class="ruby-constant">Tempfile</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">'sdn'</span>)
|
169
169
|
<span class="ruby-identifier">uri</span> = <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-string">'http://www.treasury.gov/ofac/downloads/sdn.pip'</span>)
|
170
170
|
|
171
|
-
<span class="ruby-identifier">proxy_addr</span>, <span class="ruby-identifier">proxy_port</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-string">'http_proxy'</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-string">"http://"</span>, <span class="ruby-string">""</span>).<span class="ruby-identifier">split</span>(<span class="ruby-regexp"
|
171
|
+
<span class="ruby-identifier">proxy_addr</span>, <span class="ruby-identifier">proxy_port</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-string">'http_proxy'</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-string">"http://"</span>, <span class="ruby-string">""</span>).<span class="ruby-identifier">split</span>(<span class="ruby-regexp">%r:/</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">'http_proxy'</span>]
|
172
172
|
|
173
173
|
<span class="ruby-identifier">bytes</span> = <span class="ruby-identifier">sdn</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span><span class="ruby-operator">::</span><span class="ruby-constant">Proxy</span>(<span class="ruby-identifier">proxy_addr</span>, <span class="ruby-identifier">proxy_port</span>).<span class="ruby-identifier">get</span>(<span class="ruby-identifier">uri</span>))
|
174
174
|
<span class="ruby-identifier">sdn</span>.<span class="ruby-identifier">rewind</span>
|
@@ -186,7 +186,7 @@ href="http://www.treas.gov/offices/enforcement/ofac/sdn/delimit/index.shtml">www
|
|
186
186
|
<span class="ruby-identifier">alt</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span><span class="ruby-operator">::</span><span class="ruby-constant">Proxy</span>(<span class="ruby-identifier">proxy_addr</span>, <span class="ruby-identifier">proxy_port</span>).<span class="ruby-identifier">get</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-string">'http://www.treasury.gov/ofac/downloads/alt.pip'</span>)))
|
187
187
|
<span class="ruby-identifier">alt</span>.<span class="ruby-identifier">rewind</span>
|
188
188
|
|
189
|
-
<span class="ruby-keyword">if</span> <span class="ruby-constant">OfacSdn</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">
|
189
|
+
<span class="ruby-keyword">if</span> <span class="ruby-constant">OfacSdn</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">OfacSdn</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>)
|
190
190
|
<span class="ruby-identifier">puts</span> <span class="ruby-string">"Converting file to csv format for Mysql import. This could take several minutes."</span>
|
191
191
|
<span class="ruby-keyword">yield</span> <span class="ruby-string">"Converting file to csv format for Mysql import. This could take several minutes."</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
192
192
|
|
@@ -226,7 +226,7 @@ href="http://www.treas.gov/offices/enforcement/ofac/sdn/delimit/index.shtml">www
|
|
226
226
|
|
227
227
|
<footer id="validator-badges">
|
228
228
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
229
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
229
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
230
230
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
231
231
|
</footer>
|
232
232
|
|
data/rdoc/README_rdoc.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>README</title>
|
7
|
+
<title>README - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -98,8 +98,8 @@ href="http://www.treas.gov/offices/enforcement/ofac/sdn/index.shtml">www.treas.g
|
|
98
98
|
<h2 id="label-DESCRIPTION%3A">DESCRIPTION:</h2>
|
99
99
|
|
100
100
|
<p>ofac is a ruby gem that tries to find a match of a person’s name and
|
101
|
-
address against the Office of Foreign Assets Control’s Specially
|
102
|
-
|
101
|
+
address against the Office of Foreign Assets Control’s Specially Designated
|
102
|
+
Nationals list…the so called terrorist watch list.</p>
|
103
103
|
|
104
104
|
<p>This gem, like the ssn_validator gem, started as a need for the company I
|
105
105
|
work for, Clarity Services Inc. We decided once again to create a gem out
|
@@ -120,8 +120,8 @@ score. A score of 100 would be a perfect match.</p>
|
|
120
120
|
matched. So if only name is matched, then the max score is the weight for
|
121
121
|
<code>:name</code> which is 60</p>
|
122
122
|
|
123
|
-
<p>It’s possible to get partial matches, which will add partial weight to
|
124
|
-
|
123
|
+
<p>It’s possible to get partial matches, which will add partial weight to the
|
124
|
+
score. If there is not a match on the element as it is passed in, then
|
125
125
|
each word element gets broken down and matches are tried on each partial
|
126
126
|
element. The weighting is distrubuted equally for each partial that is
|
127
127
|
matched.</p>
|
@@ -164,12 +164,12 @@ and since Tyll was a sounds like match, it will add 30 * .75. So the
|
|
164
164
|
<p>If data is in the database for city and or address, and you pass data in
|
165
165
|
for these elements, the score will be reduced by 10% of the weight if there
|
166
166
|
is no match or sounds like match. So if you get a match on name, you’ve
|
167
|
-
already got a score of 60. So if you don’t pass in an address or city,
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
167
|
+
already got a score of 60. So if you don’t pass in an address or city, or
|
168
|
+
if you do, but there is no city or address info in the database, then your
|
169
|
+
final score will be 60. But if you do pass in a city, say Tampa, and the
|
170
|
+
city in the Database is New York, then we will deduct 10% of the weight (30
|
171
|
+
* .1) = 3 from the score since 30 is the weight for <code>:city</code>. So
|
172
|
+
the final score will be 57.</p>
|
173
173
|
|
174
174
|
<p>If were searching for New York, and the database had New Deli, then there
|
175
175
|
would be a match on New, but not on Deli. Since there were 2 elements in
|
@@ -212,8 +212,7 @@ business, or marine vessel</p>
|
|
212
212
|
</li><li>
|
213
213
|
<p><code>:city</code> (weighting = 30%)</p>
|
214
214
|
</li><li>
|
215
|
-
<p>Instantiate the object with the identity’s name, street address, and
|
216
|
-
city.</p>
|
215
|
+
<p>Instantiate the object with the identity’s name, street address, and city.</p>
|
217
216
|
|
218
217
|
<pre class="ruby"><span class="ruby-identifier">ofac</span> = <span class="ruby-constant">Ofac</span>.<span class="ruby-identifier">new</span>(:<span class="ruby-identifier">name</span> =<span class="ruby-operator">></span> <span class="ruby-string">'Kevin Tyll'</span>, :<span class="ruby-identifier">city</span> =<span class="ruby-operator">></span> <span class="ruby-string">'Clearwater'</span>, :<span class="ruby-identifier">address</span> =<span class="ruby-operator">></span> <span class="ruby-string">'123 Somewhere Ln.'</span>)
|
219
218
|
</pre>
|
@@ -296,7 +295,7 @@ block:</p>
|
|
296
295
|
|
297
296
|
<footer id="validator-badges">
|
298
297
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
299
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
298
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
300
299
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
301
300
|
</footer>
|
302
301
|
|
data/rdoc/String.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>
|
7
|
+
<title>class String - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -247,7 +247,7 @@ href="http://en.wikipedia.org/wiki/Soundex">en.wikipedia.org/wiki/Soundex</a></p
|
|
247
247
|
|
248
248
|
<footer id="validator-badges">
|
249
249
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
250
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
250
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
251
251
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
252
252
|
</footer>
|
253
253
|
|
data/rdoc/created.rid
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
Tue, 09 Oct 2012 12:01:44 -0400
|
2
2
|
README.rdoc Fri, 16 Mar 2012 15:37:08 -0400
|
3
|
-
lib/ofac.rb Thu, 02 Sep 2010 14:42:06 -0400
|
4
3
|
lib/generators/ofac_migration/build/build_generator.rb Fri, 16 Mar 2012 15:37:08 -0400
|
5
4
|
lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb Fri, 16 Mar 2012 15:37:08 -0400
|
6
|
-
lib/ofac/ofac_match.rb Wed, 29 Jul 2009 13:27:13 -0400
|
7
|
-
lib/ofac/ruby_string_extensions.rb Mon, 11 May 2009 12:39:33 -0400
|
8
5
|
lib/ofac/models/ofac.rb Mon, 17 Aug 2009 10:17:51 -0400
|
9
6
|
lib/ofac/models/ofac_sdn.rb Tue, 21 Dec 2010 12:34:18 -0500
|
10
|
-
lib/ofac/models/ofac_sdn_loader.rb
|
7
|
+
lib/ofac/models/ofac_sdn_loader.rb Tue, 09 Oct 2012 11:56:19 -0400
|
8
|
+
lib/ofac/ofac_match.rb Wed, 29 Jul 2009 13:27:13 -0400
|
9
|
+
lib/ofac/ruby_string_extensions.rb Mon, 11 May 2009 12:39:33 -0400
|
10
|
+
lib/ofac.rb Thu, 02 Sep 2010 14:42:06 -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>ofac 1.3.
|
7
|
+
<title>ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -83,12 +83,12 @@
|
|
83
83
|
</div>
|
84
84
|
</nav>
|
85
85
|
|
86
|
-
<p>This is the API documentation for ofac 1.3.
|
86
|
+
<p>This is the API documentation for ofac 1.3.1.
|
87
87
|
|
88
88
|
|
89
89
|
<footer id="validator-badges">
|
90
90
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
91
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
91
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
92
92
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
93
93
|
</footer>
|
94
94
|
|
data/rdoc/table_of_contents.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>Table of Contents</title>
|
7
|
+
<title>Table of Contents - ofac 1.3.1</title>
|
8
8
|
|
9
9
|
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
10
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
|
23
23
|
<body class="indexpage">
|
24
|
-
<h1>Table of Contents</h1>
|
24
|
+
<h1>Table of Contents - ofac 1.3.1</h1>
|
25
25
|
|
26
26
|
<h2>Pages</h2>
|
27
27
|
<ul>
|
@@ -85,10 +85,10 @@
|
|
85
85
|
|
86
86
|
<li class="method"><a href="OfacSdnLoader.html#method-c-load_current_sdn_file">::load_current_sdn_file — OfacSdnLoader</a>
|
87
87
|
|
88
|
-
<li class="method"><a href="OfacMatch.html#method-c-new">::new — OfacMatch</a>
|
89
|
-
|
90
88
|
<li class="method"><a href="Ofac.html#method-c-new">::new — Ofac</a>
|
91
89
|
|
90
|
+
<li class="method"><a href="OfacMatch.html#method-c-new">::new — OfacMatch</a>
|
91
|
+
|
92
92
|
<li class="method"><a href="OfacMigration/Generators/BuildGenerator.html#method-c-next_migration_number">::next_migration_number — OfacMigration::Generators::BuildGenerator</a>
|
93
93
|
|
94
94
|
<li class="method"><a href="CreateOfacSdns.html#method-c-up">::up — CreateOfacSdns</a>
|
@@ -103,16 +103,16 @@
|
|
103
103
|
|
104
104
|
<li class="method"><a href="Ofac.html#method-i-possible_hits">#possible_hits — Ofac</a>
|
105
105
|
|
106
|
-
<li class="method"><a href="OfacMatch.html#method-i-score">#score — OfacMatch</a>
|
107
|
-
|
108
106
|
<li class="method"><a href="Ofac.html#method-i-score">#score — Ofac</a>
|
109
107
|
|
108
|
+
<li class="method"><a href="OfacMatch.html#method-i-score">#score — OfacMatch</a>
|
109
|
+
|
110
110
|
</ul>
|
111
111
|
|
112
112
|
|
113
113
|
<footer id="validator-badges">
|
114
114
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
115
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.
|
115
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
116
116
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
117
117
|
</footer>
|
118
118
|
|
metadata
CHANGED
@@ -1,166 +1,153 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ofac
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.1
|
4
5
|
prerelease:
|
5
|
-
version: 1.3.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
7
|
+
authors:
|
8
|
+
- Kevin Tyll
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2012-03-16 00:00:00 Z
|
12
|
+
date: 2012-10-09 00:00:00.000000000 Z
|
14
13
|
dependencies: []
|
15
|
-
|
16
|
-
|
14
|
+
description: Attempts to find a hit on the Office of Foreign Assets Control's Specially
|
15
|
+
Designated Nationals list.
|
17
16
|
email: kevintyll@gmail.com
|
18
17
|
executables: []
|
19
|
-
|
20
18
|
extensions: []
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
- test/ofac_sdn_loader_test.rb
|
125
|
-
- test/ofac_test.rb
|
126
|
-
- test/test_helper.rb
|
19
|
+
extra_rdoc_files:
|
20
|
+
- LICENSE
|
21
|
+
- README.rdoc
|
22
|
+
files:
|
23
|
+
- .document
|
24
|
+
- History.txt
|
25
|
+
- LICENSE
|
26
|
+
- PostInstall.txt
|
27
|
+
- README.rdoc
|
28
|
+
- Rakefile
|
29
|
+
- VERSION.yml
|
30
|
+
- generators/ofac_migration/.DS_Store
|
31
|
+
- generators/ofac_migration/ofac_migration_generator.rb
|
32
|
+
- generators/ofac_migration/templates/.DS_Store
|
33
|
+
- generators/ofac_migration/templates/migration.rb
|
34
|
+
- lib/generators/ofac_migration/build/build_generator.rb
|
35
|
+
- lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
|
36
|
+
- lib/ofac.rb
|
37
|
+
- lib/ofac/models/ofac.rb
|
38
|
+
- lib/ofac/models/ofac_sdn.rb
|
39
|
+
- lib/ofac/models/ofac_sdn_loader.rb
|
40
|
+
- lib/ofac/ofac_match.rb
|
41
|
+
- lib/ofac/ruby_string_extensions.rb
|
42
|
+
- lib/tasks/ofac.rake
|
43
|
+
- nbproject/project.properties
|
44
|
+
- nbproject/project.xml
|
45
|
+
- ofac.gemspec
|
46
|
+
- rdoc/CreateOfacSdns.html
|
47
|
+
- rdoc/Ofac.html
|
48
|
+
- rdoc/OfacMatch.html
|
49
|
+
- rdoc/OfacMigration.html
|
50
|
+
- rdoc/OfacMigration/Generators.html
|
51
|
+
- rdoc/OfacMigration/Generators/BuildGenerator.html
|
52
|
+
- rdoc/OfacSdn.html
|
53
|
+
- rdoc/OfacSdnLoader.html
|
54
|
+
- rdoc/README_rdoc.html
|
55
|
+
- rdoc/String.html
|
56
|
+
- rdoc/classes/Ofac.html
|
57
|
+
- rdoc/classes/OfacMatch.html
|
58
|
+
- rdoc/classes/OfacSdn.html
|
59
|
+
- rdoc/classes/OfacSdnLoader.html
|
60
|
+
- rdoc/classes/String.html
|
61
|
+
- rdoc/created.rid
|
62
|
+
- rdoc/files/README_rdoc.html
|
63
|
+
- rdoc/files/lib/ofac/models/ofac_rb.html
|
64
|
+
- rdoc/files/lib/ofac/models/ofac_sdn_loader_rb.html
|
65
|
+
- rdoc/files/lib/ofac/models/ofac_sdn_rb.html
|
66
|
+
- rdoc/files/lib/ofac/ofac_match_rb.html
|
67
|
+
- rdoc/files/lib/ofac/ruby_string_extensions_rb.html
|
68
|
+
- rdoc/files/lib/ofac_rb.html
|
69
|
+
- rdoc/fr_class_index.html
|
70
|
+
- rdoc/fr_file_index.html
|
71
|
+
- rdoc/fr_method_index.html
|
72
|
+
- rdoc/images/add.png
|
73
|
+
- rdoc/images/brick.png
|
74
|
+
- rdoc/images/brick_link.png
|
75
|
+
- rdoc/images/bug.png
|
76
|
+
- rdoc/images/bullet_black.png
|
77
|
+
- rdoc/images/bullet_toggle_minus.png
|
78
|
+
- rdoc/images/bullet_toggle_plus.png
|
79
|
+
- rdoc/images/date.png
|
80
|
+
- rdoc/images/delete.png
|
81
|
+
- rdoc/images/find.png
|
82
|
+
- rdoc/images/loadingAnimation.gif
|
83
|
+
- rdoc/images/macFFBgHack.png
|
84
|
+
- rdoc/images/package.png
|
85
|
+
- rdoc/images/page_green.png
|
86
|
+
- rdoc/images/page_white_text.png
|
87
|
+
- rdoc/images/page_white_width.png
|
88
|
+
- rdoc/images/plugin.png
|
89
|
+
- rdoc/images/ruby.png
|
90
|
+
- rdoc/images/tag_blue.png
|
91
|
+
- rdoc/images/tag_green.png
|
92
|
+
- rdoc/images/transparent.png
|
93
|
+
- rdoc/images/wrench.png
|
94
|
+
- rdoc/images/wrench_orange.png
|
95
|
+
- rdoc/images/zoom.png
|
96
|
+
- rdoc/index.html
|
97
|
+
- rdoc/js/darkfish.js
|
98
|
+
- rdoc/js/jquery.js
|
99
|
+
- rdoc/js/navigation.js
|
100
|
+
- rdoc/js/search.js
|
101
|
+
- rdoc/js/search_index.js
|
102
|
+
- rdoc/js/searcher.js
|
103
|
+
- rdoc/lib/generators/ofac_migration/build/build_generator_rb.html
|
104
|
+
- rdoc/lib/generators/ofac_migration/build/templates/create_ofac_sdns_rb.html
|
105
|
+
- rdoc/lib/ofac/models/ofac_rb.html
|
106
|
+
- rdoc/lib/ofac/models/ofac_sdn_loader_rb.html
|
107
|
+
- rdoc/lib/ofac/models/ofac_sdn_rb.html
|
108
|
+
- rdoc/lib/ofac/ofac_match_rb.html
|
109
|
+
- rdoc/lib/ofac/ruby_string_extensions_rb.html
|
110
|
+
- rdoc/lib/ofac_rb.html
|
111
|
+
- rdoc/rdoc-style.css
|
112
|
+
- rdoc/rdoc.css
|
113
|
+
- rdoc/table_of_contents.html
|
114
|
+
- test/files/test_address_data_load.pip
|
115
|
+
- test/files/test_alt_data_load.pip
|
116
|
+
- test/files/test_sdn_data_load.pip
|
117
|
+
- test/files/valid_flattened_file.csv
|
118
|
+
- test/mocks/test/ofac_sdn_loader.rb
|
119
|
+
- test/ofac_sdn_loader_test.rb
|
120
|
+
- test/ofac_test.rb
|
121
|
+
- test/test_helper.rb
|
127
122
|
homepage: http://github.com/kevintyll/ofac
|
128
123
|
licenses: []
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
config.gem 'kevintyll-ofac', :lib => 'ofac'
|
137
|
-
* To load your table with the current OFAC data, from the command line, run:
|
138
|
-
rake ofac:update_data
|
139
|
-
|
140
|
-
* The OFAC data is not updated with any regularity, but you can sign up for email notifications when the data changes at
|
141
|
-
http://www.treas.gov/offices/enforcement/ofac/sdn/index.shtml.
|
124
|
+
post_install_message: ! "For more information on ofac, see http://kevintyll.github.com/ofac/\n\n*
|
125
|
+
To create the necessary db migration, from the command line, run:\n script/generate
|
126
|
+
ofac_migration\n* Require the gem in your environment.rb file in the Rails::Initializer
|
127
|
+
block:\n config.gem 'kevintyll-ofac', :lib => 'ofac'\n* To load your table with
|
128
|
+
the current OFAC data, from the command line, run:\n rake ofac:update_data\n\n
|
129
|
+
\ * The OFAC data is not updated with any regularity, but you can sign up for
|
130
|
+
email notifications when the data changes at\n http://www.treas.gov/offices/enforcement/ofac/sdn/index.shtml."
|
142
131
|
rdoc_options: []
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
135
|
none: false
|
148
|
-
requirements:
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ! '>='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
141
|
none: false
|
154
|
-
requirements:
|
155
|
-
|
156
|
-
|
157
|
-
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
158
146
|
requirements: []
|
159
|
-
|
160
147
|
rubyforge_project:
|
161
|
-
rubygems_version: 1.8.
|
148
|
+
rubygems_version: 1.8.24
|
162
149
|
signing_key:
|
163
150
|
specification_version: 3
|
164
|
-
summary: Attempts to find a hit on the Office of Foreign Assets Control's Specially
|
151
|
+
summary: Attempts to find a hit on the Office of Foreign Assets Control's Specially
|
152
|
+
Designated Nationals list.
|
165
153
|
test_files: []
|
166
|
-
|
data/pkg/ofac-0.1.0.gem
DELETED
Binary file
|
data/pkg/ofac-1.0.0.gem
DELETED
Binary file
|