- #195 - Fix deprecation warning on find_by_name (@filipemendespi)
- #190 - Upgrade to countries 4.2 (@pmor)
- #191 - Add Rails 7 + Ruby 3.1 to build (@scudco)
- #186 - Upgrade to countries 4.0.0 (@pmor)
- #184 - Add ability to configure defaults (@p-wall)
- Upgrade to countries 3.1.0
- #181 - Fix i18n fallback in country translations (@lavaturtle)
- #164,#172 - Remove support for EOL versions of Ruby and Ruby on Rails
- Ruby >= 2.5, Rails >= 5.2
- #175 - Add Rails 6.1 Support *(@andrehjr)
- #173 - Fallback even if translations cannot be loaded (@mikepluquin)
- #164 - Fixup travis build matrix (@olleolleolle)
- #160 - Upgrade to countries 3.0 - @gssbzn
- #146 - Fix value call on Rails edge (5.2+) - @ybart
- #144 - Provide a possibility to opt out of
sort_alphabetical
- @fschwahn
- #138 - Upgrade to Countries 2.0
- #136 - Drop support for Ruby 1.9.3 as countries 2.0 no longer supports it
- #127 - Fix multi-selects - @jjballano
- #118 - Fix bad require of countries gem that caused issues if you
already had a
Country
class
- #117 - Update countries gem to ~> v1.2.0
- #111 - Update countries gem to ~> v1.1.0
- #107,#108 - Update countries gem to ~> v1.0.0
- #101 - Update countries gem to ~> v0.11.0
- #94 - Prevent usage of countries v0.10.0 due to poor performance
- #70 - Allow custom formats for option tag text – See README.md
- #72 - Fixed
include_blank
andprompt
in Rails 3.2 - #75 - Raise
CountrySelect::CountryNotFound
error when given a country name or code that is not found in https://github.com/hexorx/countries
- Removed support for Ruby < 1.9.3
- ISO-3166 alpha-2 codes are now on by default, stored in uppercase (e.g., US)
- Localization is always on
- The
country_select
method will always attempt to localize country names based on the value ofI18n.locale
via translations stored in thecountries
gem
- The
- Priority countries should now be set via the
priority_countries
option- The original 1.x syntax is still available
- The list of countries can now be limited with the
only
andexcept
options - Add best-guess support for country names when codes aren't provided in options (e.g., priority_countries)
-
Country names have been synced with UTF-8 encoding to the list of countries on Wikipedia's page for the ISO-3166 standard.
- NOTE: This could be a breaking change with some of the country names that have been fixed since the list was last updated.
- For more information you can checkout all country mappings with
::CountrySelect::COUNTRIES
-
You can now store your country values using the ISO-3166 Alpha-2 codes with the
iso_codes
option. See the README.md for details.- This should help alleviate the problem of country names in ISO-3166 being changed and/or corrected.