kevintyll-ofac 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -18,4 +18,9 @@
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
20
20
  making the process take too long.
21
- * Also changed the sql to only return individuals, also for the sake of performance.
21
+ * Also changed the sql to only return individuals, also for the sake of performance.
22
+
23
+ == 1.1.3 2009-05-15
24
+
25
+ * 1 bug fix:
26
+ * fixed a bug that threw an error is a space was passed in for the name.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 2
3
+ :patch: 3
4
4
  :major: 1
@@ -95,7 +95,7 @@ class Ofac
95
95
  end
96
96
 
97
97
  def calculate_score
98
- unless @identity[:name].to_s == ''
98
+ unless @identity[:name].to_s.blank?
99
99
 
100
100
  #first get a list from the database of possible matches by name
101
101
  #this query is pretty liberal, we just want to get a list of possible
data/test/ofac_test.rb CHANGED
@@ -10,6 +10,8 @@ class OfacTest < Test::Unit::TestCase
10
10
 
11
11
  should "give a score of 0 if no name is given" do
12
12
  assert_equal 0, Ofac.new({:address => '123 somewhere'}).score
13
+ assert_equal 0, Ofac.new({:name => ''}).score
14
+ assert_equal 0, Ofac.new({:name => ' '}).score
13
15
  end
14
16
 
15
17
  should "give a score of 0 if there is no name match" do
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.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Tyll
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-13 00:00:00 -07:00
12
+ date: 2009-05-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15