Bump countries from 4.0.1 to 7.0.0 in /backend
Bumps countries from 4.0.1 to 7.0.0.
Release notes
Sourced from countries's releases.
7.0.0
Breaking Changes
- Remove support for Ruby 3.0 (EOL 2024-04-23) by
@pmorin countries/countries#868- Remove deprecated
#statemethod (Deprecated since 5.1.0 - 2022-06-27) by@pmorin countries/countries#869What's Changed
- Update PY.yaml by
@jaredwindoverin countries/countries#853- Languages updates by
@pmorin countries/countries#854- Change VAT rates for CH valid from 2024-01-01 by
@phylorin countries/countries#850- Add Great Britain as an Unofficial Name for GB by
@djpremierin countries/countries#855- Update CD.yaml and CG.yaml by
@gabrielgaraujoin countries/countries#857- Update MM.yaml by
@gabrielgaraujoin countries/countries#858- Correct Peterborough by
@kylewelsbyin countries/countries#860- Fix ER currency code by
@pmorin countries/countries#861- VAT rate for Finland changed to 25.5% as of 2024-09-01 by
@JanMSPin countries/countries#864- Lazy load default locales by
@laccoin countries/countries#865- fix and tests by
@CoderMiguelin countries/countries#866New Contributors
@jaredwindovermade their first contribution in countries/countries#853@djpremiermade their first contribution in countries/countries#855@gabrielgaraujomade their first contribution in countries/countries#857@kylewelsbymade their first contribution in countries/countries#860@laccomade their first contribution in countries/countries#865@CoderMiguelmade their first contribution in countries/countries#866Full Changelog: https://github.com/countries/countries/compare/v6.0.1...v7.0.0
6.0.1
What's Changed
- Adds the unofficial localized name of Bulgaria in Bulgarian by
@itay-grudevin countries/countries#844- Update GT subdivisions by
@sineedin countries/countries#839- Update Estonia standard VAT from 20% to 22% (January 1st 2024 change) by
@jarthodin countries/countries#849- Add fy language to NL, fixes #843 by
@pmorin countries/countries#846- Add conversion methods for country codes by
@mechnicovin countries/countries#847New Contributors
@itay-grudevmade their first contribution in countries/countries#844@sineedmade their first contribution in countries/countries#839@jarthodmade their first contribution in countries/countries#849@mechnicovmade their first contribution in countries/countries#847Full Changelog: https://github.com/countries/countries/compare/v6.0.0...v6.0.1
6.0.0
Breaking Changes
- Drop support for ruby 2.7 and add 3.3 to test matrix by
@pmorin countries/countries#830Full Changelog: https://github.com/countries/countries/compare/v5.7.2...v6.0.0
... (truncated)
Changelog
Sourced from countries's changelog.
7.0.0 (2024/09/29 19:40 +00:00)
Changing CHANGELOG entry format to use GitHub's generated release notes.
Breaking Changes
- Remove support for Ruby 3.0 (EOL 2024-04-23) by
@pmorin countries/countries#868- Remove deprecated
#statemethod (Deprecated since 5.1.0 - 2022-06-27) by@pmorin countries/countries#869What's Changed
- Update PY.yaml by
@jaredwindoverin countries/countries#853- Languages updates by
@pmorin countries/countries#854- Change VAT rates for CH valid from 2024-01-01 by
@phylorin countries/countries#850- Add Great Britain as an Unofficial Name for GB by
@djpremierin countries/countries#855- Update CD.yaml and CG.yaml by
@gabrielgaraujoin countries/countries#857- Update MM.yaml by
@gabrielgaraujoin countries/countries#858- Correct Peterborough by
@kylewelsbyin countries/countries#860- Fix ER currency code by
@pmorin countries/countries#861- VAT rate for Finland changed to 25.5% as of 2024-09-01 by
@JanMSPin countries/countries#864- Lazy load default locales by
@laccoin countries/countries#865- fix and tests by
@CoderMiguelin countries/countries#8666.0.1 (2024/05/18 11:35 +00:00)
- Adds the unofficial localized name of Bulgaria in Bulgarian #844 (itay-grudev)
- Update GT subdivisions #839 (sineed)
- Update Estonia standard VAT from 20% to 22% (January 1st 2024 change) #849 (jarthod)
- Add fy language to NL, fixes #843 #846 (pmor)
- Add conversion methods for country codes #847 (mechnicov)
6.0.0 (2024/02/17 17:33 +00:00)
Breaking Changes
5.7.2 (2024/02/17 11:09 +00:00)
Fixes:
- fix: Corrected the Japanese name of Kyrgyzstan to the official name of the country #831 (rjtt17)
- Freeze Strings #833 (swiknaba)
- remove unused gem retryable #834 (swiknaba)
- Fix documentation for languages with dashes #835 (sunny)
- Updates for India subdivision codes #836 (DarylMT)
- Update LB.yaml IOC code #837 (pzupan)
- Update language and reduced VAT rate for Czechia #838 (cervm)
5.7.1 (2023/12/07 15:59 +00:00)
Fixes:
- Only include /lib in package #831 (patrickarnett)
... (truncated)
Upgrade guide
Sourced from countries's upgrade guide.
Upgrading to 4.2 and 5.x
In release 4.2 the
#nameattribute was deprecated in favour of#iso_short_nameand we added the#iso_long_nameattribute, 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
#namesmethod, which was an alias to#unofficial_nameshas also been deprecated, together with the finder methods that usenameornamesattributes.The
#nameand#namesattributes, 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_namesWith 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_nameFor 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
typeattribute was added to the subdivisions object, to allow filtering the collection of subdivisions.
Country#subdivision_typesreturns 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 typesThe
#statesmethod is deprecated to avoid confusion, as this method is an alias to#subdivisionsand returns all subdivisions, regardless of type.To get a list of
statesubdivisions (something that was not possible before 5.1), usesubdivisions_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,municipalityand many others types exist.Upgrading to 7.0
In release 7.0, the long-deprecated
#statesmethod has been removed. More information above (Upgrading to 5.1)
Commits
3639158Update cache and CHANGELOG, bump versionb0b68f0Merge pull request #868 from countries/remove_ruby_3002ecab3Remove support for Ruby 3.0 and update dependenciesc85fc89Merge pull request #869 from countries/remove_deprecated_method1e34ab7Remove deprecated#statemethod; Fix rubocop issues1b671bbMerge pull request #866 from CoderMiguel/fix_for_country_finder_method_missing1781e40Merge pull request #865 from lacco/lazy-load-default-localesc217803fix and tests8113141revert spec change2a6f7d9revert reset change- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)