capitalize-names 1.0.0 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capitalize_names/capitalizer.rb +2 -2
- data/lib/capitalize_names/surnames.rb +0 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75fa2857650e6d84b88143ebac713f71b98f3144
|
4
|
+
data.tar.gz: 376d9a6c349ca0f8537ada0a22ab07106eab87b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb7ed73dac87a16ffa610e8aae8ccbd7c40a1095d337028471c9d0a538e1a49ef7165e71f7c33e7a4dfcb961865d665edb00cf6eedc60db17ad44d232c28acb5
|
7
|
+
data.tar.gz: d26ff4306c8f47912d8038276c82e4f8418b25f07fdc527727b0fccbb56bda63995aab13881df7a73620ff05f12d13cc81b86c5c7b7c51af6e72313474182029
|
@@ -58,8 +58,8 @@ module CapitalizeNames
|
|
58
58
|
}
|
59
59
|
|
60
60
|
nm = nm.join(' ')
|
61
|
-
hyphens_index.each do |
|
62
|
-
nm = nm[0...
|
61
|
+
hyphens_index.each do |idx|
|
62
|
+
nm = nm[0...idx] + '-' + nm[idx+1..-1]
|
63
63
|
end
|
64
64
|
|
65
65
|
nm = nm.gsub("Van ", "van ").gsub("De ", "de ").gsub("Dit ", "dit ")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capitalize-names
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Tate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 5.8.4
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 5.8.4
|
27
41
|
description: 'A simple gem to capitalize names, based off of: http://dzone.com/snippets/capitalize-proper-names'
|
28
42
|
email: kbt.tate@gmail.com
|
29
43
|
executables: []
|
@@ -45,9 +59,9 @@ require_paths:
|
|
45
59
|
- lib
|
46
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
61
|
requirements:
|
48
|
-
- - "
|
62
|
+
- - "~>"
|
49
63
|
- !ruby/object:Gem::Version
|
50
|
-
version: '0'
|
64
|
+
version: '2.0'
|
51
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
66
|
requirements:
|
53
67
|
- - ">="
|
@@ -55,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
69
|
version: '0'
|
56
70
|
requirements: []
|
57
71
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
72
|
+
rubygems_version: 2.4.5.1
|
59
73
|
signing_key:
|
60
74
|
specification_version: 4
|
61
75
|
summary: Capitalizes names; handles edge cases.
|