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 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.1 2009-05-13
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
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 1
3
+ :patch: 2
4
4
  :major: 1
@@ -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]}"},
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kevintyll-ofac
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Tyll