This gem is deprecated and moved to Taiwanese Id Validator.
Gemfile:
gem 'taiwanese_id_builder'
執行
bundle install`
TaiwaneseIdBuilder.valid?('A123456789') #=> true
TaiwaneseIdBuilder.valid?('A123456777') #=> false
TaiwaneseIdBuilder.generate #=> 隨機產生身分證字號
TaiwaneseIdBuilder.generate("male") #=> 男性的身分證字號
TaiwaneseIdBuilder.generate("female") #=> 女性的身分證字號
This project rocks and uses MIT-LICENSE.