lucasandrad / brval Goto Github PK
View Code? Open in Web Editor NEWValidations and generators for many Brazilian codes, like CPF, CNPJ, CNH, CEP etc...
License: MIT License
Validations and generators for many Brazilian codes, like CPF, CNPJ, CNH, CEP etc...
License: MIT License
Add a build for CI
Tutorial from:
https://medium.com/the-code-review/display-your-ruby-test-coverage-using-simplecov-gem-and-codeclimate-6db6336fe409
Add a build.sh file to test the gem
Add Credit card validation
Add a validation for PIS/PASEP/NIT
Add a new param to CEP validation, user should be able to chose how many API's he want to consult.
Add mask to:
Create a function to generate CPF,
Example here: https://github.com/nextbit/cpf_generator/blob/master/lib/cpf_generator.rb
Add it to call cpf
Add validation for Birth, Wedding and Death certificate (the calc is the same)
Create a function to generate Cnpj
Add it to cnpj_call
Create CNH validation
Add RG validation
It's looks like RG can be very different from state to state, so I need to understand more about it
update README with instructions of how to use the gem, how to install and how to contribute
Add Court Lawsuits validation
Add Rspec tests configuration:
Add Renavan validation
Maybe I can use this calc here
More examples here
Example from yahoo asnwers
Example from Ivan blog in C#
At the end this one is the correct way to validate the renavam code:
Example using Java from Victor Jabur site
Add CEP validation
Maybe I could use this API to check if the CEP exists:
https://viacep.com.br/
Actually a good idea is to use 3 or more API to search for a CEP, this one sounds good two
https://postmon.com.br/
This one is good, doesn't need any token
http://apps.widenet.com.br/busca-cep/api/cep/72110040.json
This one is really fast but I need to inform my token to use the API
http://cepaberto.com
I can also crawler this Correio web page
http://www.buscacep.correios.com.br/sistemas/buscacep/
font:
This post on br stackoverflow has a lot of links:
https://pt.stackoverflow.com/questions/400/como-buscar-um-endere%C3%A7o-por-cep-nos-correios
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.