- Drop support for Ruby 3.0 (EOL 2024-04-23) (@pmor)
- Add Rails 7.2 to the test matrix (@pmor)
- Update countries gem to 7.0.0 (@pmor)
- Drop support for Ruby 2.7, Rails 5.2 and 6.0 (@pmor)
- Remove support for deprecated 1.x syntax (@pmor)
- Fix when country name is nil. (@zerobearing2)
- Code cleanup (@pmor)
- Update CodeQL to V2 (@scudco)
- Adding support for Rails 7.1 after recent Form Options helper changes (@ron-shinall)
- Update README.md by (@ron-shinall)
- Update installation instructions by (@henrik)
- Fix deprecated File.exists? on ruby 3.2.0 by (@JNajera212)
- Fix priority country sorting bug by (@pmor)
- Update countries gem to 5.3.0 (@pmor)
- Update countries gem to 5.1.0 (@pmor)
- Add deprecation warning for old priority country syntax (@pmor)
- Allow option to preserve the sort order as inputted in the
only
array of countries (@pmor) - Remove
sort_alphabetical
dependency (@pmor)
- #200 - Drop support for Ruby 2.5 and 2.6 (@pmor)
- #201 - Upgrade countries gem to 5.0.0 (@pmor)
- #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.