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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d186fe8ed73808973f6b26f39f6df46e13c6698a313cb0ce553ff75aa904c326
4
- data.tar.gz: b10b97ba039418b44da7a060bc9e87f308d0c509406f7468ca5edc5eff908f7a
3
+ metadata.gz: 498675ea5314d9975675259c063fd799ed6ccd6ae26b8e9ee580820f66f762ed
4
+ data.tar.gz: 0b9f867b89a650bb61094af00b416e1aa619598ab496823c510660de2b7a61e3
5
5
  SHA512:
6
- metadata.gz: a6d51fdfb12c95c010759c5ff232375d30c43989436b6e2c3ed1a9525f7628db4a2444c664fcae8edae1f41876d9cea9fbf834a7eb413205b45d4112d528f741
7
- data.tar.gz: 3cdd6197eba3529b28a9abd65949be30368eb928bad0413fccfad569bf101bfb2c647bfcc688cd60f7d16fec62d457b29e5cab10b605c4547a04ea3b349031b2
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] - 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))
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
- ## [0.1.3] - 2026-03-29
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
- - Replace numeric index access with header name access in `CabinetOffice.parse`
101
- - Add Auto Release workflow
102
- - Add auto-labeler workflows (file path labeler + branch prefix labeler)
124
+ ### Refactoring
103
125
 
104
- ## [0.1.2] - 2026-03-29
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
- - Add SimpleCov with 90% minimum coverage threshold (line and branch)
107
- - Add edge case tests for CSV parsing, Holiday model, Verifier, and main API
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] - 2026-03-23
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
- ## [0.1.0] - 2026-03-20
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
- - Initial release as `verified_holidays` (previously developed as `shukujitsu`)
121
- - `VerifiedHolidays.holiday?` — check if a date is a Japanese national holiday
122
- - `VerifiedHolidays.between` — list holidays in a date range
123
- - `VerifiedHolidays.name` — get the holiday name for a date
124
- - `VerifiedHolidays.year` — list all holidays for a given year
125
- - `VerifiedHolidays.verify!` — verify built-in data against Cabinet Office CSV
126
- - `VerifiedHolidays::Holiday` — holiday data class with `name_en`, `wday_name`
127
- - holiday_jp drop-in compatibility via `require 'verified_holidays/holiday_jp_compat'`
128
- - Weekly CI verification against Cabinet Office official data
129
- - Holiday data from 1955 to 2027 (sourced from Cabinet Office CSV)
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.4'
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.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Ishizaki