sidekiq-eventbus 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq/event_bus.rb +1 -1
- data/lib/sidekiq/event_bus/utils.rb +3 -9
- data/lib/sidekiq/event_bus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9eaab7d24f9c7b4c0c99abba98571139000d64f3ada45407715da23db8c98098
|
4
|
+
data.tar.gz: e0a830587be3568625753368fab690eae383f03a547d553c71030090daea9499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2544bded9aff5a1e694e786b6a8406cfb985f0d9ec191f140fe8d5dddbb861fedcb9c214f30069dc205a87c7a0908b5da5ff11b50fe71b608baa5506cd80ff2
|
7
|
+
data.tar.gz: 115b47ceda5d54b64125b9e9a61dc32ccad32be24c99b0da4aa40e4967b80b3985680e7c2e3933ad48a02a965d6faeded6a3c8c7d0b83553d2bf0bf134668192
|
data/lib/sidekiq/event_bus.rb
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
class Sidekiq::EventBus::Utils
|
2
|
-
attr_reader :config
|
3
|
-
|
4
|
-
def initialize config
|
5
|
-
@config = config
|
6
|
-
end
|
7
|
-
|
8
2
|
def consumers
|
9
|
-
config.consumers.map do |klass_name|
|
3
|
+
Sidekiq::EventBus.config.consumers.map do |klass_name|
|
10
4
|
klass_name.constantize.new
|
11
5
|
end
|
12
6
|
end
|
@@ -18,8 +12,8 @@ class Sidekiq::EventBus::Utils
|
|
18
12
|
end
|
19
13
|
|
20
14
|
def handle_error exception
|
21
|
-
unless config.error_handler.nil?
|
22
|
-
config.error_handler.call(exception)
|
15
|
+
unless Sidekiq::EventBus.config.error_handler.nil?
|
16
|
+
Sidekiq::EventBus.config.error_handler.call(exception)
|
23
17
|
end
|
24
18
|
end
|
25
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-eventbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phil Monroe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|