denouncer 0.2.12 → 0.2.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f7c1f9cc8a7072f8f71b80eb1f6fea02e74d20c
|
4
|
+
data.tar.gz: 465051f928dd370df5fffa886b677fe1e686205c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15664ad3f6338b88a7209c81bfdaa837e5993e9c28243c32caf8b8021818b1c5f45770d2f10c928fda8d64968648d864f537be3f579e2d4d1165a7b0e4f1efd6
|
7
|
+
data.tar.gz: 241110fb60a733e221d5d49d7191530b64dd214c5b8a635b94c26676f4f5d90227c90597fadc01704fa107dd32cfcf01f0fc37e852b4803180dc8fe7a1c3e357
|
@@ -18,6 +18,15 @@ module Denouncer
|
|
18
18
|
Time.now.utc
|
19
19
|
end
|
20
20
|
|
21
|
+
# returns the given error's cause if available
|
22
|
+
def get_error_cause(error)
|
23
|
+
if error.respond_to? :cause
|
24
|
+
error.cause
|
25
|
+
else
|
26
|
+
nil
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
21
30
|
def set_configuration!(options)
|
22
31
|
raise NotImplementedException("This method needs to be implemented in a sub-class!")
|
23
32
|
end
|
data/lib/denouncer/version.rb
CHANGED