rfc_facil 1.2.1 → 1.2.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
  SHA256:
3
- metadata.gz: fa9935d1300f96af23bdb9c0ea0733e4440f7b3b019354986f089378cd16fa95
4
- data.tar.gz: 7e3119f0c502e6f2e1b0569bbbbc60cda0e6f967ee8b9467ef2edcd7d428b7f9
3
+ metadata.gz: 6138ffabf361b38bfdbb6dd7b0b14c519979c5e738e44282caba604bee642095
4
+ data.tar.gz: 99c357e9151225a60ad44ecb78752304fbeb4550785c05227b41d3ff160ae09d
5
5
  SHA512:
6
- metadata.gz: 6415493c17767f148c8c50ca6884d8b127f21efbb6cd317e0f1d869538cad95a1c4cb092442c94d3207691db2cc351fb56023964bbf0708cf12e0ba5b5b15055
7
- data.tar.gz: 60ed1915876d691ab84885374a7791b6a37972b1d7ff6296d51982c6458799bf36bb2a888f4306c9106bcfc82f999ceb55e9198839ab0f566e08b8e6f87d21c1
6
+ metadata.gz: 7c4ead213fff630506e97a260204ca43113c84d899379c0b7c1958d9b6905711a480175ce656515c0195197a0d775934ea3b431538547bd77aefb59409a5ea42
7
+ data.tar.gz: 8ee600d23fa0a8a2bf8a96653bf4f7f15147e5395c10838139294393c4b8a23479527ef075bbc07299f806d524b79268630bc3c93332a7d346de663405554d01
data/lib/rfc_facil.rb CHANGED
@@ -9,5 +9,5 @@ require 'rfc_facil/verification_digit_calculator'
9
9
  require 'i18n'
10
10
  require 'unicode_utils/upcase'
11
11
  module RfcFacil
12
- I18n.available_locales = :en
12
+ I18n.available_locales ||= :en
13
13
  end
@@ -76,11 +76,7 @@ module RfcFacil
76
76
  end
77
77
 
78
78
  def filter_name(name)
79
- raw_name = normalize(name).strip
80
- if raw_name.include?(' ') && (raw_name.start_with?('MA.', 'MARIA', 'JOSE') || raw_name.split(' ')[0] == 'MA')
81
- return raw_name.split(' ')[1]
82
- end
83
- name
79
+ normalize(name).strip.sub(/^(MA|MA\.|MARIA|JOSE)\s+/, "")
84
80
  end
85
81
 
86
82
  def formatted_in_two_digits(number)
@@ -1,3 +1,3 @@
1
1
  module RfcFacil
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.3'
3
3
  end
data/rfc_facil.gemspec CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'i18n', '~> 0.7.0'
22
- spec.add_dependency 'unicode_utils', '~> 1.4'
21
+ spec.add_dependency 'i18n'
22
+ spec.add_dependency 'unicode_utils'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 1.10'
25
25
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfc_facil
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Rangel
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-18 00:00:00.000000000 Z
11
+ date: 2021-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.0
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: unicode_utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.4'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.4'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.4'
97
- description:
97
+ description:
98
98
  email:
99
99
  - adrian.rangel@gmail.com
100
100
  executables: []
@@ -129,7 +129,7 @@ homepage: https://acrogenesis.com/rfc_facil/
129
129
  licenses:
130
130
  - MIT
131
131
  metadata: {}
132
- post_install_message:
132
+ post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths:
135
135
  - lib
@@ -144,9 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.7.3
149
- signing_key:
147
+ rubygems_version: 3.1.2
148
+ signing_key:
150
149
  specification_version: 4
151
150
  summary: Libreria para calcular el Registro Federal de Contribuyentes en México (RFC).
152
151
  test_files: []