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

Cocos (Keeling) Islands throw exception #9

Closed karlosmid closed 11 years ago

karlosmid commented 11 years ago

Hi @alexrabarts , when you search by name: IsoCountryCodes.search_by_name('Cocos (Keeling) Islands')[0].alpha2 exception is thrown IsoCountryCodes::UnknownCodeError: No ISO 3166-1 codes could be found searching with name 'Cocos (Keeling) Islands'. Name is defined in this line https://github.com/alexrabarts/iso_country_codes/blob/master/lib/iso_country_codes/iso_3166_1.rb#L259

Regards, Karlo.

alexrabarts commented 11 years ago

Thank you. Fixed in v0.4.2, available now on rubygems.org.