Skip to content

Bump countries from 5.6.0 to 8.1.0 - #263

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/countries-8.1.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/countries-8.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 14, 2026

Copy link
Copy Markdown
Contributor

Bumps countries from 5.6.0 to 8.1.0.

Release notes

Sourced from countries's releases.

8.1.0

What's Changed

New Contributors

Full Changelog: countries/countries@v8.0.4...v8.0.5

8.0.4

What's Changed

Full Changelog: countries/countries@v8.0.3...v8.0.4

8.0.3

What's Changed

New Contributors

Full Changelog: countries/countries@v8.0.2...v8.0.3

8.0.2

What's Changed

Full Changelog: countries/countries@v8.0.1...v8.0.2

8.0.1

What's Changed

... (truncated)

Changelog

Sourced from countries's changelog.

8.1.0 (2026/01/02 09:14 +00:00)

8.0.4 (2025/08/30 14:36 +00:00)

8.0.3 (2025/07/11 14:25 +00:00)

8.0.2 (2025/06/01 13:30 +00:00)

8.0.1 (2025/05/31 15:34 +00:00)

8.0.0 (2025/05/31 14:35 +00:00)

Breaking Changes

What's Changed

... (truncated)

Upgrade guide

Sourced from countries's upgrade guide.

Upgrading to 4.2 and 5.x

In release 4.2 the #name attribute was deprecated in favour of #iso_short_name and we added the #iso_long_name attribute, to make it clear that these attributes use the ISO3166 names, and are not the "common names" most people might expect, eg: The ISO name for "United Kingdom" is "United Kingdom of Great Britain and Northern Ireland", but if you're building a dropdown box to select a country, you're likely expecting to see "United Kingdom" instead.

"Common names" in English have been available in the translation data, via #translation('en'). As of release 4.2, a shortcut method has been added for simplicity, #common_name, which delegates to #translation('en').

For additional clarity, the #names method, which was an alias to #unofficial_names has also been deprecated, together with the finder methods that use name or names attributes.

The #name and #names attributes, and corresponding finder methods were removed in 5.0.

The replacement finders added in 5.0 are:

  • #find_by_name => #find_by_any_name - Searches all the name attributes, same as before
  • #find_by_names => #find_by_unofficial_names
  • #find_*_by_name => #find_*_by_any_name
  • #find_*_by_names => #find_*_by_unofficial_names

With the addition of the new name attributes, there are now also the following finders:

  • #find_by_common_name/#find_*_by_common_name
  • #find_by_iso_short_name/#find_*_by_iso_short_name
  • #find_by_iso_long_name/#find_*_by_iso_long_name

For translated country names, we use data originally sourced from pkg-isocodes, via the i18n_data gem, and these generally correspond to the expected "common names". Some corrections have been applied to these localized names. The methods to access translated names have not been changed.

The 5.0 release removed support for Ruby 2.5 (EOL 2021-03-01) and 2.6 (EOL 2022-03-31)

Upgrading to 5.1

In release 5.1 a type attribute was added to the subdivisions object, to allow filtering the collection of subdivisions.

  • Country#subdivision_types returns a list of subdivision types for that country (lowercase, snake_cased)
  • #subdivisions_of_types(types) accepts an array of subdivision types and returns the subdivisions for those types

The #states method is deprecated to avoid confusion, as this method is an alias to #subdivisions and returns all subdivisions, regardless of type.

To get a list of state subdivisions (something that was not possible before 5.1), use subdivisions_of_types(['state'])

Please note that the subdivision types are obtained from ISO data, and each country defines its own subdivision types, eg: state, district, region, municipality and many others types exist.

Upgrading to 7.0

In release 7.0, the long-deprecated #states method has been removed. More information above (Upgrading to 5.1)

Commits
  • 8c026f5 Bump version, update CHANGELOG and cache
  • 6d05a34 Merge pull request #942 from countries/ruby-4
  • 3c827e3 Add ruby 4.0.0 to test matrix and update gems
  • c9474b8 Merge pull request #941 from countries/update-vatican-nationality
  • 87a8f56 Merge pull request #940 from countries/update_BG_to_EUR
  • 0999e7b Cache update needed to validate specs
  • 16d6108 Update spec
  • 1cdc06f Change Vatican nationality to Vatican Citizen over Italian
  • 33bf18d Update BG to EUR (effective 1 Jan 26)
  • 89a1041 Merge pull request #935 from simplicitybg/bg-translations-update
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies major ruby Pull requests that update ruby code labels Sep 14, 2026
@dependabot
dependabot Bot force-pushed the dependabot/bundler/countries-8.1.0 branch 2 times, most recently from b7b4373 to a81000f Compare September 14, 2026 22:18
Bumps [countries](https://github.com/countries/countries) from 5.6.0 to 8.1.0.
- [Release notes](https://github.com/countries/countries/releases)
- [Changelog](https://github.com/countries/countries/blob/master/CHANGELOG.md)
- [Upgrade guide](https://github.com/countries/countries/blob/master/UPGRADE.md)
- [Commits](countries/countries@v5.6.0...v8.1.0)

---
updated-dependencies:
- dependency-name: countries
  dependency-version: 8.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/bundler/countries-8.1.0 branch from a81000f to f6d7d78 Compare September 14, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies major ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants