ndr_support 5.7.0 → 5.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/code_safety.yml +14 -14
- data/lib/ndr_support/concerns/working_days.rb +10 -0
- data/lib/ndr_support/string/cleaning.rb +1 -0
- data/lib/ndr_support/threat_scanner.rb +1 -0
- data/lib/ndr_support/version.rb +1 -1
- data/ndr_support.gemspec +1 -1
- data/test/string/cleaning_test.rb +3 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e95a05bf2c1dd28e2bfe10716b35e761c5db50ac58947f168585692b588c499
|
4
|
+
data.tar.gz: 49ed22feef4c4a22ea2094883263eaf81d24a497cff6d0977fa23c6889518e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaa5b6b7e04962f01738e60815f338c3c54ca38c5862ab5b5a373a9f9628712670d75db1f7bae9e2e2830e6cf511a36b9bc0ec304822352e0e64b94caa375160
|
7
|
+
data.tar.gz: e204589b6cd0951139bea6d2d96d23d4ec0bfe7d0c2be501bdd0ed1668802d4dbb3a7866e73242d004bce25cfc9d8407b934051a3c5afe29b101fe813cee49d5
|
data/CHANGELOG.md
CHANGED
data/code_safety.yml
CHANGED
@@ -16,8 +16,8 @@ file safety:
|
|
16
16
|
safe_revision: 0cfcfac5ddcd721a67dcd23f04cbf6bc2278b922
|
17
17
|
CHANGELOG.md:
|
18
18
|
comments:
|
19
|
-
reviewed_by:
|
20
|
-
safe_revision:
|
19
|
+
reviewed_by: brian.shand
|
20
|
+
safe_revision: f7cfb534917c991a6e1811f1eb4cff2083c141d2
|
21
21
|
CODE_OF_CONDUCT.md:
|
22
22
|
comments:
|
23
23
|
reviewed_by: timgentry
|
@@ -60,8 +60,8 @@ file safety:
|
|
60
60
|
safe_revision: 4a4ed24d2cfe7e1736baadf4cf6e0fece6823be1
|
61
61
|
lib/ndr_support/concerns/working_days.rb:
|
62
62
|
comments:
|
63
|
-
reviewed_by:
|
64
|
-
safe_revision:
|
63
|
+
reviewed_by: brianshand
|
64
|
+
safe_revision: b72baa322dc58820ccd615a178371c2e5dab113c
|
65
65
|
lib/ndr_support/date_and_time_extensions.rb:
|
66
66
|
comments:
|
67
67
|
reviewed_by: josh.pencheon
|
@@ -128,8 +128,8 @@ file safety:
|
|
128
128
|
safe_revision: 4492da77f6a8b678c40dd571fdd46fd936052cca
|
129
129
|
lib/ndr_support/string/cleaning.rb:
|
130
130
|
comments:
|
131
|
-
reviewed_by:
|
132
|
-
safe_revision:
|
131
|
+
reviewed_by: brianshand
|
132
|
+
safe_revision: b7b033ad9773cc9037c408a7763b113d31cbf191
|
133
133
|
lib/ndr_support/string/conversions.rb:
|
134
134
|
comments:
|
135
135
|
reviewed_by: ollietulloch
|
@@ -140,8 +140,8 @@ file safety:
|
|
140
140
|
safe_revision: 62337584a32e5c30c2e9af7cd998a9df684885cc
|
141
141
|
lib/ndr_support/threat_scanner.rb:
|
142
142
|
comments:
|
143
|
-
reviewed_by:
|
144
|
-
safe_revision:
|
143
|
+
reviewed_by: brianshand
|
144
|
+
safe_revision: befa1d4f27448d5be4e133f442c2b5fbac7d8f25
|
145
145
|
lib/ndr_support/utf8_encoding.rb:
|
146
146
|
comments:
|
147
147
|
reviewed_by: josh.pencheon
|
@@ -160,8 +160,8 @@ file safety:
|
|
160
160
|
safe_revision: f7adf44fc2772e1926df37abfd9041d41c303328
|
161
161
|
lib/ndr_support/version.rb:
|
162
162
|
comments:
|
163
|
-
reviewed_by:
|
164
|
-
safe_revision:
|
163
|
+
reviewed_by: brian.shand
|
164
|
+
safe_revision: f7cfb534917c991a6e1811f1eb4cff2083c141d2
|
165
165
|
lib/ndr_support/working_days.rb:
|
166
166
|
comments:
|
167
167
|
reviewed_by: josh.pencheon
|
@@ -172,8 +172,8 @@ file safety:
|
|
172
172
|
safe_revision: 29595e6431587ff9b7db6e3ad3abbb3577bff99c
|
173
173
|
ndr_support.gemspec:
|
174
174
|
comments:
|
175
|
-
reviewed_by:
|
176
|
-
safe_revision:
|
175
|
+
reviewed_by: brianshand
|
176
|
+
safe_revision: befa1d4f27448d5be4e133f442c2b5fbac7d8f25
|
177
177
|
test/array_test.rb:
|
178
178
|
comments:
|
179
179
|
reviewed_by: timgentry
|
@@ -240,8 +240,8 @@ file safety:
|
|
240
240
|
safe_revision: b562d0c15ff1b1d565522a47e6bae47ea09706f0
|
241
241
|
test/string/cleaning_test.rb:
|
242
242
|
comments:
|
243
|
-
reviewed_by:
|
244
|
-
safe_revision:
|
243
|
+
reviewed_by: brianshand
|
244
|
+
safe_revision: b7b033ad9773cc9037c408a7763b113d31cbf191
|
245
245
|
test/string/conversions_test.rb:
|
246
246
|
comments:
|
247
247
|
reviewed_by: ollietulloch
|
@@ -97,6 +97,16 @@ module WorkingDays
|
|
97
97
|
'2021-08-30', # Monday - Summer bank holiday
|
98
98
|
'2021-12-27', # Monday - Christmas Day
|
99
99
|
'2021-12-28', # Tuesday - Boxing Day
|
100
|
+
# 2022
|
101
|
+
'2022-01-03', # Monday - New Year’s Day (substitute day)
|
102
|
+
'2022-04-15', # Friday - Good Friday
|
103
|
+
'2022-04-18', # Monday - Easter Monday
|
104
|
+
'2022-05-02', # Monday - Early May bank holiday
|
105
|
+
'2022-06-02', # Thursday - Spring bank holiday
|
106
|
+
'2022-06-03', # Friday - Platinum Jubilee bank holiday
|
107
|
+
'2022-08-29', # Monday - Summer bank holiday
|
108
|
+
'2022-12-26', # Monday - Boxing Day
|
109
|
+
'2022-12-27', # Tuesday - Christmas Day (substitute day)
|
100
110
|
].map { |str| Date.parse(str) }
|
101
111
|
|
102
112
|
def self.check_lookup
|
data/lib/ndr_support/version.rb
CHANGED
data/ndr_support.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency 'activesupport', '>= 5.2.0', '< 7'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler'
|
27
|
-
spec.add_development_dependency 'rake', '
|
27
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
28
28
|
|
29
29
|
spec.required_ruby_version = '>= 2.5.0'
|
30
30
|
|
@@ -23,6 +23,9 @@ class String
|
|
23
23
|
assert_equal 'AA9 9AA', 'AA9 9AA'.postcodeize(:db)
|
24
24
|
assert_equal 'AA999AA', 'AA99 9AA'.postcodeize(:db)
|
25
25
|
assert_equal 'AA9A9AA', 'AA9A 9AA'.postcodeize(:db)
|
26
|
+
# Old Newport postcodes until end 1984
|
27
|
+
assert_equal 'NPT 1AA' , 'NPT 1AA'.postcodeize(:db)
|
28
|
+
assert_equal 'NPT 1AA' , 'NPT 1AA'.postcodeize(:db)
|
26
29
|
# Examples of legacy postcodes, that should be unchanged
|
27
30
|
assert_equal 'IP222', 'IP222'.postcodeize(:db)
|
28
31
|
assert_equal 'IP222E', 'IP222E'.postcodeize(:db)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndr_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.7.
|
4
|
+
version: 5.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NCRS Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -68,16 +68,16 @@ dependencies:
|
|
68
68
|
name: rake
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - "
|
71
|
+
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
73
|
+
version: 12.3.3
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- - "
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
80
|
+
version: 12.3.3
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: minitest
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|