Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump countries from 4.0.1 to 5.6.0 in /backend #670

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 22, 2023

Bumps countries from 4.0.1 to 5.6.0.

Release notes

Sourced from countries's releases.

5.6.0

What's Changed

Full Changelog: countries/countries@v5.5.0...v.5.6.0

5.5.0

What's Changed

New Contributors

Full Changelog: countries/countries@v5.4.0...v5.5.0

5.4.0

What's Changed

New Contributors

Full Changelog: countries/countries@v5.3.2...v5.4.0

5.3.2

What's Changed

New Contributors

Full Changelog: countries/countries@v5.3.1...v5.3.2

5.3.1

What's Changed

New Contributors

... (truncated)

Changelog

Sourced from countries's changelog.

5.6.0 (2023/08/01 14:00 +00:00)

  • Fix Taiwan's iso_long_name not matching ISO data. #810 (pmor)
  • Wrap postal code format regex in anchors #814 (pmor)

5.5.0 (2023/06/17 16:20 +00:00)

  • Added G20 and G7 member fields #799 (AndromedaSugar)
  • Update subdivision translations from CLDR #802 (pmor)
  • Adds Country#collect_countries_with, Country#collect_likely_subdivisions, Country.find_subdivision_with, Country.find_subdivision_code_with_translations #800 (pmor)
  • Add Japanese translation to subdivisions data #804 (shucream-p)
  • Adding gdpr_compliant method to check if a country is regulated by GDPR #807 (yeseniamolinab)

5.4.0 (2023/04/12 12:44 +00:00)

  • fix: RUP are part of the European Union #794 (btrd)
  • Fix wrong translation of MY in gn locale #798 (pmor)
  • Add EU VAT Area membership #796 (pmor)

5.3.2 (2023/03/31 13:46 +00:00)

  • Add Japanese translation for Czechia, North Macedonia and Eswatini #795 (nmbakfm)

5.3.1 (2023/01/26 14:05 +00:00)

  • Update countries-th.yaml #792 (worrawutp)
  • Fix #765 - Restore Australia as first unnoficial name for Australia (pmor)

Full Changelog: countries/countries@v5.3.0...v5.3.1

5.3.0 (2023/01/03 17:02 +00:00)

Merged pull requests:

  • Remove dead code: KwargStruct #787 (pmor)
  • Update data for Turkmenistan and add Turkmen translation #789 (msuliq)
  • Add Country#subdivision_names method #788 (pmor)

5.2.1 (2022/12/22 15:29 +00:00)

Important changes

  • The Republic of Croatia will join the Eurozone and switch currency to EUR in Jan 1 2023. If you update this gem before that date and need to have correct currency codes as of 2022, I recommend using an initializer to re-register Croatia with HRK, which you could wrap with a check of the current date, eg:

      # In an initializer
      if Date.today.year == 2022
        new_data = ISO3166::Country['HR'].data
        new_data.transform_keys! &:to_sym

... (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.

Commits
  • 5f40a96 Bump version, update cache and CHANGELOG
  • ae1006c Merge pull request #814 from countries/fix-813
  • 25628e9 Update codeql-analysis.yml
  • c8348bc Wrap postal code format regex in anchors. Fixes #813
  • d3a98d4 Merge pull request #810 from countries/fix-tw-long_name
  • 12ead4e Fix Taiwan's iso_long_name not matching ISO data. Fixes #809
  • d763880 Bump version, update changelog, dependencies and cache
  • 48bb1dc Merge pull request #807 from yeseniamolinab/gdpr-feature
  • 4bc0e06 fixing specs
  • 028c6c0 updated readme
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added ruby Pull requests that update Ruby code type:dependency Pull requests that update a dependency file labels Sep 22, 2023
Bumps [countries](https://github.com/countries/countries) from 4.0.1 to 5.6.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@v4.0.1...v.5.6.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/bundler/backend/countries-5.6.0 branch from 4727d47 to 08b6fb4 Compare October 5, 2023 20:12
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 9, 2023

Superseded by #681.

@dependabot dependabot bot closed this Oct 9, 2023
@dependabot dependabot bot deleted the dependabot/bundler/backend/countries-5.6.0 branch October 9, 2023 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code type:dependency Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants