Change Log

All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.

5.0.1 (2022/05/02 12:03 +00:00)

Merged pull requests:

  • Added subdivision_names_with_codes method in documentation #747 (arymoraes)
  • Corrected Portuguese subdivision names by @FilipaDurao in #748 (FilipaDurao)

5.0.0 (2022/04/03 17:44 +00:00)

Breaking Changes

Merged pull requests:

  • Drop support for Ruby 2.5 and 2.6 #708 (pmor)
  • Remove deprecated attributes; Add new #find_by_any_name finder #745 (pmor)

4.2.3 (2022/03/24 11:00 +00:00)

IMPORTANT NOTE: This will be be the last release of the 4.x series, and the last one to support Ruby 2.5 and 2.6

4.2.2 (2022/02/17 13:52 +00:00)

Merged pull requests:

Closed issues:

  • Change on UAE Value.start_of_week #738

Full Changelog: https://github.com/countries/countries/compare/v4.2.1…v4.2.2

4.2.1 (2022/01/11 12:39 +00:00)

  • Missing update to cache files on release 4.2.0
  • Update postal code regexes from rake task #734 (cover)

4.2.0 (2022/01/11 11:04 +00:00)

Deprecations

  • Country#name, Country#names and the finders using these attributes. See README (‘Upgrading to 4.2 and 5.x’)
  • latitude_dec and longitude_dec attributes

Merged pull requests:

  • Name methods refactor #717 (pmor)
  • Remove non-ISO US subdivisions #720 (pmor)
  • Update MK subdivisions #721 (pmor)
  • Update Kenya subdivision data #722 (pmor)
  • Fix French Southern Territories continent and region data #725 (pmor)
  • Fix SG subdivision data #726 (pmor)
  • Remove FO subdivisions #727 (pmor)
  • JE and IM currencies should be GBP #728 (pmor)
  • Fix US translations in nb and no locales #729 (pmor)
  • Missing alternative names for GB and US #724 (dima4p)
  • Deprecate latitude_dec and longitude_dec, delegate to latitude #723 (pmor
  • add VAT for Israel and Saudi Arabia #730 (Venca24
  • Remove non-ISO KY subdivisions #731 (pmor)
  • Fix duplicated translations of CZ-10 subdivision #733 (pmor)

Closed issues:

  • Update Kenya subdivisions/states #318
  • North Macedonia updates (2020-03-02) #674
  • Singapore wrong subdivision codes (SG-SG-0x) #663
  • Remove Faroe Islands subdivisions #606
  • Jersey uses GBP instead of JEP currency #492
  • USA in Norwegian translation should be ‘USA’ instead of ‘De forente stater’ #564
  • Geographic bounds for UK includes all of Europe #535
  • Wrong min_longitude for United States of America? #698
  • Translations for CZ-10 are defined twice #732

4.1.3 (2022/01/03 12:16 +00:00)

Merged pull requests:

  • Fix empty translations in LV subdivisions #719 (pmor)

Closed issues:

  • Subdivision translations for some latvian subdivisions nil in countries 4.1.2 #718

4.1.2 (2021/12/20 17:06 +00:00)

Merged pull requests:

  • Update subdivisions, fix #600 conflicts #710 (donnen, pmor)
  • Fix conflicts in #605 and update those countries to the latest subdivision data #711 (jjamesjohnson, pmor)
  • Update NZ subdivision data and fix Chatham Island entry #712 (pmor)
  • Update translation corrections for Occitan.#713 (pmor)
  • Update i18n_data to 0.15.0 #715 (pmor)

4.1.1 (2021/12/06 13:31 +00:00)

Merged pull requests:

  • Fix ISO3166::Country respond_to_missing? #625 (biinari)
  • Revert subdivision changes to NO.yaml #709 (pmor)

4.1.0 (2021/11/30 09:44 +00:00)

New features:

Closed issues:

  • Ensure Moscow Oblast translations reference the “province” #694 (carlesjove)
  • Update NL reduced VAT rate #693 (oscaredel)
  • Serbian translation for North Macedonia is incorrect #703

Merged pull requests:

  • Set the code when creating subdivisions #658 (IamDavidovich)
  • Refresh subdivision data from CLDR #704 (pmor)
  • Update I18nData gem to 0.13.1 and fix MK translation in mk locale #705 (pmor)

4.0.1 (2021/07/19 14:47 +01:00)

Closed issues:

  • ISO Country Code for Czechia/Czech Republic should be updated. #688
  • Regression in 4.0.0: ISO3166::Country.translations(:en) with symbol arg raises #691

Merged pull requests:

  • Updating Norway subdivision codes to match late 2020 ISO change #666 and #689 (thomascrumrine)
    • Update CZ.yaml: Czechia is the ISO short name for the Czech Republic #690 (pmor)
    • Fix regression in ISO3166::Country.translations with symbols #692 (pmor)

4.0.0 (2021/06/11 09:47 +01:00)

Full changelog

Breaking changes:

  • None

Closed issues:

Merged pull requests:

  • make_cache_thread_safe (factorialco)
  • Update i18n_data to 0.13.0 and drop support for rubies <2.5 #650 (pmor)
  • Fixes [#633] and updates geocoder searches #634 (mezza)
  • translation_corrections.yaml: Fix broken link #664 (henrik)
  • Correct Danish translation of CZ #661 (JanMSP)
  • Swedish translation correction: RU = “Ryssland” #665 (henrik)
  • Update gemspec metadata with new repo url #672 (pmor)
  • Fix typo and lint in README.markdown #675 (DigiPie)
  • Update CI to the latests ruby point versions #677 (pmor)
  • Adds North Korea to list of unofficial names of KP #681 (talha-akram )
  • Update Vietnam subdivisions with current ISO_3166-2:VN #673 (keymastervn)
  • Add custom countries to translation lists #595 (phylor)
  • Fix ISO3166::Data.register loading of nested hashes, eg: geo data. #683 (pmor)
  • Remove Travis CI configuration. #685 (pmor)

3.1.0 (2021/03/24 00:01 +05:00)

Full Changelog

Closed issues:

  • Add timezones to country data #669
  • The name for Vietnam is incorrect #660
  • Missing address_format for Vietnam #652
  • Temporary German VAT rate (16%) from July 1st to December 31st, 2020 #637
  • Armenian translations are incorrect #622
  • Please cut a release #610
  • Please update i18n_data to 0.10.0 #607
  • Release ‘3.0.0’ missing some commits #603
  • Please release a new version #591
  • ‘Portugal’ is misspelled in lib/countries/cache/locales/nn.json #583
  • Any interest in fiscal year data? #532
  • Kosovo independent from Serbia #511
  • Include country’s postcode/zip format #366

Merged pull requests:

v3.0.1 (2020/02/11 00:04 +05:00)

Full Changelog

Closed issues:

  • Accessing all ISO 639-1 language codes #604
  • County ISO and translations for Cork County (Ireland) in invalid #594
  • Chile added Ñuble Region #592
  • Samoa currency code should be WST #584
  • Mauritanian currency code is changed #568
  • Czech Republic changed it’s name to Czechia #560
  • Swaziland renamed to eSwatini #521

Merged pull requests:

v2.2.0 (yanked and re-released as 3.0.0) (2018/12/17 10:20 +00:00)

Closed issues:

  • Overriding/Extending Country class with custom methods #506
  • fonts #503
  • USA counties #501
  • flags not working #489
  • Proper way to only change a few subset of data #486

Merged pull requests:

v2.1.4 (2018/02/09 01:52 +00:00)

  • #498 Updated Switzerland VAT rates (@Aethelflaed)
  • #497 Swedish translation correction of GB (@eric-khoury)
  • #493 Add vat rates for Philippines (@jgrau)

2.1.3

  • #480 Add subdivision names with codes (@md-hamed)
  • #490 Fix search to work for countries with comma in their name (@bud-yoyo)
  • #488 Update BY currency code (BYR -> BYN) (@mainameiz)
  • #487 fix TW national_prefix (@swdyh)
  • #478 Add vat rates for mexico (@jgrau)
  • #476 Add standard vat rate for Norway (@jgrau)
  • #473 Add CLDR data source for subdivion translations. (@rposborne)
  • #472 Fix corrupted Subdivisions (@rposborne)

2.1.2

  • Fix incorrectly named subdivision data files @skyborn8
  • Updates MX.yaml to reflect Mexico City’s official name change @novohispano

2.1.1

  • Updated cache @rposborne
  • Add code attribute to Subdivision @kasparsj
  • Allow override of cache dir @kasparsj

2.1.0

  • Fix emoji support in old rubies < 2.0 @pezholio
  • Detect if active_support is loaded before using .html_safe @subfusc
  • Changed the nationality of Hong Kong from Chinese to Hong Kongnese @neosepulveda
  • Readme Cleanup @dankimio
  • Correct typo for Virgin Islands, U.S and add translation for Palestine @jpawlyn
  • Add new French Regions (january 2016) @clemthenem
  • Add Russian unofficial name to GB @faucct
  • Update gem i18n_data @seb-sykio

2.0.8

  • Add language data to Nepal @gkunwar
  • Add start of week day @Vsanchezr
  • Normalized Turkey’s Subdivisions @emir

2.0.7

  • Content Fixes

2.0.6

  • Adds French Guiana nationality
  • Add missing un_locode for south sudan
  • Fix Norwegian country code (false -> NO)
  • Add missing un location codes
  • Further reduce calls to .keys to provide additional speedup and performance bump
  • Add sixarm_ruby_unaccent to gemspec dependencies
  • Update all official country names to the ISO 3166 standard
  • Full Changelog

2.0.5

  • Fixes #408 Correct Subdivision files for AD, AE, AF, AG, and AL
  • Full Changelog

2.0.4

2.0.3

  • Fix comparison with country to nil
  • Add NANP_prefix as separate field
  • Full Changelog

2.0.2

2.0.1

  • Content updates
    • Fix bounding boxes that were mismatched.
  • Update bounding box update task to prevent any lookup from return anything other than a country.
  • Full Changelog

2.0.0

2.0.0.rc3

  • Content updates
    • All geo cords, are no longer strings
    • All bounding boxes updated
    • United States is now United States of America
  • Refactor of Rake tasks
  • Changelog from RC

2.0.0.rc2

  • Add fallback when looking up locales for pt-BR style languages
  • Implement project style guide
  • Changelog from RC

2.0.0.rc

  • Fixed a regression that would purge the countries memory cache when adding a custom country #353
  • Various Content Updates
  • Changelog from RC

2.0.0.pre.4

  • Changelog from RC
  • Fix crash when app introduces an unexpected locale. Much thanks to @jstenhouse

2.0.0.pre.2

2.0.0.pre

  • Changelog from RC
  • Selective loading translations of countries
  • Auto detect I18n locales to load
  • Add Configuration methods to force locales to load
  • Dropped currencies gem in favor of money
  • Add Time Zone Support
  • DATA STRUCTURE CHANGES -COUNTRY
    • BREAKING CHANGES
      • names: => unofficial_names
      • languages: => official_languages
      • lat/lng fields are nested under a “geo” key
    • + spoken_languages
    • +

1.2.5 @ 2016-01-22

1.2.4 @ 2016-01-21

  • Romanian Standard VAT rate is 20% as of 2016-01-01 #325 @dougal
  • Palestine submit #324 @samizan
  • Added 47 as calling code for Bouvet Island, Norwegian territory #323
  • Added XAF as currency code for Congo @espen
  • Force converting passed locale to string @borodiychuk
  • Full Changelog

1.2.3

1.2.2

1.2.1

1.2.0 (yanked)

  • Cleaning up Global Load Path @rposborne
  • Add MOP as the currency for Macao @kriskhaira
  • Full Changelog

1.1.0

  • Adding compare operation to country @guilleart
  • Content Updates @rposbone
  • Correct NL to NO for un_locode @ohenrik
  • Fix spelling of Sjælland @boatrite
  • Add alternate spelling of Macao/Macau @nityaoberoi
  • Full Changelog

1.0.0

  • Switch to Marshalling for cache storage @rposborne
  • Country class helper now must be explicitly loaded @rposborne
  • Removed Rails 2.0 FormHelper COUNTRIES @rposborne
  • Add class codes method to get list of all alpha2 codes @rposborne
  • Change default behavior of all method to return a list of country objects vs a tuple of alpha code + name
  • Full Changelog

0.11.5

  • Refactored data loading into it’s own class
  • Added ability to override bad translations from i18n
  • Update languages in NO.yml @matfiz
  • Fix Subdivisions & States in README @pnomolos
  • Fix New York, Washington, Oklahoma state’s latitude/longitude information @GUI
  • Bad state data present in Uruguay has been removed @saisha92
  • Various Other Content Updates by @danshultz @embs @sykaeh, @tg0
  • Full Changelog

0.11.4

  • Added coordinates for subdivisions @fabn
  • Various Other Content Updates by @fabn, @snowblink
  • Full Changelog

0.11.3

0.11.2

  • silence ruby warnings @franckverrot
  • add find_country_by_translated_name @rposborne NOTE: this is garbage for the time being, some translations have duplicates in them and causes false results
  • Full Changelog

0.11.1

  • added bounding box coordinates for VI, CW, PR, AS, and GU : @marinom
  • revert Lookup country by translated name via find_by_name @rposborne
  • Full Changelog

[0.11.0] - 2015-03-03

Changed

  • Cached Translations in gem to translation lookup speed @rposborne, @stayhero
  • Upgrade test suite to rspec 3 @rposborne
  • Added region_short for postal codes @stayhero
  • Content Updates @masolino, @rosetree, @stayhero, @skarlcf, @cllns, @speric, @rposborne
  • Adding Lat/Lng to countries @jabawack81
  • Readme Updates @cllns
  • Full Changelog

v0.10.0 (2015/01/23 05:58 +00:00)

  • #151 Added VAT rates to EU countries (@cedricdubois)
  • #212 Rename CU-02 to ‘Provincia de la Habana’ and CU-03 to ‘La Habana’ (@cllns)
  • #150 Arabic Translations and names (@m7moud)
  • #187 Added World Regions (APAC, EMEA, AMER) to countries. (@jeppester, @simonask)
  • #163 Gems should not have their Gemfile.locks committed (@snowblink)
  • #111 Corrected NZ national_prefix (@dnch)
  • #145 adding 11 to national_number_lengths on Brazil because Sao Paulo city us… (@ustrajunior)
  • #153 Corrected English spelling of Barbados (@just3ws)
  • #162 adding latitude and longitude for Curaçao and Guadeloupe (@joshtaylor)
  • #169 Define primary language of Malaysia as Malay (@maxwell, @kriskhaira)
  • #173 Updated Russian Federation english translation: Russia to Russian Federation (@mikestone14)
  • #174 Correct translation of Afghanistan for fr and es (@schatteleyn)
  • #180 Add more names for some countries (@Baltazore)
  • #181 Add ‘Newfoundland’, ‘Yukon’ to list of valid names and add missing French names. (@dwhelan)
  • #175 Saint Barthélemy uses the Euro (@sugru)
  • #199 Add Russian as Estonian language (@martinholmin)
  • #207 Add Cuban Subdivisions - Artemisa and Mayabeque (@cllns)
  • #205 Adding Address format for New Caledonia, Thailand and Liechtenstein (@rposborne)
  • #177 Fix Country#equality method (@estum)
  • #157 Update ES.yaml (@mediatainment)
  • #184 Belarusian translations (@micrum)
  • #194 Update Singapore subdivisions to reflect ISO-3166-2:SG (@speric)
  • #201 Lithuania adopted the Euro on 2015-01-01 (@philippbosch)

upstream-12-24-14+speric (2014/12/24 18:26 +00:00)

  • #156 Add postal code knowledge (@maxwell)
  • #161 fixed tests for 136 (@hexorx)
  • #142 Latvia’s currency is now the Euro (@sugru)
  • #141 Add additional names for Russia & Ukraine (@uzbekjon)
  • #140 adding NO- to the list of Norway counties. Based on the ISO 3166 description for Norway. (@miguelperez)
  • #137 Update Japanese translation (@rono23)
  • #136 Adding arabic translation for many countries (@OmarQunsul)
  • #130 Added the method #all_translated(locale) that returns a list of translated country names. (@LostTie)
  • #127 Add currency to Macedonia (MK) (@sluceno)
  • #125 Update AT.yaml (@mediatainment)
  • #124 Updated country name for Palestine (@stangel)
  • #119 Myanmar currency is MMK (@zeto)
  • #123 Update county names in Croatia (@toncid)
  • #129 add missing german translations (@benben)
  • #128 Fix Russian Federation instead Russia and fix and add RU.yml subdivisions translation (@mibamur)
  • #118 Updated destination code and number lengths for Germany (@daniel-rikowski)
  • #121 russian translation (@razum2um)
  • #117 Changed Guernseys currency code to be in line with ISO4217. (@richardmcmillen-examtime)
  • #102 Add “Francia” to names section of France. (@nosolosoftware)
  • #103 Add method to get currency code from data, without ISO4217::Currency wrapper (@scarfacedeb)
  • #105 Useful #to_s method (@lorddoig)
  • #96 Feature/mongoid (@lorddoig)
  • #95 Add EU membership to Croatia (@razor-rs)
  • #94 make country instance creation case insensitive (@jeremywrowe)
  • #93 Fix some spanish translations (@jrdi)
  • #90 Updated countries.yaml with Dutch country names/translations. (@joost)
  • #89 Add Dutch Caribbean (former Netherlands Antilles) countries. (@woodrow)
  • #87 add armed forces subdivisions to united states (@jeremywrowe)
  • #82 add subdivisions to morocco (@jeremywrowe)
  • #83 add subdivisions to marshall islands (@jeremywrowe)
  • #84 add subdivisions to italy (@jeremywrowe)
  • #85 add subdivisions to hungary (@jeremywrowe)
  • #86 added subdivisions to chile (@jeremywrowe)
  • #88 Add waffle.io badge to readme (@waffleio)
  • #75 Bangladesh Currency code is BDT (@bradleypriest)
  • #76 italian and some missing spanish translations (@lorenzopagano)
  • #77 Convert to string before downcasing find_all_by attribute comparison (@jeremywrowe, @npverni)
  • #80 adds malta subdivisions (@jeremywrowe)
  • #81 added additional subdivisions to Uganda (@jeremywrowe)
  • #74 Update Mayotte (YT) country code from 269 to 262. (@illoyd)
  • #72 Merge pull request #72 from jrdi/refactorize_complex_methods (@jrdi)
  • #69 Add configuration and build status badge for Travis CI (@dwilkie)
  • #67 ignore rvm (@dwilkie)
  • #71 Merge pull request #71 from nettsundere/translations-spec (@nettsundere)
  • #68 specify gem dependencies in gemspec as recommended in Gemfile (@dwilkie)
  • #66 Documentation for in_eu? functionality (@jgrau)
  • #64 Rwanda phone numbers are now 8 and 9 digits long. (@dondeng)
  • #61 Initialize with wrong/not-present ISO should return nil (@jrdi)
  • #63 Fix and add french translations (@caedes)
  • #60 fix ‘should return alternate names’ spec (@jrdi)
  • #57 replace .rvmrc file with .ruby-version and .ruby-gemset for new versions of rvm (@dwilkie)
  • #58 Abbreviations for subdivisions in thailand (@dwilkie)
  • #55 Japanese Translations of Countries (@pwim)
  • #54 EU member state data (@kevinvandijk)
  • #53 Don’t depend on rails and country_select (@fschwahn)
  • #52 Use country_select gem to provide country_select form helper (@eakret)
  • #51 Correct Vietnam - reopen (@allika)
  • #1 Change ‘Viet Nam’ to ‘Vietnam’. (@allika)
  • #48 Added missing continent data to Norway. (@gilbertmj)
  • #46 add translations (@benben)
  • #45 added and corrected german translations (@benben)
  • #44 Fix country_options_for_select for when selected = nil (the default) (@rymai)
  • #43 Prevent selected from being included twice in the HTML for country selector helper (@damonmorgan)
  • #42 Divider for “priority countries” is still escaped (@damonmorgan)
  • #41 Specs (@leemhenson)
  • #39 Add south sudan (@josepjaume)
  • #38 Nationalities from CIA database (@bartoszkopinski)
  • #32 add continents (@lukkry)
  • #36 Updated Libya’s name (@yctay)
  • #35 Country#find_all_by improved (@cibernox)
  • #34 Country#all accepts a block to customize the output (@cibernox)
  • #33 Fix Hungarian subdivisions (@macat)
  • #29 Taiwan isn’t a province of china. (@isieo)

v0.8.3 (2012/08/19 16:54 +00:00)

  • #28 Update lib/data/countries.yaml (@hugovk)
  • #27 Updated currency of Estonia (EE) to EUR (since january 1st, 2011) (@markkorput)
  • #26 Fix: Mark all country names as html_safe for compatibility with Rails 3.1.4 and above (@theozaurus)
  • #22 Refactor internals to use Bundler for gem management instead of Jewler (@dwilkie)
  • #21 Makes two Country instances compare as equal if they have the same data (@fj)

v0.8.2 (2012/03/05 17:45 +00:00)

  • #18 Use html_safe for country_select helper (@thibaudgg)
  • #15 Adding IOC and UN/LOCODE (@unnu)

v0.8.1 (2011/12/12 19:10 +00:00)

  • #13 Cambodian Subdivision name change (@dwilkie)

v0.8.0 (2011/12/12 07:25 +00:00)

  • #12 UTF-8 Subdivision names (@dwilkie)

v0.7.0 (2011/12/06 19:24 +00:00)

  • #11 attribute based finder methods, override selected html option, fix for loading yaml. (@esfourteen)

v0.6.3 (2011/11/22 07:40 +00:00)

  • #9 Update country codes (@urbanwide)
  • #8 remove single quote escapes from countries data (@esfourteen)
  • #7 Added name to authors in gem specification (@joecorcoran)

v0.6.2 (2011/09/20 01:52 +00:00)

  • #6 Scope under module in select helper (@joecorcoran)

v0.6.1 (2011/09/16 20:01 +00:00)

  • #4 add find_country_by_name method, use downcase in find methods (@joecorcoran)

v0.5.3 (2011/07/12 15:26 +00:00)

  • #3 Fix FK country name. Thank you umka. (@umka)