kevintyll-ofac 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -1
- data/VERSION.yml +1 -1
- data/lib/ofac/models/ofac.rb +2 -2
- metadata +1 -1
data/History.txt
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
* 1 minor enhancement:
|
14
14
|
* Modified the match alogorithm to reduct the score if there is not an address or city match if the data is in the database.
|
15
15
|
|
16
|
-
== 1.1.
|
16
|
+
== 1.1.2 2009-05-13
|
17
17
|
|
18
18
|
* 2 minor changes:
|
19
19
|
* 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
|
data/VERSION.yml
CHANGED
data/lib/ofac/models/ofac.rb
CHANGED
@@ -109,8 +109,8 @@ class Ofac
|
|
109
109
|
from ofac_sdns
|
110
110
|
where name is not null
|
111
111
|
and sdn_type = 'individual'
|
112
|
-
and #{sql_name_partial}
|
113
|
-
or #{sql_alt_name_partial}")
|
112
|
+
and (#{sql_name_partial}
|
113
|
+
or #{sql_alt_name_partial})")
|
114
114
|
possible_sdns = possible_sdns.collect {|sdn|{:name => "#{sdn['name']}|#{sdn['alternate_identity_name']}", :city => sdn['city'], :address => sdn['address']}}
|
115
115
|
|
116
116
|
match = OfacMatch.new({:name => {:weight => 60, :token => "#{@identity[:name]}"},
|