From 53eb101eb99526a1237019aacf345edb832c2497 Mon Sep 17 00:00:00 2001 From: Tatsuki Sugiura Date: Mon, 13 Jul 2026 11:32:46 +0000 Subject: [PATCH 1/2] Update ChangeLog for v2.0.0 release Add release-note items that were missing from the 2.0.0 entry: kyuureki calendar data refresh from manakai/data-locale, ActiveSupport::Duration calculation support, and frozen era definition structs. Fold the zero-padding contribution block into the 2.0.0 entry, matching the 1.1.0 entry format. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01G2kb9FSReeFa92TBCKAqmK --- ChangeLog | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 694cd9d..6bcc423 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,11 +15,18 @@ * README: document that conversion from Date/jd prefers northern court eras during the Nanboku-cho period (previous statement was wrong; behavior unchanged from 1.1.0) + * Update kyuureki calendar data (regenerated from + manakai/data-locale); corrects month boundaries of some + historical years * Wareki::Date#- returns day count for date-like operands; #+ raises TypeError for non-numeric operands (stdlib parity) + * Support date calculation with ActiveSupport::Duration + (was NotImplementedError) * Add Wareki::Date#hash, #<=>, Comparable and #succ * Invalidate cached jd on attribute writes; writers keep year/era_year consistent + * Freeze era definition structs to prevent accidental mutation + of shared state * Fix imperial_year= setter (sign error) * Parse apostrophe leap-month markers so %Jf/%Jm output round-trips * Fix misokka (晦日) parsing for 皇紀/西暦/紀元前/era-less dates @@ -31,8 +38,6 @@ * Fix deprecated Utils.i_to_kan (was calling undefined method) * gemspec: SPDX license identifier (BSD-2-Clause) -2025-03-10 Tatsuki Sugiura - [ by masa.kunikata ] * Add zero padding format feature * Use zero padded format on default From 50aba36d98e4a1cc1d9eb16867c5387df46210a0 Mon Sep 17 00:00:00 2001 From: Tatsuki Sugiura Date: Mon, 13 Jul 2026 11:42:09 +0000 Subject: [PATCH 2/2] Bump version to 2.0.0 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01G2kb9FSReeFa92TBCKAqmK --- lib/wareki/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wareki/version.rb b/lib/wareki/version.rb index 3367f29..f18b6f4 100644 --- a/lib/wareki/version.rb +++ b/lib/wareki/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Wareki - VERSION = '1.1.0' + VERSION = '2.0.0' end