[Frank] Dixon checks your ID number.
Credit: http://www.quotefully.com/
Dixon now only supports identification number check for Taiwan, more are coming up.
Ruby 2.0+
$ gem install dixon
Provides three instance methods: checks
, gender
, and issued_by
.
-
checks
checks if given ID is a valid Taiwan identification number. -
gender
returns gender of given ID. -
issued_by
returns which local agencies issued this ID.
Dixon::Validators::Taiwan.new.checks 'A123456789'
=> true
Dixon::Validators::Taiwan.new.gender 'A123456789'
=> "male"
Dixon::Validators::Taiwan.new.issued_by 'A123456789'
=> "Taipei City"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Add & Run the test:
$ rake test
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Juanito Fatas
MIT License