karafka-sidekiq-backend 1.1.0.alpha1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -1
- data/Gemfile.lock +6 -6
- data/karafka-sidekiq-backend.gemspec +1 -1
- data/lib/karafka/backends/sidekiq.rb +1 -1
- data/lib/karafka/base_worker.rb +1 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 553a28cdeb2098d283624a91466b7818d9714e72
|
4
|
+
data.tar.gz: c5ff002048db97b873050bcaf536b3a060106f7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aebcdd89c8584069f08f1e40940e92f2f431c97498612a1e28a08f8a1ef71b88451b60fdc1c6912829766fb18e89650560c5bc2c8c0bbd89def76a2a8f94b62
|
7
|
+
data.tar.gz: 181d1cfbd38631224bd2ece579e1bd149d6b3d0cc5dc52e5b6bd39f0cfbdcc8637fc6f4a902c4a4bb7b4f49c4b76512bdcdb4eae6940fef98db5bbe336bccbed
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
karafka-sidekiq-backend (1.1.0
|
5
|
-
karafka (>= 1.1.0.
|
4
|
+
karafka-sidekiq-backend (1.1.0)
|
5
|
+
karafka (>= 1.1.0.alpha2)
|
6
6
|
sidekiq (>= 4.2)
|
7
7
|
|
8
8
|
GEM
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
dry-container (0.6.0)
|
26
26
|
concurrent-ruby (~> 1.0)
|
27
27
|
dry-configurable (~> 0.1, >= 0.1.3)
|
28
|
-
dry-core (0.
|
28
|
+
dry-core (0.4.0)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
30
|
dry-equalizer (0.2.0)
|
31
31
|
dry-logic (0.4.2)
|
@@ -49,11 +49,11 @@ GEM
|
|
49
49
|
dry-types (~> 0.12.0)
|
50
50
|
envlogic (1.0.4)
|
51
51
|
activesupport
|
52
|
-
i18n (0.9.
|
52
|
+
i18n (0.9.1)
|
53
53
|
concurrent-ruby (~> 1.0)
|
54
54
|
inflecto (0.0.2)
|
55
55
|
json (2.1.0)
|
56
|
-
karafka (1.1.0.
|
56
|
+
karafka (1.1.0.alpha2)
|
57
57
|
activesupport (>= 5.0)
|
58
58
|
dry-configurable (~> 0.7)
|
59
59
|
dry-validation (~> 0.11)
|
@@ -103,7 +103,7 @@ GEM
|
|
103
103
|
timecop (0.9.1)
|
104
104
|
tzinfo (1.2.4)
|
105
105
|
thread_safe (~> 0.1)
|
106
|
-
waterdrop (1.0.0
|
106
|
+
waterdrop (1.0.0)
|
107
107
|
delivery_boy (>= 0.2.2)
|
108
108
|
dry-configurable (~> 0.7)
|
109
109
|
dry-validation (~> 0.11)
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = 'Karafka Sidekiq backend for background messages processing'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
|
-
spec.add_dependency 'karafka', '>= 1.1.0.
|
18
|
+
spec.add_dependency 'karafka', '>= 1.1.0.alpha2'
|
19
19
|
spec.add_dependency 'sidekiq', '>= 4.2'
|
20
20
|
spec.required_ruby_version = '>= 2.3.0'
|
21
21
|
|
data/lib/karafka/base_worker.rb
CHANGED
@@ -10,9 +10,7 @@ module Karafka
|
|
10
10
|
# @param params_batch [Array] Array with messages batch
|
11
11
|
def perform(topic_id, params_batch)
|
12
12
|
Karafka.monitor.notice(self.class, params_batch)
|
13
|
-
|
14
|
-
# This allows to support both Karafka 1.0 and 1.1
|
15
|
-
instance.respond_to?(:consume) ? instance.consume : instance.perform
|
13
|
+
controller(topic_id, params_batch).consume
|
16
14
|
end
|
17
15
|
|
18
16
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karafka-sidekiq-backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: karafka
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.1.0.
|
19
|
+
version: 1.1.0.alpha2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.1.0.
|
26
|
+
version: 1.1.0.alpha2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,9 +81,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: 2.3.0
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- - "
|
84
|
+
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
86
|
+
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
89
|
rubygems_version: 2.6.13
|