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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d8bf1fb33010a509e0d33e3c25aab5545b87764
4
- data.tar.gz: d6495ea1a2a33d6f9d9a3a92e16efe7720b55c45
3
+ metadata.gz: 75fa2857650e6d84b88143ebac713f71b98f3144
4
+ data.tar.gz: 376d9a6c349ca0f8537ada0a22ab07106eab87b5
5
5
  SHA512:
6
- metadata.gz: e0aeedeafc880a29dcbadceb01098eaf3e305540a31d13fd865bb120216a32553426c85b2aa5e6802a67f08edf0cedba0a6cd30d69ce162d82ca7c6aaedddc55
7
- data.tar.gz: b74f0915f961174721d54bd0580b9fa1ea7fbd0b8de55399ef6a50fb6b6e5c72cfa2557cfdceddc35e3f8bb24423271d73bd9083733c1d9c401f61e581ec0de9
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 |index|
62
- nm = nm[0...index] + '-' + nm[index+1..-1]
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 ")
@@ -123,7 +123,6 @@ module CapitalizeNames
123
123
  "DeMott",
124
124
  "DeMuynck",
125
125
  "deNiet",
126
- "DeNise",
127
126
  "DeNure",
128
127
  "DePalma",
129
128
  "DePasquale",
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.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: 2015-05-30 00:00:00.000000000 Z
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.2.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.