govuk_app_config 1.3.2 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Jenkinsfile +2 -1
- data/lib/govuk_app_config/configure.rb +7 -3
- 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: c76ebb58fe371660b4d6c10d3e001dc3e823ee9506fd4826823502ceb43e2fc7
|
4
|
+
data.tar.gz: 6cd6793d9c8e59f28922fba0f0c95b01597d542187548ef1f1d4a66c329ab6f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa53f7780b90d526f16c29f07b82b251d41fa2fd0e2ce39bd2cc90800b4a007dc19976658a0eeb230cac7585bf49393e2f51636a1a868e321d8faa62932e196c
|
7
|
+
data.tar.gz: 39ae20eede2e1e8ca4d598dfe84d94822ca1487758f1e012fb2f77a5c416804ca036f33ee045358f6f7e0c9def5ce9b2defc479c0c70d0b0c46d23b41b96517d
|
data/CHANGELOG.md
CHANGED
data/Jenkinsfile
CHANGED
@@ -5,14 +5,18 @@ end
|
|
5
5
|
GovukError.configure do |config|
|
6
6
|
# We're misusing the `should_capture` block here to hook into raven until
|
7
7
|
# there's a better way: https://github.com/getsentry/raven-ruby/pull/750
|
8
|
-
config.should_capture = Proc.new {
|
8
|
+
config.should_capture = Proc.new { |e|
|
9
9
|
GovukStatsd.increment("errors_occurred")
|
10
10
|
|
11
11
|
# For backwards compatibility
|
12
12
|
GovukStatsd.increment("errbit.errors_occurred")
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
if e.class.ancestors.any? { |c| c.name =~ /^GdsApi::(HTTPIntermittent|TimedOutException)/ }
|
15
|
+
GovukStatsd.increment("gds_api_adapters.errors.#{e.class.name.demodulize.underscore}")
|
16
|
+
false
|
17
|
+
else
|
18
|
+
true
|
19
|
+
end
|
16
20
|
}
|
17
21
|
|
18
22
|
config.excluded_exceptions = [
|
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: 1.
|
4
|
+
version: 1.4.0
|
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: 2018-
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: statsd-ruby
|