embossing_name 0.1.4 → 0.1.5

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: 4f5fe61c5365cdf306681517a9a37ce93fbd9245
4
- data.tar.gz: 4bbcc846deea32eeb83ae13756be1e9974709169
3
+ metadata.gz: 296cdaebcfeba89df5683aae7336cdb2c6e4a534
4
+ data.tar.gz: 5f07d16c7a24df433f5109e4934e295b64ac750f
5
5
  SHA512:
6
- metadata.gz: 6cf3de25d5558974b8f2a91e8f71dd3c0141021803d3af13e17ce4a0b4498dba0fe507d43ace76b8ccf1461b0e9ab55e465fb6f015fac1910b97b612f23d6a49
7
- data.tar.gz: c04341401883e592be1230e0c49ddd6a3dae7da0f7c679b84247c6023a6fa0dce2f5fe43f8f897e84f4a7b218c2091de99f2122949c2d8a15b09b169c7f2b4ff
6
+ metadata.gz: 5bd1df343349a62c0d6e8b37405b53fecd0bd3a03ea4b8af184a3f22b1d119a266c3a687a93a344a810bc7c20eb0616cbfea12bb8868862c42c766e135c07047
7
+ data.tar.gz: 3883e46095126df8267080bbfe5ea1c6dd9e60d2bc81f6230f65881512c9b947ce61607c81244b7cbdb86b7535b3bc8c33e457c2b353204151aebe308dad9644
@@ -5,13 +5,13 @@ require 'embossing_name/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "embossing_name"
8
- spec.version = "0.1.4"
8
+ spec.version = "0.1.5"
9
9
  spec.authors = ["Jhonatan I. Nascimento"]
10
10
  spec.email = ["jhonatan-nascimento94@hotmail.com.br"]
11
11
 
12
12
  spec.summary = "A gem of embossing of card"
13
13
  spec.description = "This gem is used for embossing of card, also have methods of normalization of name"
14
- spec.homepage = ""
14
+ spec.homepage = "https://github.com/jhonatannascimento1994"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -15,8 +15,8 @@ module EmbossingName
15
15
  if full_name.size > size_name
16
16
  full_name = full_name.split
17
17
  reduce_name = ""
18
- full_name.each_with_index { |n, i| reduce_name += "#{(i == 0 || i == full_name.size-1 ? n : n[0])} " }
19
- reduce_name
18
+ full_name.each_with_index { |n, i| reduce_name += (i == 0 || i == full_name.size-1 ? " #{n}" : " #{n[0]}") }
19
+ reduce_name[1...reduce_name.size]
20
20
  else
21
21
  full_name
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embossing_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jhonatan I. Nascimento
@@ -73,7 +73,7 @@ files:
73
73
  - embossing_name.gemspec
74
74
  - lib/embossing_name.rb
75
75
  - lib/embossing_name/version.rb
76
- homepage: ''
76
+ homepage: https://github.com/jhonatannascimento1994
77
77
  licenses:
78
78
  - MIT
79
79
  metadata: {}