0.0
No commit activity in last 3 years
No release in over 3 years
The gem will help you on handling Taiwanese Addresses.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
>= 0
~> 10.0
~> 3.0

Runtime

>= 0
 Project Readme

TaiwanAddress

Gem Version Build Status Coverage Status

Taiwan Address. Supports Traditional Chinese, Japanese, English.

Installation

Install with application's Gemfile:

gem 'taiwan_address'

Or install it yourself as:

$ gem install taiwan_address

Usage

Reader

address = TaiwanAddress::Reader.new(203, :"zh-TW")
address.zone # => "基隆市"
address.district # => "中山區"
address.address # => "基隆市 中山區"

address.locale = :en
address.zone # => "Keelung City"
address.district # => "Zhongshan District"
address.address # => "Keelung City Zhongshan District"

address.code = 815
address.address # => "Kaohsiung City Dashe District"
address.is_city? # => true
address.is_county? # => false

address.is_district? # => true
address.is_township? # => false
address.is_islands? # => false

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Details in CONTRIBUTING

Feel free to send pull request!

License

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