A shard to validate Uruguayan Identity Documents (Cedula de Identidad Uruguaya) - A port of: https://rubygems.org/gems/ci_uy
-
Add the dependency to your
shard.yml
:dependencies: ci_uy: github: picandocodigo/ci_uy.cr
-
Run
shards install
require "ci_uy"
CiUY.validate("1.111.111-1")
CiUY.validation_digit("2222222")
CiUY.random
It receives a string (or integer) and doesn't care what you use to separate the digits, it gets the numbers from the string and checks the verification digit. So all of these formats are valid: 1.111.111-1
, 1_111_111_1
, 1.111.111/1
.
TODO: Write development instructions here
- Fork it (https://github.com/your-github-user/ci_uy/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Fernando Briano - creator and maintainer