govuk_app_config 2.5.0 → 2.5.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 +4 -0
- data/lib/govuk_app_config/govuk_error/configuration.rb +6 -1
- data/lib/govuk_app_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c21acad0f7309884269c7e2e1bcca15285f6ee8d43de0c9ac4cb2320438858d6
|
4
|
+
data.tar.gz: 4ecabaceee90ea13755cd262b825a9f5c54ad4bbb106e830b8f61a3bf923c11d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b09dbcb815fca0dd6e2f05e2eca147a2a9e7fd1580c343a9bb2c356312e0a43a9918f99f0d795a88ad989bc11552bfe6154944ba7a3189b24522e62767aa5262
|
7
|
+
data.tar.gz: bf3328f7ee32405b825d24386016b49d5cb80e87c0cf2465419120f6e73f1f5c67e68b239b52505a045cb6a11a9b95ddbec68704c0d0540b4531b5d1ab2b02ce
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 2.5.1
|
2
|
+
|
3
|
+
* Increase scope of `data_sync_excluded_exceptions` so that it includes subclasses (https://github.com/alphagov/govuk_app_config/pull/165)
|
4
|
+
|
1
5
|
# 2.5.0
|
2
6
|
|
3
7
|
* Use delegator pattern for `GovukError.configure`, to allow custom `should_capture` (https://github.com/alphagov/govuk_app_config/pull/160)
|
@@ -25,8 +25,13 @@ module GovukError
|
|
25
25
|
def ignore_excluded_exceptions_in_data_sync
|
26
26
|
lambda { |error_or_event|
|
27
27
|
data_sync_ignored_error = data_sync_excluded_exceptions.any? do |exception_to_ignore|
|
28
|
+
exception_to_ignore = Object.const_get(exception_to_ignore) unless exception_to_ignore.is_a?(Module)
|
28
29
|
exception_chain = Raven::Utils::ExceptionCauseChain.exception_to_array(error_or_event)
|
29
|
-
exception_chain.any? { |exception| exception.
|
30
|
+
exception_chain.any? { |exception| exception.is_a?(exception_to_ignore) }
|
31
|
+
rescue NameError
|
32
|
+
# the exception type represented by the exception_to_ignore string
|
33
|
+
# doesn't even exist in this environment, so won't be found in the chain
|
34
|
+
false
|
30
35
|
end
|
31
36
|
|
32
37
|
!(data_sync.in_progress? && data_sync_ignored_error)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstasher
|