verified_holidays 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +57 -27
- data/README.md +15 -0
- data/lib/verified_holidays/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 498675ea5314d9975675259c063fd799ed6ccd6ae26b8e9ee580820f66f762ed
|
|
4
|
+
data.tar.gz: 0b9f867b89a650bb61094af00b416e1aa619598ab496823c510660de2b7a61e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 761f2bbf074908bb02bd0e465749a11d2e5ad92600e0a48c618e91d9003368f26966d7cd5d52353ed481daa73c562f9f455b18b26c544d4b23b55e8be853ebc0
|
|
7
|
+
data.tar.gz: 4c2fff184eced49b5472f6dde573c8421b7be8659f13171bdc0fe48b1ecd2e8a8d8d5695ac046c3c7da522fd1ab0676729532270bf9066c0e6ac2d627507c1a6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.5](https://github.com/verified-holidays/verified_holidays/compare/verified_holidays/v0.3.4...verified_holidays/v0.3.5) (2026-08-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous
|
|
7
|
+
|
|
8
|
+
* stop opening a new issue for every failed weekly verification ([#41](https://github.com/verified-holidays/verified_holidays/issues/41)) ([85e0c0a](https://github.com/verified-holidays/verified_holidays/commit/85e0c0a63ab55e473a4174d2b83ea3a57150d163))
|
|
9
|
+
|
|
3
10
|
## [0.3.4](https://github.com/verified-holidays/verified_holidays/compare/verified_holidays/v0.3.3...verified_holidays/v0.3.4) (2026-08-22)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -91,39 +98,62 @@
|
|
|
91
98
|
* add auto-assign workflow for pull requests ([#14](https://github.com/verified-holidays/verified_holidays/issues/14)) ([a09ac2e](https://github.com/verified-holidays/verified_holidays/commit/a09ac2e7b432c56fad6899ba0d32f24a86a91feb))
|
|
92
99
|
* introduce release-please for automated releases ([#12](https://github.com/verified-holidays/verified_holidays/issues/12)) ([6690b1b](https://github.com/verified-holidays/verified_holidays/commit/6690b1b355504ca794a950e1b8841b68f4e880fb))
|
|
93
100
|
|
|
94
|
-
## [0.1.4]
|
|
101
|
+
## [0.1.4](https://github.com/verified-holidays/verified_holidays/compare/v0.1.3...v0.1.4) (2026-03-29)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
* fix file path labeler removing branch-based labels (sync-labels: false) ([#10](https://github.com/verified-holidays/verified_holidays/issues/10)) ([d3068c7](https://github.com/verified-holidays/verified_holidays/commit/d3068c7c82e08924ee386367829029f3b7ebba59))
|
|
107
|
+
|
|
108
|
+
## [0.1.3](https://github.com/verified-holidays/verified_holidays/compare/v0.1.2...v0.1.3) (2026-03-29)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Refactoring
|
|
112
|
+
|
|
113
|
+
* replace numeric index access with header name access in `CabinetOffice.parse` ([#6](https://github.com/verified-holidays/verified_holidays/issues/6)) ([1feb3b7](https://github.com/verified-holidays/verified_holidays/commit/1feb3b725d8f6e134ac2dcfe5de5d0171dc7f96f))
|
|
95
114
|
|
|
96
|
-
- Fix file path labeler removing branch-based labels (sync-labels: false)
|
|
97
115
|
|
|
98
|
-
|
|
116
|
+
### Miscellaneous
|
|
117
|
+
|
|
118
|
+
* add Auto Release workflow ([#7](https://github.com/verified-holidays/verified_holidays/issues/7)) ([86531e3](https://github.com/verified-holidays/verified_holidays/commit/86531e3ba11712a25b2278fe81e52ed130df99c2))
|
|
119
|
+
* add auto-labeler workflows (file path labeler + branch prefix labeler) ([#8](https://github.com/verified-holidays/verified_holidays/issues/8)) ([7e3edc9](https://github.com/verified-holidays/verified_holidays/commit/7e3edc950daa7e665713da587820c7c6723ff172))
|
|
120
|
+
|
|
121
|
+
## [0.1.2](https://github.com/verified-holidays/verified_holidays/compare/v0.1.1...v0.1.2) (2026-03-29)
|
|
122
|
+
|
|
99
123
|
|
|
100
|
-
|
|
101
|
-
- Add Auto Release workflow
|
|
102
|
-
- Add auto-labeler workflows (file path labeler + branch prefix labeler)
|
|
124
|
+
### Refactoring
|
|
103
125
|
|
|
104
|
-
|
|
126
|
+
* add `CabinetOffice.presence` to handle blank CSV fields ([#4](https://github.com/verified-holidays/verified_holidays/issues/4)) ([eadc150](https://github.com/verified-holidays/verified_holidays/commit/eadc150ea1f202a5974b2fb5d0539610feedb1f9))
|
|
127
|
+
* inline `CabinetOffice.parse_date` using `Date.strptime` ([#3](https://github.com/verified-holidays/verified_holidays/issues/3)) ([f31d1f9](https://github.com/verified-holidays/verified_holidays/commit/f31d1f91514b0182b941d22925b4698f3af927d2))
|
|
128
|
+
* simplify `Dataset#name` to one-liner ([#4](https://github.com/verified-holidays/verified_holidays/issues/4)) ([eadc150](https://github.com/verified-holidays/verified_holidays/commit/eadc150ea1f202a5974b2fb5d0539610feedb1f9))
|
|
129
|
+
* use `minmax` in `Verifier.filter_local_data` ([#4](https://github.com/verified-holidays/verified_holidays/issues/4)) ([eadc150](https://github.com/verified-holidays/verified_holidays/commit/eadc150ea1f202a5974b2fb5d0539610feedb1f9))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Miscellaneous
|
|
105
133
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
- Inline `CabinetOffice.parse_date` using `Date.strptime`
|
|
109
|
-
- Add `CabinetOffice.presence` to handle blank CSV fields
|
|
110
|
-
- Use `minmax` in `Verifier.filter_local_data`
|
|
111
|
-
- Simplify `Dataset#name` to one-liner
|
|
134
|
+
* add edge case tests for CSV parsing, Holiday model, Verifier, and main API ([#2](https://github.com/verified-holidays/verified_holidays/issues/2)) ([1b54b72](https://github.com/verified-holidays/verified_holidays/commit/1b54b729206c4ccd719357d4e2c95a3ea66ba4b5))
|
|
135
|
+
* add SimpleCov with 90% minimum coverage threshold (line and branch) ([#2](https://github.com/verified-holidays/verified_holidays/issues/2)) ([1b54b72](https://github.com/verified-holidays/verified_holidays/commit/1b54b729206c4ccd719357d4e2c95a3ea66ba4b5))
|
|
112
136
|
|
|
113
|
-
## [0.1.1]
|
|
137
|
+
## [0.1.1](https://github.com/verified-holidays/verified_holidays/compare/v0.1.0...v0.1.1) (2026-03-23)
|
|
114
138
|
|
|
115
|
-
- Move repository to GitHub Organization: `verified-holidays/verified_holidays`
|
|
116
|
-
- Update all repository URLs in gemspec, README badges, and contributing link
|
|
117
139
|
|
|
118
|
-
|
|
140
|
+
### Miscellaneous
|
|
141
|
+
|
|
142
|
+
* move repository to GitHub Organization: `verified-holidays/verified_holidays` ([#1](https://github.com/verified-holidays/verified_holidays/issues/1)) ([ef5ef60](https://github.com/verified-holidays/verified_holidays/commit/ef5ef60f08a6aa81c33ee92082f59e7241226cca))
|
|
143
|
+
* update all repository URLs in gemspec, README badges, and contributing link ([#1](https://github.com/verified-holidays/verified_holidays/issues/1)) ([ef5ef60](https://github.com/verified-holidays/verified_holidays/commit/ef5ef60f08a6aa81c33ee92082f59e7241226cca))
|
|
144
|
+
|
|
145
|
+
## 0.1.0 (2026-03-20)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### Features
|
|
119
149
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
150
|
+
* initial release as `verified_holidays` (previously developed as `shukujitsu`) ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
151
|
+
* `VerifiedHolidays.holiday?` — check if a date is a Japanese national holiday ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
152
|
+
* `VerifiedHolidays.between` — list holidays in a date range ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
153
|
+
* `VerifiedHolidays.name` — get the holiday name for a date ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
154
|
+
* `VerifiedHolidays.year` — list all holidays for a given year ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
155
|
+
* `VerifiedHolidays.verify!` — verify built-in data against Cabinet Office CSV ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
156
|
+
* `VerifiedHolidays::Holiday` — holiday data class with `name_en`, `wday_name` ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
157
|
+
* holiday_jp drop-in compatibility via `require 'verified_holidays/holiday_jp_compat'` ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
158
|
+
* weekly CI verification against Cabinet Office official data ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
|
159
|
+
* holiday data from 1955 to 2027 (sourced from Cabinet Office CSV) ([c75225d](https://github.com/verified-holidays/verified_holidays/commit/c75225d5add7eb6790da43d00bcf6f3154132196))
|
data/README.md
CHANGED
|
@@ -50,6 +50,21 @@ VerifiedHolidays.year(2026)
|
|
|
50
50
|
# => [#<VerifiedHolidays::Holiday>, ...]
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
### Time zones
|
|
54
|
+
|
|
55
|
+
A `Time` (or `DateTime`) is converted to a date using its own UTC offset, not
|
|
56
|
+
Japan Standard Time. A UTC time that already falls on a holiday in Japan may
|
|
57
|
+
therefore not be recognised as one:
|
|
58
|
+
|
|
59
|
+
```ruby
|
|
60
|
+
VerifiedHolidays.holiday?(Time.utc(2025, 12, 31, 15)) # => false (it is 2026-01-01 00:00 JST)
|
|
61
|
+
VerifiedHolidays.holiday?(Time.utc(2025, 12, 31, 15).getlocal("+09:00")) # => true
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
If your process does not run in JST, convert the time first (for example
|
|
65
|
+
`time.getlocal("+09:00")` or `time.in_time_zone("Tokyo")` with ActiveSupport).
|
|
66
|
+
This matches the behaviour of holiday_jp.
|
|
67
|
+
|
|
53
68
|
### Holiday object
|
|
54
69
|
|
|
55
70
|
```ruby
|