Skip to content

v2.0

Latest
Compare
Choose a tag to compare
@hannah-dw hannah-dw released this 16 Jan 14:26
· 8 commits to main since this release
a5c3f58

This release updates the countries gem to ~>5.7, intending to improve security of the gem and allow for repositories that use this gem to upgrade.

PR: #5

The changelog for the countries gem describes needing an upgrade process for the upgrade to 4.2, and for the upgrade to 5.0. As such, I've made a major version change to this change, to reflect that these were breaking changes and may cause issues elsewhere.

The only breaking change within this gem itself for national-holidays-ruby is that .name is now deprecated on the countries gem. This means that instead, we're using .iso_short_name. There is also .common_name, and .iso_long_name, but these do not match the previous expected behaviours. Common name shortens United Kingdom of Great Britain and Northern Ireland to simply United Kingdom, whereas long names add The to country names. .iso_short_name is the closest to existing functionality.

The other breaking change for 5.0 breaks find_by methods, but these are unused here.

UPGRADE.md for the countries gem: https://github.com/countries/countries/blob/master/UPGRADE.md
Changelog for countries gem: https://github.com/countries/countries/blob/master/CHANGELOG.md