Repository navigation
Expand file tree
/
Copy pathChangeLog
More file actions
152 lines (119 loc) · 5.44 KB
/
Copy pathChangeLog
File metadata and controls
152 lines (119 loc) · 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
2026-07-13 Tatsuki Sugiura <sugi@nemui.org>
* Version: 2.1.0
* Shrink in-memory kyuureki calendar table to ~1/48 (bit-packed
one-integer-per-year representation in new internal module
Wareki::Calendar); calendar definitions now load ~30x faster
* Era definitions are now generated from manakai/data-locale
era-defs.json instead of the Wikipedia era list page
(build-util/gen-era-def.rb); corrects 正平/建徳/文中 boundaries,
白雉/朱鳥 now cover until the end of their last kyuureki year,
and ERA_NORTH_DEFS 元徳 now ends at 正慶 transition
* Wareki.parse_to_date and patched Date.parse/_parse no longer
fall back to stdlib parsing on UnsupportedDateRange; the error
propagates again as in 1.x (reverts a 2.0.0 change)
* Cache kansuji conversion of small numbers for %J format
directives; Utils.to_simple_kan delegates non-Integer values
to YaKansuji
* Fast-path ASCII-only strings in patched Date.parse/Date._parse
* Remove internal constants Wareki::YEAR_DEFS, Wareki::YEAR_BY_NUM,
Wareki::Year and Wareki::Utils.find_year
* required_ruby_version is now >= 2.3
2026-07-13 Tatsuki Sugiura <sugi@nemui.org>
* Version: 2.0.0
* Time.parse now understands Japanese kansuji/zenkaku time notations
(十二時三十四分五十六秒, 午後三時半, 正午, ...) via the patched
Date._parse; Date.parse no longer misreads bare 時分秒 strings
* Add %JT* time format directives (%JTf/%JTF/%JTH(k)/%JTM(k)/%JTS(k));
Time#strftime now supports all %J directives and DateTime#strftime
expands %JT too; add Time#to_wareki_date
* Strict date validation: nonexistent dates now raise
Wareki::InvalidDate (< ArgumentError) (month/day out of range,
nonexistent leap month, and the Meiji 5 December calendar-switch
gap for all era notations); patched Date.parse re-raises it
instead of falling back to stdlib misinterpretation
* 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
* DateTime#strftime now supports %J directives
* Escaped %%J or invalid %J sequences no longer trigger conversion;
Wareki::Date#strftime honors %% escapes too
* Fast-path non-wareki strings in patched Date.parse/_parse
* Wareki.parse_to_date falls back on UnsupportedDateRange too
* Fix deprecated Utils.i_to_kan (was calling undefined method)
* gemspec: SPDX license identifier (BSD-2-Clause)
[ by masa.kunikata <masa.kunikata@gmail.com> ]
* Add zero padding format feature
* Use zero padded format on default
2019-12-24 Tatsuki Sugiura <sugi@nemui.org>
* Version: 1.1.0
[ by Akinori MUSHA <knu@idaemons.org> ]
* Partially traditional kanji variants support
* Compatibility fix: Date.parse with no arguement
* Provides Date._parse overrides (currently no kansuji
support for time fields at present)
2019-04-15 Tatsuki Sugiura <sugi@nemui.org>
* Verion: 1.0.0 🎉, compat with 0.x mostly.
* Split kansuji handling to 'ya_kansuji' gem
* Deprecate Wareki::Kansuji module
* Revert Utils.kan_to_i and Utils.i_to_kan as deprecated
2019-04-11 Tatsuki Sugiura <sugi@nemui.org>
* Version: 0.4.2
* Update square era name support for "㋿"
* Support unicode variant parsing 令 (U+F9A8)
2019-04-08 Tatsuki Sugiura <sugi@nemui.org>
* Version: 0.4.1
* Raise ArgumentError for empty string (regression on 0.4.0).
(Thanks to Katsusuke Shimizu @katsusuke)
2019-04-01 Tatsuki Sugiura <sugi@nemui.org>
* Version: 0.4.0
* Add new era definition for "令和"
* Support parse without year (#9)
(Thanks to a report report from @ryooo)
* Add support for "元旦"
* Provide Wareki::VERSION
2018-11-09 Tatsuki Sugiura <sugi@nemui.org>
* Version: 0.3.0
* Support "大字"-style kansuji.
2018-09-19 Tatsuki Sugiura <sugi@nemui.org>
* Version: 0.2.2
* Tiny improvement on date validation
2018-08-27 Tatsuki Sugiura <sugi@nemui.org>
* Version: 0.2.1
* Support square era name chars (㍾ ㍽ ㍼ ㍻)
2017-07-25 Tatsuki Sugiura <sugi@nemui.org>
* Version: 0.2.0
* Support date calculation (limited with Number)
* Add compare methods
* Fix error with "晦日" after Date::GREGORIAN
2017-06-01 Tatsuki Sugiura <sugi@nemui.org>
* Version: 0.1.4
* Add ad-hoc support for 西暦 and 紀元前
2017-02-04 Tatsuki Sugiura <sugi@nemui.org>
* Version 0.1.3
* Fix last day of era/year handling issue (#2)
* Fix kansuji converter for large numbers
(This is NOT affected with ordinal date numbers)
2015-09-03 Tatsuki Sugiura <sugi@nemui.org>
* Version 0.1.2
* Fix file permissions (#1)
2015-08-23 Tatsuki Sugiura <sugi@nemui.org>
* Version 0.1.1
* Fix gemspec: dependency of ruby version
2015-08-23 Tatsuki Sugiura <sugi@nemui.org>
* Version 0.1.0.
* First release