embossing 0.2.1 → 0.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: 597210e85b332e253b40c7c1641a47109ed44d75
4
- data.tar.gz: c4f755f173ef671c83380f51c874ab4cd46e3cd4
3
+ metadata.gz: 9dbb99df78c2d3055818c0873632e79c59ae87d4
4
+ data.tar.gz: 6e6c5a020df7355e554fd338cc02f645df8a4723
5
5
  SHA512:
6
- metadata.gz: 15f79796376cb95d6b5165281eede6ca2f0688d3c64864366bb6b87a91c0c824c5bd25de7ad4f33e1a707d91bdde4dfc720e5cd7cb69e34fa7060e1e65185c89
7
- data.tar.gz: d999af092ecd44529491cc577d29fbf4b5a43e64e8be79695cd1f527e0eaed845d4dc7bb25986020d158d4be69b736d8b66898e3488b622bff0038387487316a
6
+ metadata.gz: 545a29ef5bdcfb7d7b210f011e0459d5a5bd14b57462b314d42f71d4aa633ccc264f27c0e312f4ee45d115bf3ab5f08b28a7d8d492de544e0ab2ec6ceda8cc4e
7
+ data.tar.gz: f02d57ff71e0be78a9158a7ba4fdc86ae7950e60460e9509b4e6e83174b4174665457245ee77ce0a59675b2892e23d8fb48d1c3e66e91b6379945b1f96c69b2f
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in embossing_name.gemspec
3
+ # Specify your gem's dependencies in embossing.gemspec
4
4
  gemspec
5
5
  gem 'activesupport'
data/README.md CHANGED
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'embossing_name'
12
+ gem 'embossing'
13
13
  ```
14
14
 
15
15
  And then execute:
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "embossing"
4
+ require "name"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'embossing_name/version'
4
+ require 'embossing/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "embossing"
8
- spec.version = "0.2.1"
8
+ spec.version = "0.3.0"
9
9
  spec.authors = ["Jhonatan I. Nascimento"]
10
10
  spec.email = ["jhonatan-nascimento94@hotmail.com"]
11
11
 
@@ -0,0 +1,3 @@
1
+ module Embossing
2
+ VERSION = "0.2.1"
3
+ end
@@ -5,7 +5,7 @@ module Embossing
5
5
  class << self
6
6
  def normalize_name_to_embossing(full_name, size_name = 19)
7
7
  embossing_name = remove_accents(full_name)
8
- embossing_name = remove_abreviate(embossing_name)
8
+ embossing_name = remove_abbreviate(embossing_name)
9
9
  embossing_name = reduct_name(embossing_name, size_name)
10
10
  embossing_name = embossing_name.upcase[0..size_name]
11
11
  end
@@ -21,7 +21,7 @@ module Embossing
21
21
  end
22
22
  end
23
23
 
24
- def remove_abreviate(name_card)
24
+ def remove_abbreviate(name_card)
25
25
  name_card = name_card.split
26
26
  abreviate = %w[da do das dos]
27
27
  abreviate.each { |ab| name_card.delete(ab) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embossing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jhonatan I. Nascimento
@@ -71,8 +71,8 @@ files:
71
71
  - bin/console
72
72
  - bin/setup
73
73
  - embossing_name.gemspec
74
- - lib/embossing.rb
75
- - lib/embossing_name/version.rb
74
+ - lib/embossing/version.rb
75
+ - lib/name.rb
76
76
  homepage: https://github.com/jinascimento
77
77
  licenses:
78
78
  - MIT
@@ -1,3 +0,0 @@
1
- module EmbossingName
2
- VERSION = "0.1.0"
3
- end