SsnValidation

SsnValidation is a very basic ruby gem that can validate a US Social Security Number (SSN) or ITIN. It returns a hash of error keys/messages that can be used within ActiveRecord errors or otherwise to ensure syntactically valid SSNs.

Installation

Add this line to your application's Gemfile:

gem 'ssn_validation'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ssn_validation

Usage

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/johnsinco/ssn_validation

License

The gem is available as open source under the terms of the MIT License.