verified_holidays 0.3.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6daf6bd2f68005f635e997644c83097605f8a3716ea49decc9f756fb020be27a
4
- data.tar.gz: 3c7d1e1cdf6a4e7514951e8f6f21dd6a229c17ad2ff201c18793e7af911f1f94
3
+ metadata.gz: 498675ea5314d9975675259c063fd799ed6ccd6ae26b8e9ee580820f66f762ed
4
+ data.tar.gz: 0b9f867b89a650bb61094af00b416e1aa619598ab496823c510660de2b7a61e3
5
5
  SHA512:
6
- metadata.gz: 924ed9a8aa2469bac79d3ae9912eb9f042309a8c32b7111d6f3f8a72671bfdd1d10f1d12f7141590e7a1162bbbf6920e430660d42f31e5361a198d085d1beb16
7
- data.tar.gz: f9459d943472843c129ba579a8e49ec33c2865415cdc0e24725310a3e45cbfca4415bc25119067ab3b04271464e330a6e485e1d092366e2c0df62dc8397a9828
6
+ metadata.gz: 761f2bbf074908bb02bd0e465749a11d2e5ad92600e0a48c618e91d9003368f26966d7cd5d52353ed481daa73c562f9f455b18b26c544d4b23b55e8be853ebc0
7
+ data.tar.gz: 4c2fff184eced49b5472f6dde573c8421b7be8659f13171bdc0fe48b1ecd2e8a8d8d5695ac046c3c7da522fd1ab0676729532270bf9066c0e6ac2d627507c1a6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
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
+
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)
11
+
12
+
13
+ ### Miscellaneous
14
+
15
+ * drop support for Ruby 3.1 ([#37](https://github.com/verified-holidays/verified_holidays/issues/37)) ([4ee7b8e](https://github.com/verified-holidays/verified_holidays/commit/4ee7b8e45afeb0a6f66306b5044097605e7fc8a5))
16
+ * replace deprecated SimpleCov.add_filter with skip ([#36](https://github.com/verified-holidays/verified_holidays/issues/36)) ([51e2234](https://github.com/verified-holidays/verified_holidays/commit/51e223446e74b6290393f0022bab7b55edb9286d))
17
+
3
18
  ## [0.3.3](https://github.com/verified-holidays/verified_holidays/compare/verified_holidays/v0.3.2...verified_holidays/v0.3.3) (2026-08-22)
4
19
 
5
20
 
@@ -83,39 +98,62 @@
83
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))
84
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))
85
100
 
86
- ## [0.1.4] - 2026-03-29
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))
87
107
 
88
- - Fix file path labeler removing branch-based labels (sync-labels: false)
108
+ ## [0.1.3](https://github.com/verified-holidays/verified_holidays/compare/v0.1.2...v0.1.3) (2026-03-29)
89
109
 
90
- ## [0.1.3] - 2026-03-29
91
110
 
92
- - Replace numeric index access with header name access in `CabinetOffice.parse`
93
- - Add Auto Release workflow
94
- - Add auto-labeler workflows (file path labeler + branch prefix labeler)
111
+ ### Refactoring
95
112
 
96
- ## [0.1.2] - 2026-03-29
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))
97
114
 
98
- - Add SimpleCov with 90% minimum coverage threshold (line and branch)
99
- - Add edge case tests for CSV parsing, Holiday model, Verifier, and main API
100
- - Inline `CabinetOffice.parse_date` using `Date.strptime`
101
- - Add `CabinetOffice.presence` to handle blank CSV fields
102
- - Use `minmax` in `Verifier.filter_local_data`
103
- - Simplify `Dataset#name` to one-liner
104
115
 
105
- ## [0.1.1] - 2026-03-23
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))
106
120
 
107
- - Move repository to GitHub Organization: `verified-holidays/verified_holidays`
108
- - Update all repository URLs in gemspec, README badges, and contributing link
121
+ ## [0.1.2](https://github.com/verified-holidays/verified_holidays/compare/v0.1.1...v0.1.2) (2026-03-29)
109
122
 
110
- ## [0.1.0] - 2026-03-20
111
123
 
112
- - Initial release as `verified_holidays` (previously developed as `shukujitsu`)
113
- - `VerifiedHolidays.holiday?` — check if a date is a Japanese national holiday
114
- - `VerifiedHolidays.between` list holidays in a date range
115
- - `VerifiedHolidays.name` get the holiday name for a date
116
- - `VerifiedHolidays.year` list all holidays for a given year
117
- - `VerifiedHolidays.verify!` verify built-in data against Cabinet Office CSV
118
- - `VerifiedHolidays::Holiday` — holiday data class with `name_en`, `wday_name`
119
- - holiday_jp drop-in compatibility via `require 'verified_holidays/holiday_jp_compat'`
120
- - Weekly CI verification against Cabinet Office official data
121
- - Holiday data from 1955 to 2027 (sourced from Cabinet Office CSV)
124
+ ### Refactoring
125
+
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
133
+
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))
136
+
137
+ ## [0.1.1](https://github.com/verified-holidays/verified_holidays/compare/v0.1.0...v0.1.1) (2026-03-23)
138
+
139
+
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
149
+
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VerifiedHolidays
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verified_holidays
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Ishizaki
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.1'
61
+ version: '3.2'
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ">="