govuk_app_config 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c76ebb58fe371660b4d6c10d3e001dc3e823ee9506fd4826823502ceb43e2fc7
4
- data.tar.gz: 6cd6793d9c8e59f28922fba0f0c95b01597d542187548ef1f1d4a66c329ab6f9
3
+ metadata.gz: fa4c3918fdf6b74e8327ff0f6d83e88db842883bd6640a34ed990b714d7e79ec
4
+ data.tar.gz: a348725208efe09767de60dae911f9e35e50ef746b87761602451ad8ad819033
5
5
  SHA512:
6
- metadata.gz: aa53f7780b90d526f16c29f07b82b251d41fa2fd0e2ce39bd2cc90800b4a007dc19976658a0eeb230cac7585bf49393e2f51636a1a868e321d8faa62932e196c
7
- data.tar.gz: 39ae20eede2e1e8ca4d598dfe84d94822ca1487758f1e012fb2f77a5c416804ca036f33ee045358f6f7e0c9def5ce9b2defc479c0c70d0b0c46d23b41b96517d
6
+ metadata.gz: 299b545cf8cf87ea46a263ee93a2b6a03ae0112a5f636c9785f1dd59c2a1546812d446ffa7b14ddf304fc79ac504f70ea1f879b29f3f0d0ed0c2824edc00aa01
7
+ data.tar.gz: '09347714dd718acdf51b29292326d26bb7c67fbfcd2c0560c84f25c6c1cf023ff03e78ab9406fc56f5a21640ae68c67e1e2c1a76fc62d1d58cf8f23a96d3a41b'
@@ -1,3 +1,8 @@
1
+ # 1.4.1
2
+
3
+ * Check the inner exception as well for the intermittent failure behaviour
4
+ added in 1.4.0, eg in the case of `ActionView::Template::Error`
5
+
1
6
  # 1.4.0
2
7
 
3
8
  * Don't log intermittent errors from `gds-api-adapters` in Sentry, count them
@@ -11,7 +11,8 @@ GovukError.configure do |config|
11
11
  # For backwards compatibility
12
12
  GovukStatsd.increment("errbit.errors_occurred")
13
13
 
14
- if e.class.ancestors.any? { |c| c.name =~ /^GdsApi::(HTTPIntermittent|TimedOutException)/ }
14
+ exception_class = e.respond_to?(:original_exception) ? e.original_exception.class : e.class
15
+ if exception_class.ancestors.any? { |c| c.name =~ /^GdsApi::(HTTPIntermittent|TimedOutException)/ }
15
16
  GovukStatsd.increment("gds_api_adapters.errors.#{e.class.name.demodulize.underscore}")
16
17
  false
17
18
  else
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
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.0
4
+ version: 1.4.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: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: statsd-ruby