Project

dixon

0.0
No commit activity in last 3 years
No release in over 3 years
Dixon checks your identification number!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Dixon

Gem Version Travis Build Status

[Frank] Dixon checks your ID number.

Frank Dixon checks your ID number.

Credit: http://www.quotefully.com/

Dixon now only supports identification number check for Taiwan, more are coming up.

Requirements

Ruby 2.0+

Installation

$ gem install dixon

API

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.

Usage

Dixon::Validators::Taiwan.new.checks 'A123456789'
=> true

Dixon::Validators::Taiwan.new.gender 'A123456789'
=> "male"

Dixon::Validators::Taiwan.new.issued_by 'A123456789'
=> "Taipei City"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add & Run the test: $ rake test
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

Author

Juanito Fatas

License

MIT License