gds-api-adapters 47.9.0 → 47.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gds_api/exceptions.rb +12 -1
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 013202e25f39bc1b67d951ce84c5c7ffb998fd05
|
4
|
+
data.tar.gz: 690569f39649f72763b63f0d2a1ad5a99f27dbe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 857bb495dbf9d0080053f437aebbcb51bbfdc4843aafae2e57963436a70ec53fe26a8e7e86fcb0bc711f9ed721e5807314c6ac7bf4b66b6a99f5362dab8825f1
|
7
|
+
data.tar.gz: 13680c1f52e0eb295f116ba99711cac327d217a82fc1f3146e6a656384382f274a036b9c9065f600cb3a5185c5b560cb4f12edab1a48b4d006fa63951b0e3348
|
data/lib/gds_api/exceptions.rb
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
module GdsApi
|
2
2
|
# Abstract error class
|
3
|
-
class BaseError < StandardError
|
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
|
data/lib/gds_api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plek
|