ndr_support 5.10.5 → 5.11.0

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: fdc9d0e0da9c4d1972f21825ddadb65b08a1a3330652d57db7e3b50be1359881
4
- data.tar.gz: 922f511682c6ff5a834f32ce95707ed0c5fb4bff2ba53f5130c8e276ac07a715
3
+ metadata.gz: b49f3b24f18d3ad8c0b5f99a806828944af9ec205fce94398cecb20111f46f31
4
+ data.tar.gz: 463c52ba7946a7b448deb7ac4070a7849cc91577b6e5d257f3ccb59c216b6406
5
5
  SHA512:
6
- metadata.gz: 74ec310d2107170ad7243e468ebc093b5edbf47e0d65b60eaa65d5b395b68c92591d780f7ab1a6937c96389dff6404498cd59a2626c50bf879ad7a4d2b58ebf4
7
- data.tar.gz: 63dadd4b6b6c415a59a7f6174a1befd581b05695200a4fd3a5f62d2efcd10be3aa811a2063959b22c0a74dfc9a4ad007c5a1de3800e5d0e882a2c41469115f08
6
+ metadata.gz: ceebb25c5eada144ae62184be6d6184bb6f9dfac3037223a838ccee19aa2fc0ff72bf685e6309c4bbf06710d97332a62845a9a904a6e69a60c8d9581509f3ba5
7
+ data.tar.gz: bc0f08d0f91711df65129913c0968930de914ca638241a8bc5df17e5d2212f5ff421ec42ad1bfb11e875a29e932e0cc4abae25601fced93636d553f820487828
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
- * no unreleased changes
2
+ ## 5.11.0 / 2026-01-05
3
+ ## Fixed
4
+ * Add 2028 bank holidays
5
+ * support 21st century 4 digit year strings for Daterange
3
6
 
4
7
  ## 5.10.5 / 2025-11-05
5
8
  ## Fixed
@@ -155,6 +155,15 @@ module WorkingDays # rubocop:disable Metrics/ModuleLength
155
155
  '2027-08-30', # Monday - Summer bank holiday
156
156
  '2027-12-27', # Monday - Christmas Day
157
157
  '2027-12-28', # Tuesday - Boxing Day
158
+ # 2028
159
+ '2028-01-03', # Monday - New Year’s Day (Substitute day)
160
+ '2028-04-14', # Friday - Good Friday
161
+ '2028-04-17', # Monday - Easter Monday
162
+ '2028-05-01', # Monday - Early May bank holiday
163
+ '2028-05-29', # Monday - Spring bank holiday
164
+ '2028-08-28', # Monday - Summer bank holiday
165
+ '2028-12-25', # Monday - Christmas Day
166
+ '2028-12-26' # Tuesday - Boxing Day
158
167
  ].map { |str| Date.parse(str) }
159
168
  # rubocop:enable Style/TrailingCommaInArrayLiteral
160
169
 
@@ -6,7 +6,7 @@ require 'ndr_support/ourdate/build_datetime'
6
6
  class Daterange
7
7
  attr_reader :date1, :date2, :source
8
8
 
9
- OKYEARS = 1880..2030
9
+ OKYEARS = 1880..2099
10
10
 
11
11
  # Raised when dates are not supplied in the correct order if do_not_flip_dates is passed as true:
12
12
  class WrongDateOrderError < StandardError; end
@@ -3,5 +3,5 @@
3
3
  # This defines the NdrSupport version. If you change it, rebuild and commit the gem.
4
4
  # Use "rake build" to build the gem, see rake -T for all bundler rake tasks.
5
5
  module NdrSupport
6
- VERSION = '5.10.5'
6
+ VERSION = '5.11.0'
7
7
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndr_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.5
4
+ version: 5.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NCRS Development Team
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-01-06 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: activerecord
@@ -249,6 +250,7 @@ homepage: https://github.com/NHSDigital/ndr_support
249
250
  licenses:
250
251
  - MIT
251
252
  metadata: {}
253
+ post_install_message:
252
254
  rdoc_options: []
253
255
  require_paths:
254
256
  - lib
@@ -263,7 +265,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
265
  - !ruby/object:Gem::Version
264
266
  version: '0'
265
267
  requirements: []
266
- rubygems_version: 3.6.9
268
+ rubygems_version: 3.4.19
269
+ signing_key:
267
270
  specification_version: 4
268
271
  summary: NDR Support library
269
272
  test_files: []