From fab9982eeace76222d44d4df2a7bc5c04922caef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julia=20Lo=CC=81pez?= Date: Thu, 17 Sep 2026 16:23:55 +0200 Subject: [PATCH] fix(release): prepare 2.0.1 Releases the ISO code parsing fix: `Monetize.parse('20.00 DKK')` returned 20.00 in the default currency instead of 20.00 DKK, because currencies absent from `Monetize::Parser::CURRENCY_SYMBOLS` were ignored. Codes not in that list are now honoured. Patch, not minor: the only other change since 2.0.0 is a refactor of `parser.rb` with added `enforce_currency_delimiters` test coverage, which parses every input exactly as 2.0.0 did. Bumps `Monetize::VERSION` and turns the CHANGELOG's "Unreleased" heading into the 2.0.1 section, leaving an empty "Unreleased" on top. --- CHANGELOG.md | 4 +++- lib/monetize/version.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b21b25123..30db3a416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Changelog ## Unreleased -- Fix parsing of ISO codes not in `Monetize::Parser::CURRENCY_SYMBOLS`. + +## 2.0.1 +- Fix parsing of ISO codes not in `Monetize::Parser::CURRENCY_SYMBOLS`. `Monetize.parse('20.00 DKK')` returned 20.00 in the default currency instead of 20.00 DKK. ## 2.0.0 - **Breaking change**: Remove deprecated `Monetize.extract_cents`. diff --git a/lib/monetize/version.rb b/lib/monetize/version.rb index e48b66a49..4f006a665 100644 --- a/lib/monetize/version.rb +++ b/lib/monetize/version.rb @@ -1,3 +1,3 @@ module Monetize - VERSION = '2.0.0' + VERSION = '2.0.1' end