id_number_latam 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3e80aa7c68a1f2484c6f35de0c9d02c13ffe69e6107197935fb1dd376d09a30d
4
+ data.tar.gz: 946cbdfe49d99086b4b820965736b5718c3acb0b2068ee8b815ce35440d70fd7
5
+ SHA512:
6
+ metadata.gz: 83cd67a4b9d0b771c43870d4a6b8f57335f0a63d3208089dcd380618c831039b80bd8a23a62009230dff50c87afb5cba1f2fe6d88af8a54c411fb6cdb3ef9bc9
7
+ data.tar.gz: '089045a94d85e69c34a535b38c8a865fb7340c30e01405b0e169be38a76dcd863d8f785f2d50d55e44be168a9af3247cba20e4d97db47dddd7755db0442c32bb'
@@ -0,0 +1,18 @@
1
+ name: Ruby
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 2.6.0
14
+ - name: Run the default task
15
+ run: |
16
+ gem install bundler -v 2.2.3
17
+ bundle install
18
+ bundle exec rspec
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,10 @@
1
+ Style/StringLiterals:
2
+ Enabled: true
3
+ EnforcedStyle: double_quotes
4
+
5
+ Style/StringLiteralsInInterpolation:
6
+ Enabled: true
7
+ EnforcedStyle: double_quotes
8
+
9
+ Layout/LineLength:
10
+ Max: 120
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at goncab380@hotmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in id_number_latam.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 0.80"
data/Gemfile.lock ADDED
@@ -0,0 +1,55 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ id_number_latam (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ diff-lcs (1.4.4)
11
+ parallel (1.20.1)
12
+ parser (3.0.1.1)
13
+ ast (~> 2.4.1)
14
+ rainbow (3.0.0)
15
+ rake (13.0.4)
16
+ regexp_parser (2.1.1)
17
+ rexml (3.2.5)
18
+ rspec (3.10.0)
19
+ rspec-core (~> 3.10.0)
20
+ rspec-expectations (~> 3.10.0)
21
+ rspec-mocks (~> 3.10.0)
22
+ rspec-core (3.10.1)
23
+ rspec-support (~> 3.10.0)
24
+ rspec-expectations (3.10.1)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.10.0)
27
+ rspec-mocks (3.10.2)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.10.0)
30
+ rspec-support (3.10.2)
31
+ rubocop (0.93.1)
32
+ parallel (~> 1.10)
33
+ parser (>= 2.7.1.5)
34
+ rainbow (>= 2.2.2, < 4.0)
35
+ regexp_parser (>= 1.8)
36
+ rexml
37
+ rubocop-ast (>= 0.6.0)
38
+ ruby-progressbar (~> 1.7)
39
+ unicode-display_width (>= 1.4.0, < 2.0)
40
+ rubocop-ast (1.7.0)
41
+ parser (>= 3.0.1.1)
42
+ ruby-progressbar (1.11.0)
43
+ unicode-display_width (1.7.0)
44
+
45
+ PLATFORMS
46
+ x86_64-linux
47
+
48
+ DEPENDENCIES
49
+ id_number_latam!
50
+ rake (~> 13.0)
51
+ rspec (~> 3.0)
52
+ rubocop (~> 0.80)
53
+
54
+ BUNDLED WITH
55
+ 2.2.3
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Gonzalo Moreno
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # IdNumberLatam
2
+
3
+ [![Ruby](https://github.com/ronzalo/id_number_latam/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/ronzalo/id_number_latam/actions/workflows/main.yml)
4
+
5
+ A gem to validate the format of the identification number in some of latam countries, currently only for Chile, Ecuador and Uruguay, but it can be easily extended to other countries.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'id_number_latam', github: 'ronzalo/id_number_latam'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install id_number_latam
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ # DNI for Chile
27
+ dni = IdNumberLatam::Base.new('11111111-1', country: :cl)
28
+ dni.valid?
29
+ #=> true
30
+ dni.format
31
+ #=> "11.111.111-1"
32
+ dni.unformat
33
+ #=> "111111111"
34
+ ```
35
+
36
+ ## Development
37
+
38
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
39
+
40
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
41
+
42
+ ## Contributing
43
+
44
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ronzalo/id_number_latam. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ronzalo/id_number_latam/blob/master/CODE_OF_CONDUCT.md).
45
+
46
+ ## To-do
47
+
48
+ - [ ] Add more countries
49
+ - [ ] Add more tests
50
+ - [ ] Add more validations
51
+ - [ ] Add Rails class methods support
52
+
53
+ ## License
54
+
55
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
56
+
57
+ ## Code of Conduct
58
+
59
+ Everyone interacting in the IdNumberLatam project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ronzalo/id_number_latam/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "id_number_latam"
6
+
7
+ def reload!(print = true)
8
+ puts 'Reloading ...' if print
9
+ # Main project directory.
10
+ root_dir = File.expand_path('..', __dir__)
11
+ # Directories within the project that should be reloaded.
12
+ reload_dirs = %w{lib}
13
+ # Loop through and reload every file in all relevant project directories.
14
+ reload_dirs.each do |dir|
15
+ Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) }
16
+ end
17
+ # Return true when complete.
18
+ true
19
+ end
20
+
21
+ # You can add fixtures and/or initialization code here to make experimenting
22
+ # with your gem easier. You can also use a different console, if you like.
23
+
24
+ # (If you use this, don't forget to add pry to your Gemfile!)
25
+ # require "pry"
26
+ # Pry.start
27
+
28
+ require "irb"
29
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/id_number_latam/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "id_number_latam"
7
+ spec.version = IdNumberLatam::VERSION
8
+ spec.authors = ["Gonzalo Moreno"]
9
+ spec.email = ["goncab380@hotmail.com"]
10
+
11
+ spec.summary = "Wrapper for id number validators and formatters in LatAm"
12
+ spec.description = "Supported Countries: Chile, Uruguay, Ecuador"
13
+ spec.homepage = "https://gonzalomoreno.me/id_number_latam"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ # Uncomment to register a new dependency of your gem
27
+ # spec.add_dependency "example-gem", "~> 1.0"
28
+
29
+ # For more information and examples about making a new gem, checkout our
30
+ # guide at: https://bundler.io/guides/creating_gem.html
31
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "id_number_latam/version"
4
+ require_relative "id_number_latam/base"
5
+ require_relative "id_number_latam/cl_dni"
6
+ require_relative "id_number_latam/ec_dni"
7
+ require_relative "id_number_latam/uy_dni"
8
+
9
+ module IdNumberLatam
10
+ class Error < StandardError; end
11
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "forwardable"
4
+
5
+ module IdNumberLatam
6
+ class Base
7
+ extend Forwardable
8
+ def_delegators :@dni_class, :format, :unformat, :valid?
9
+
10
+ attr_accessor :id_number, :unformatted_id_number, :country
11
+
12
+ def initialize(id_number, opts = {})
13
+ @id_number = id_number
14
+ @country = opts.delete(:country)&.to_sym
15
+ @dni_class = get_dni_class.new(@id_number) if @country
16
+ end
17
+
18
+ def get_dni_class
19
+ return unless @country
20
+
21
+ country_dni_class = IdNumberLatam.constants.map(&:to_s).detect { |c| c == "#{@country.capitalize}Dni" }
22
+ unless country_dni_class
23
+ raise "class IdNumberLatam::#{@country.capitalize}Dni not implemented for #{@country} country code"
24
+ end
25
+
26
+ IdNumberLatam.const_get country_dni_class
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module IdNumberLatam
4
+ class ClDni < Base
5
+ attr_reader :digit
6
+
7
+ def initialize(id_number, opts = {})
8
+ super
9
+ @country = :cl
10
+ @digit = unformat.slice(-1)
11
+ end
12
+
13
+ def unformat
14
+ id_number.gsub(/\D/, "")
15
+ end
16
+
17
+ def format
18
+ dni = unformat
19
+ digit = dni.slice!(-1)
20
+ formatted_dni = dni.reverse.gsub(/(\d{3})(?=\d)/, '\\1.').reverse
21
+ [formatted_dni, digit].join("-")
22
+ end
23
+
24
+ def valid?
25
+ return false unless valid_length
26
+
27
+ dni = unformat
28
+ digit = dni.slice!(-1)
29
+
30
+ [*0..9, "K"][dni.to_s.reverse.chars.inject([0, 0]) { |(i, a), n| [i + 1, a - n.to_i * (i % 6 + 2)] }[1] % 11].to_s == digit
31
+ end
32
+
33
+ private
34
+
35
+ def valid_length
36
+ unformat.size >= 8 && unformat.size <= 9
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module IdNumberLatam
4
+ class EcDni < Base
5
+ attr_reader :digit, :third_digit
6
+
7
+ def initialize(id_number, opts = {})
8
+ super
9
+ @country = :ec
10
+ @third_digit = unformat[2]
11
+ @digit = @third_digit == "6" ? unformat[8] : unformat[9]
12
+ end
13
+
14
+ def format
15
+ dni = unformat
16
+ digit = dni.slice!(-1)
17
+ [dni, digit].join("-")
18
+ end
19
+
20
+ def unformat
21
+ id_number.gsub(/\D/, "")
22
+ end
23
+
24
+ def valid?
25
+ return false unless valid_length
26
+ return false unless unformat[0..1].to_i <= 24
27
+ return false unless [0, 1, 2, 3, 4, 5, 6, 9].include?(unformat[2].to_i)
28
+
29
+ dni = unformat[0..8]
30
+ (modulo - (dni.chars.zip(coefficient.chars).map { |p| p.map(&:to_i).inject(&:*) }.map { |r| operation_block(r) }.sum % modulo)).to_s == @digit
31
+ end
32
+
33
+ private
34
+
35
+ def coefficient
36
+ if (0..5).include? @third_digit.to_i
37
+ "212121212"
38
+ elsif @third_digit == "6"
39
+ "32765432"
40
+ elsif @third_digit == "9"
41
+ "432765432"
42
+ end
43
+ end
44
+
45
+ def modulo
46
+ (0..5).include?(@third_digit.to_i) ? 10 : 11
47
+ end
48
+
49
+ def operation_block(prod)
50
+ if (0..5).include? @third_digit.to_i
51
+ prod >= 10 ? prod - 9 : prod
52
+ else
53
+ prod
54
+ end
55
+ end
56
+
57
+ def valid_length
58
+ [10, 13].include?(unformat.size)
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module IdNumberLatam
4
+ class UyDni < Base
5
+ attr_reader :digit
6
+
7
+ def initialize(id_number, opts = {})
8
+ super
9
+ @country = :uy
10
+ @digit = unformat.slice(-1)
11
+ end
12
+
13
+ def unformat
14
+ id_number.gsub(/\D/, "")
15
+ end
16
+
17
+ def format
18
+ dni = unformat
19
+ digit = dni.slice!(-1)
20
+ formatted_dni = dni.reverse.gsub(/(\d{3})(?=\d)/, '\\1.').reverse
21
+ [formatted_dni, digit].join("-")
22
+ end
23
+
24
+ def valid?
25
+ return false unless valid_length
26
+
27
+ dni = unformat
28
+ digit = dni.slice!(-1)
29
+
30
+ (10 - (dni.chars.zip("2987634".chars).map { |p| p.map(&:to_i).inject(&:*) }.sum % 10)).to_s == digit
31
+ end
32
+
33
+ def valid_length
34
+ unformat.size == 8
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module IdNumberLatam
4
+ VERSION = "0.1.0"
5
+ end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: id_number_latam
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Gonzalo Moreno
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-07-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'Supported Countries: Chile, Uruguay, Ecuador'
14
+ email:
15
+ - goncab380@hotmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".github/workflows/main.yml"
21
+ - ".gitignore"
22
+ - ".rspec"
23
+ - ".rubocop.yml"
24
+ - CODE_OF_CONDUCT.md
25
+ - Gemfile
26
+ - Gemfile.lock
27
+ - LICENSE.txt
28
+ - README.md
29
+ - Rakefile
30
+ - bin/console
31
+ - bin/setup
32
+ - id_number_latam.gemspec
33
+ - lib/id_number_latam.rb
34
+ - lib/id_number_latam/base.rb
35
+ - lib/id_number_latam/cl_dni.rb
36
+ - lib/id_number_latam/ec_dni.rb
37
+ - lib/id_number_latam/uy_dni.rb
38
+ - lib/id_number_latam/version.rb
39
+ homepage: https://gonzalomoreno.me/id_number_latam
40
+ licenses:
41
+ - MIT
42
+ metadata: {}
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: 2.3.0
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements: []
58
+ rubygems_version: 3.1.4
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Wrapper for id number validators and formatters in LatAm
62
+ test_files: []