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: 5657d47c0ace57c4aac4aa9ec45374739ff2a282271d9d3f7ec6c3e21cffd509
4
- data.tar.gz: 999dccabdad8f6b8e78a6db43d8d8cb5ff9454fcd7bb0df7e93ede4bb8a04aea
3
+ metadata.gz: c65dc23c6e47e44540d172c0499734b0788b9a22dc689b58e7c558fca89efefd
4
+ data.tar.gz: 286902eea5d066ba92dd66aeab81114688dd6b71ca0a0b484bf4a5cbee2cc5f3
5
5
  SHA512:
6
- metadata.gz: f01e7a68936214ac9c2673ad44d2603731d517bfdfa7a22f4f88669629328d26a8b2161233c844c87accd6b455831ebb8162ddf2dd4d9a80fd95a5c132571551
7
- data.tar.gz: 7d84f1b86524e91f9d2b73c6f42fd4d75d34e3b946d5948a30513ef5fb1ee026dcfc58e09438bc27d881fdb4d63483442ad90c2bf8ca852acd33fabcdc3c8aeb
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.perform_later(serialized_slack_notifier)
63
+ ExceptionHunter::SendNotificationJob.set(
64
+ wait: NOTIFICATION_DELAY
65
+ ).perform_later(serialized_slack_notifier)
63
66
  end
64
67
  end
65
68
 
@@ -1,3 +1,3 @@
1
1
  module ExceptionHunter
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
@@ -1,6 +1,6 @@
1
1
  namespace :exception_hunter do
2
2
  desc 'Purges old errors'
3
3
  task purge_errors: [:environment] do
4
- ::ExceptionHunter::ErrorReaper.call
4
+ ::ExceptionHunter::ErrorReaper.purge
5
5
  end
6
6
  end
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.1
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: 2020-12-18 00:00:00.000000000 Z
12
+ date: 2021-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pagy