name_abbr 1.2.0 → 1.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99549dbec4f7b2a3a654a1fa8bf3a74ff2e78452
4
- data.tar.gz: aa2f27309a1c55c229c719628d51fe1512585ab6
3
+ metadata.gz: 9f8c6d529535fdb3b0eaf33309bcdd3e5825272e
4
+ data.tar.gz: b54f070cb971ad2531ef0c80bba534d5548492db
5
5
  SHA512:
6
- metadata.gz: 62230efc5ca8d2d2d8b108db32b5966baf43b7859a3ade7ff358271cc1f597f2aeddf35a9e1f2248f48b80a272eddea4037f83dbc11a11eada4738e5f52dd004
7
- data.tar.gz: 2a961aa0ccc36647fba7b30b0d920a0a7fef3ecdd0daa90a18273d424901a80e112a5a106a393d9d7a367c0cb45e836c15e63554a8c8955f1d0cdff29977be81
6
+ metadata.gz: 72040173ef121c15e0e9af823bceb3264d331cefebe5cfcb03c002604d1b2d883a37e43c4d531a1b8010a3bf1947b490d6322d8a3b14be17f035b2c04b742e19
7
+ data.tar.gz: 82933d7299f60fba1b314b3444f41e3750c282810f670de3f82bf4e8c05d4a5aa10877c60b3d868f8f5e9ff754ff61a3c2dba40f5980a8d378b034ce1dcda30b
@@ -15,7 +15,7 @@ module NameAbbr
15
15
 
16
16
  unless fullname.match(/ /).nil?
17
17
  parts = fullname.split(' ')
18
- [parts[0], parts[1][0]].join(' ') + "."
18
+ [parts[0], parts[parts.length-1][0]].join(' ') + "."
19
19
  else
20
20
  fullname
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module NameAbbr
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: name_abbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Matthias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-14 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler