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 +4 -4
- data/lib/rfc_facil.rb +1 -1
- data/lib/rfc_facil/natural_ten_digits_code_calculator.rb +1 -5
- data/lib/rfc_facil/version.rb +1 -1
- data/rfc_facil.gemspec +2 -2
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6138ffabf361b38bfdbb6dd7b0b14c519979c5e738e44282caba604bee642095
|
4
|
+
data.tar.gz: 99c357e9151225a60ad44ecb78752304fbeb4550785c05227b41d3ff160ae09d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c4ead213fff630506e97a260204ca43113c84d899379c0b7c1958d9b6905711a480175ce656515c0195197a0d775934ea3b431538547bd77aefb59409a5ea42
|
7
|
+
data.tar.gz: 8ee600d23fa0a8a2bf8a96653bf4f7f15147e5395c10838139294393c4b8a23479527ef075bbc07299f806d524b79268630bc3c93332a7d346de663405554d01
|
data/lib/rfc_facil.rb
CHANGED
@@ -76,11 +76,7 @@ module RfcFacil
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def filter_name(name)
|
79
|
-
|
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)
|
data/lib/rfc_facil/version.rb
CHANGED
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'
|
22
|
-
spec.add_dependency 'unicode_utils'
|
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.
|
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:
|
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
|
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
|
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: '
|
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: '
|
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
|
-
|
148
|
-
|
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: []
|