gds-api-adapters 47.9.0 → 47.9.1

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
  SHA1:
3
- metadata.gz: 086bb1489e91664b8193ca9797842b8051a8d386
4
- data.tar.gz: ab1324db0ccbc1910a4514d416d16e73c7dd6d5e
3
+ metadata.gz: 013202e25f39bc1b67d951ce84c5c7ffb998fd05
4
+ data.tar.gz: 690569f39649f72763b63f0d2a1ad5a99f27dbe1
5
5
  SHA512:
6
- metadata.gz: f03df9f6d8edb24140f443d8d6a7cb41b60aa5aad56b33444292b8fbf2cf235fc0c871ef8dc98ceecb275e539c450f290e86f95f8bc709f00a55965509d95dff
7
- data.tar.gz: 9cf89b5aeee884d7f6a15f02c9613d7c307509b5567c81209f37bd0fd438163b570b1fb92ca471d6381d74f3021dab1c3acfed70bc7e4584e0f472493a3d27b6
6
+ metadata.gz: 857bb495dbf9d0080053f437aebbcb51bbfdc4843aafae2e57963436a70ec53fe26a8e7e86fcb0bc711f9ed721e5807314c6ac7bf4b66b6a99f5362dab8825f1
7
+ data.tar.gz: 13680c1f52e0eb295f116ba99711cac327d217a82fc1f3146e6a656384382f274a036b9c9065f600cb3a5185c5b560cb4f12edab1a48b4d006fa63951b0e3348
@@ -1,6 +1,17 @@
1
1
  module GdsApi
2
2
  # Abstract error class
3
- class BaseError < StandardError; end
3
+ class BaseError < StandardError
4
+ # Give Sentry extra context about this event
5
+ # https://docs.sentry.io/clients/ruby/context/
6
+ def raven_context
7
+ {
8
+ # Make Sentry group exceptions by type instead of message, so all
9
+ # exceptions like `GdsApi::TimedOutException` will get grouped as one
10
+ # error and not an error per URL.
11
+ fingerprint: [self.class.name],
12
+ }
13
+ end
14
+ end
4
15
 
5
16
  class EndpointNotFound < BaseError; end
6
17
  class TimedOutException < BaseError; end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '47.9.0'.freeze
2
+ VERSION = '47.9.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 47.9.0
4
+ version: 47.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek