human_name_parser 0.0.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,24 @@
1
+ ### 1.0.0
2
+
3
+ - no changes, just a version bump since folks are using it.
4
+
5
+ ### 0.0.6
6
+
7
+ - don't blow up when given nil
8
+
9
+ ### 0.0.5
10
+
11
+ - more comma related fixes
12
+ - updated test fixtures
13
+
14
+ ### 0.0.4
15
+
16
+ - handle suffixes following commas
17
+
18
+ ### 0.0.3
19
+
20
+ - bugfix, test coverage
21
+
22
+ ### 0.0.2
23
+
24
+ - added some suffixes
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Attempt to parse and categorize the parts of names.
1
+ Attempt to parse and categorize the parts of names. Almost entirely focused on "western" style names.
2
2
 
3
3
  With code borrowed from:
4
4
 
@@ -6,6 +6,8 @@ With code borrowed from:
6
6
  * https://github.com/jasonpriem/HumanNameParser.php
7
7
  * https://github.com/jconley88/NameParser
8
8
 
9
+ Built for use in [Tixato](http://tixato.com) by [Figure 53](http://figure53.com).
10
+
9
11
  ## Install
10
12
 
11
13
  `gem install human_name_parser`
@@ -1,3 +1,3 @@
1
1
  module HumanNameParser
2
- VERSION = "0.0.6"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -6,10 +6,16 @@ describe HumanNameParser do
6
6
  name.class.should == HumanNameParser::Name
7
7
  end
8
8
 
9
+ it "returns nil when given nil" do
10
+ problem = nil
11
+ name = HumanNameParser.parse problem
12
+ name.should == problem
13
+ end
14
+
9
15
  it "parses names" do
10
16
  name = HumanNameParser.parse "John H. Smith"
11
- name.first.should == 'John'
12
- name.last.should == 'Smith'
13
- name.initials.should == 'JHS'
17
+ name.first.should eq 'John'
18
+ name.last.should eq 'Smith'
19
+ name.initials.should eq 'JHS'
14
20
  end
15
21
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: human_name_parser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 6
10
- version: 0.0.6
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Bachman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-07-12 00:00:00 -04:00
18
+ date: 2012-08-07 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -57,6 +57,7 @@ extra_rdoc_files: []
57
57
 
58
58
  files:
59
59
  - .gitignore
60
+ - CHANGELOG.md
60
61
  - Gemfile
61
62
  - LICENSE
62
63
  - README.md