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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e246cbcc36a0dd6d362dc9c5d505094ecd66bf11e620334cd80ca3e1b9042b97
4
- data.tar.gz: ba94de9927238c7d79c018d3c4776f1c7ca35eb0f989a5994c6a2c71d5f3a888
3
+ metadata.gz: 9eaab7d24f9c7b4c0c99abba98571139000d64f3ada45407715da23db8c98098
4
+ data.tar.gz: e0a830587be3568625753368fab690eae383f03a547d553c71030090daea9499
5
5
  SHA512:
6
- metadata.gz: c2265fdd50b3c914024bada3ee1012044d6eb2f7aca03c3961940e07e814a01b18717124aa8fabe0d19b48a4d1b6a0e40e4d537778cf062299feb7a85219a7f2
7
- data.tar.gz: f7ab5f88503302c094bd0616c60db5fd5d9d2b7b63dc7c216239e18ea1c7f920d85b1343a12f25275c93dcd13ee9e26c083429b73f4b3c12b1b3de73cd31e790
6
+ metadata.gz: e2544bded9aff5a1e694e786b6a8406cfb985f0d9ec191f140fe8d5dddbb861fedcb9c214f30069dc205a87c7a0908b5da5ff11b50fe71b608baa5506cd80ff2
7
+ data.tar.gz: 115b47ceda5d54b64125b9e9a61dc32ccad32be24c99b0da4aa40e4967b80b3985680e7c2e3933ad48a02a965d6faeded6a3c8c7d0b83553d2bf0bf134668192
@@ -23,7 +23,7 @@ module Sidekiq
23
23
  end
24
24
 
25
25
  def self.utils
26
- @utils ||= Utils.new(config)
26
+ @utils ||= Utils.new
27
27
  end
28
28
 
29
29
  def self.configure
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module EventBus
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  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.0
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-23 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby