alexrabarts / iso_country_codes

A Ruby library that provides ISO 3166-1 country codes/names and ISO 4217 currencies
http://github.com/alexrabarts/iso-country-codes
163 stars 62 forks source link

Added ability to raise custom fallbacks and return default values. #15

Closed ignat-z closed 10 years ago

ignat-z commented 10 years ago

Replace default raising error with ability for optional fallback. It doesn't break current logic and API but provides a little more freedom to process results. You can see examples in tests.

alexrabarts commented 10 years ago

Sounds sane. I just merged and released in version 0.6.0.