diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b94195..5666dbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,18 @@ -## 5.4.0 (Next) +## 5.5.1 (Next) + +* Your contribution here. + +## 5.5.0 (2026/03/15) * [#131](https://github.com/radar/distance_of_time_in_words/pull/131): Deprecates `highest_measure_only`. Adds alternate form of `highest_measures` option to permit rounding up whatever part of the duration was previously silently discarded - [@seansfkelley](https://github.com/seansfkelley). * [#133](https://github.com/radar/distance_of_time_in_words/pull/133): Test on Ruby 3.0 and 3.1 - [@dblock](https://github.com/dblock). * [#134](https://github.com/radar/distance_of_time_in_words/pull/134): Add support for Dzongkha, the National language of Bhutan - [@KinWang-2013](https://github.com/KinWang-2013). * [#135](https://github.com/radar/distance_of_time_in_words/pull/135): Add support for Ruby 2.7 and 3.2, removed support for ruby 2.4, 2.5, 2.6 and Rails 4 - [@KinWang-2013](https://github.com/KinWang-2013). * [#136](https://github.com/radar/distance_of_time_in_words/pull/136): Add support for Rails 7 - [@KinWang-2013](https://github.com/KinWang-2013). -* [#139](https://github.com/radar/distance_of_time_in_words/pull/139): Fix bug with pluralization of Russian translations for numbers ending in 1 - [bitberry-dev](https://github.com/bitberry-dev). -* Your contribution here. +* [#139](https://github.com/radar/distance_of_time_in_words/pull/139): Fix bug with pluralization of Russian translations for numbers ending in 1 - [@bitberry-dev](https://github.com/bitberry-dev). +* [#140](https://github.com/radar/distance_of_time_in_words/pull/140): Add Ruby 3.3 and 3.4 support, added logger - [@dblock](https://github.com/dblock). +* [#141](https://github.com/radar/distance_of_time_in_words/pull/141): Fix flaky time calculation test by explicitly setting timezone - [@bitberry-dev](https://github.com/bitberry-dev). +* Fix bug when accumulating on years - [@radar](https://github.com/radar). ## 5.3.3 (2022/04/25) diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 0000000..e3ad265 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,71 @@ +# Releasing DOTIW + +There are no hard rules about when to release dotiw. Release bug fixes frequently, features not so frequently and breaking API changes rarely. + +## Release + +Run tests, check that all tests succeed locally. + +``` +bundle install +rake +``` + +Check that the last build succeeded in [GitHub Actions](https://github.com/radar/distance_of_time_in_words/actions) for all supported platforms. + +Add a date to this release in [CHANGELOG.md](CHANGELOG.md). + +``` +## 5.5.1 (2026/03/28) +``` + +Remove the line with "Your contribution here.", since there will be no more contributions to this release. + +Commit your changes. + +``` +git add CHANGELOG.md lib/dotiw/version.rb +git commit -m "Preparing for release, 5.5.1." +git push origin master +``` + +Release. + +``` +rake release +``` + +This builds the gem, creates and pushes a git tag, and pushes the gem to [RubyGems](https://rubygems.org/gems/dotiw). + +``` +dotiw 5.5.1 built to pkg/dotiw-5.5.1.gem. +Tagged v5.5.1. +Pushed git commits and tags. +Pushed dotiw 5.5.1 to rubygems.org. +``` + +Create a GitHub release for the tag using the `gh` CLI, passing the CHANGELOG entries for this version as the release notes. + +``` +gh release create v5.5.1 --title "5.5.1" --notes "$(sed -n '/^## 5.5.1/,/^## /p' CHANGELOG.md | sed '$d')" +``` + +## Prepare for the Next Version + +Add the next release to [CHANGELOG.md](CHANGELOG.md). + +``` +## 5.5.2 (Next) + +* Your contribution here. +``` + +Increment the patch version number in [lib/dotiw/version.rb](lib/dotiw/version.rb). + +Commit your changes. + +``` +git add CHANGELOG.md lib/dotiw/version.rb +git commit -m "Preparing for next developer iteration, 5.5.2." +git push origin master +``` diff --git a/lib/dotiw/version.rb b/lib/dotiw/version.rb index b02beb1..8cb8f64 100644 --- a/lib/dotiw/version.rb +++ b/lib/dotiw/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module DOTIW - VERSION = '5.5.0' + VERSION = '5.5.1' end