verified_holidays 0.3.6 → 0.3.7

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: d23810579aff92a44d860f690e7b078c55e8e2713db540cc3d074797dd672340
4
- data.tar.gz: 8df69458dac1c3a7c1c93b38af6ca3e065a095c82ca1f1b4a215a5c77186daa9
3
+ metadata.gz: 8f7bf742f61c56edc7ef80cbb753650bdcb44965383a0ac25b3f1651c78e8ca8
4
+ data.tar.gz: 891551f9c64d0b3fd747797b3d765ec6b84a2372f27209019bd4d15532d73dce
5
5
  SHA512:
6
- metadata.gz: c44adf4591ca95717f8fbb221478a4bcada3686943c2da9b3c9b33323374ef4e8a23ae849166415ab0583c2f0f7f68dee12efb3edfc9d052df8265a7551d661e
7
- data.tar.gz: a948ded58d31e38ebc5aea06fe29a5394cf3742bd81e2de45ecc128e0d087e996f881d47d59ff23460061978c9dff9aeb7a7262468e1258db2881dc8f7a08157
6
+ metadata.gz: e26b65493fa53d72c5b6d2d518412155c0b71611e43008bdc0ccb5942f5bf792c9065b110b88b83caf3f6974e94d497bb6974f60d3bfeafbd7b155998aadacbe
7
+ data.tar.gz: 216450240d0eb5aaca627a55ee654321e20a935911817c5e103115ec3bdcc73eccca850c17794c05726723d9880eab1c2838c5eabe3711f82327a4763a29fd3f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.7](https://github.com/verified-holidays/verified_holidays/compare/verified_holidays/v0.3.6...verified_holidays/v0.3.7) (2026-08-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * raise FetchError when the Cabinet Office CSV holds an invalid date ([#45](https://github.com/verified-holidays/verified_holidays/issues/45)) ([3bde219](https://github.com/verified-holidays/verified_holidays/commit/3bde219754ea301a26605f7b9de50a8244cfd636))
9
+
3
10
  ## [0.3.6](https://github.com/verified-holidays/verified_holidays/compare/verified_holidays/v0.3.5...verified_holidays/v0.3.6) (2026-08-23)
4
11
 
5
12
 
data/README.md CHANGED
@@ -102,7 +102,7 @@ result.mismatched # => entries with different names
102
102
 
103
103
  If the Cabinet Office responds with anything other than success — an outage, a
104
104
  moved file, a redirect — or answers with something that holds no holidays at
105
- all, `verify!` raises `VerifiedHolidays::CabinetOffice::FetchError` rather than
105
+ all or contains a date it cannot parse, `verify!` raises `VerifiedHolidays::CabinetOffice::FetchError` rather than
106
106
  reporting the data as mismatched.
107
107
 
108
108
  Or via Rake:
@@ -49,6 +49,8 @@ module VerifiedHolidays
49
49
  holidays[Date.strptime(date_str, '%Y/%m/%d')] = name
50
50
  end
51
51
  holidays
52
+ rescue Date::Error => e
53
+ raise FetchError, "#{CSV_URL} contains an invalid date: #{e.message}"
52
54
  end
53
55
  end
54
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VerifiedHolidays
4
- VERSION = '0.3.6'
4
+ VERSION = '0.3.7'
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.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Ishizaki