Gem to validation IE from factories in Brazil
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install validator_ie
result = ValidatorIE::valid?('XXXXXXXXXXXX','AC') # Only numbers unless result puts ValidatorIE::errors.full_messages end
Bug reports and pull requests are welcome on GitHub at https://github.com/rmomogi/validator_ie. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.