Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <sugi@nemui.org>

[ by masa.kunikata <masa.kunikata@gmail.com> ]
* Add zero padding format feature
* Use zero padded format on default
Expand Down
2 changes: 1 addition & 1 deletion lib/wareki/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Wareki
VERSION = '1.1.0'
VERSION = '2.0.0'
end
Loading