people_places_things 2.4.0 → 2.4.1

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.
@@ -7,5 +7,5 @@ require 'people_places_things/state'
7
7
  require 'people_places_things/location'
8
8
 
9
9
  module PeoplePlacesThings
10
- VERSION = "2.4.0"
10
+ VERSION = "2.4.1"
11
11
  end
@@ -120,7 +120,7 @@ module PeoplePlacesThings
120
120
  suffix.match(/\w+/)[0] rescue suffix
121
121
  end
122
122
 
123
- SUPPORTED_SUFFIXES = %w(II III IV V JR JR. SR SR.)
123
+ SUPPORTED_SUFFIXES = %w(II III IV JR JR. SR SR.)
124
124
  ODD_LAST_NAME_PREFIXES = %w(MC ST ST.)
125
125
  end
126
126
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{people_places_things}
8
- s.version = "2.4.0"
8
+ s.version = "2.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Danny Burkes"]
@@ -37,6 +37,14 @@ describe PersonName do
37
37
  name.suffix.should == 'jr'
38
38
  end
39
39
 
40
+ it "should not parse middle initial as suffix" do
41
+ name = PersonName.new "brown, james v"
42
+ name.first.should == 'james'
43
+ name.middle.should == 'v'
44
+ name.last.should == 'brown'
45
+ name.suffix.should == nil
46
+ end
47
+
40
48
  it "should parse last suffix first middle" do
41
49
  name = PersonName.new "peabody jr george f.", :last_first_middle
42
50
  name.first.should == 'george'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 4
8
- - 0
9
- version: 2.4.0
8
+ - 1
9
+ version: 2.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Danny Burkes