namor 0.5.1 → 0.5.2

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.
@@ -105,6 +105,7 @@ class Namor::Namor
105
105
  ary = extract(name, opts)
106
106
  return [] if ary.empty?
107
107
  ary << ary[3].gsub(/\W/, '_')
108
+ ary << ary[4].gsub(/\W/, '_')
108
109
  end
109
110
 
110
111
  def extract_from_pieces(hash)
@@ -1,3 +1,3 @@
1
1
  module Namor
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -78,7 +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
+ @namor.extract_with_cluster("Jones-De Quento, Maria").should == ['MARIA', nil, 'JONESDEQUENTO', 'JONESDEQUENTO,MARIA', 'DEQUENTO,MARIA', 'JONESDEQUENTO_MARIA', 'DEQUENTO_MARIA']
82
82
  end
83
83
 
84
84
  it "should build pieces from input components" do
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.5.1
4
+ version: 0.5.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: 4269875274243672429
111
+ hash: -483833370846785327
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: 4269875274243672429
120
+ hash: -483833370846785327
121
121
  requirements: []
122
122
  rubyforge_project:
123
123
  rubygems_version: 1.8.24