namor 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,7 +99,7 @@ class Namor::Namor
99
99
  def extract_with_cluster(name, opts = {})
100
100
  ary = extract(name, opts)
101
101
  return [] if ary.empty?
102
- ary << ary.last.gsub(/\W/, '_')
102
+ ary << ary[3].gsub(/\W/, '_')
103
103
  end
104
104
 
105
105
 
@@ -1,3 +1,3 @@
1
1
  module Namor
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -78,6 +78,7 @@ describe "name extract" do
78
78
 
79
79
  it "should generate estimated maiden names" do
80
80
  @namor.extract("Jones-De Quento, Maria").should == ['MARIA', nil, 'JONESDEQUENTO', 'JONESDEQUENTO,MARIA', 'DEQUENTO,MARIA']
81
+ @namor.extract_with_cluster("Jones-De Quento, Maria").should == ['MARIA', nil, 'JONESDEQUENTO', 'JONESDEQUENTO,MARIA', 'DEQUENTO,MARIA', 'JONESDEQUENTO_MARIA']
81
82
  end
82
83
  end
83
84
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: namor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -2504802179826978420
111
+ hash: 3058052180651373494
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: -2504802179826978420
120
+ hash: 3058052180651373494
121
121
  requirements: []
122
122
  rubyforge_project:
123
123
  rubygems_version: 1.8.24