exception_hunter 1.0.1 → 1.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65dc23c6e47e44540d172c0499734b0788b9a22dc689b58e7c558fca89efefd
|
4
|
+
data.tar.gz: 286902eea5d066ba92dd66aeab81114688dd6b71ca0a0b484bf4a5cbee2cc5f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f51b701f9d13e33cb37a477b1eedeb799ccfcdb9b45dd13cd96fa1d47f80c66bbea9fad6293ed51488991c9b3073d80844cd3651c26dbba904693d948b5938a
|
7
|
+
data.tar.gz: feb499e25bdb858705bc9eb5a28d4ece1603028633f7fd201859bc26da4ae24b7194dd5f9e3241f2f31b01f160c1dfe8ee60563f65972d6879769bcec24324ea
|
@@ -4,6 +4,7 @@ module ExceptionHunter
|
|
4
4
|
HTTP_TAG = 'HTTP'.freeze
|
5
5
|
WORKER_TAG = 'Worker'.freeze
|
6
6
|
MANUAL_TAG = 'Manual'.freeze
|
7
|
+
NOTIFICATION_DELAY = 1.minute
|
7
8
|
|
8
9
|
class << self
|
9
10
|
# Creates an error with the given attributes and persists it to
|
@@ -59,7 +60,9 @@ module ExceptionHunter
|
|
59
60
|
slack_notifier = ExceptionHunter::Notifiers::SlackNotifier.new(error, notifier)
|
60
61
|
serializer = ExceptionHunter::Notifiers::SlackNotifierSerializer
|
61
62
|
serialized_slack_notifier = serializer.serialize(slack_notifier)
|
62
|
-
ExceptionHunter::SendNotificationJob.
|
63
|
+
ExceptionHunter::SendNotificationJob.set(
|
64
|
+
wait: NOTIFICATION_DELAY
|
65
|
+
).perform_later(serialized_slack_notifier)
|
63
66
|
end
|
64
67
|
end
|
65
68
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_hunter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Vezoli
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pagy
|