karafka-sidekiq-backend 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +16 -16
- data/README.md +6 -10
- data/karafka-sidekiq-backend.gemspec +1 -1
- data/lib/karafka/backends/sidekiq.rb +1 -1
- data/lib/karafka/interchanger.rb +2 -2
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 312e0d875d82f787bcc0bcbeb62800848854ca48edecc4f32adc2f6d197933c6
|
4
|
+
data.tar.gz: c9f8025e140d01b6f265183c8deb587d472d83bba65d0775b30acc655764764c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '081a0362985daa3d7184934305cdaa9f5855175885fa66a30ad50d703d9ab68bea30c89ec43e538af0c53e941e12c2395f3e2c5dce3b2c1de2d6c39f86834187'
|
7
|
+
data.tar.gz: 5cd8df15cc8645e9f688b5bfd89d050db06542f04079bbee7c8f4fbc944a726ca5a4122e0b928a0ef58b1b60922d35c4af63b2cd20c6559cb101f4a72d1aef9f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.2
|
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.4.
|
5
|
-
karafka (~> 1.4.0
|
4
|
+
karafka-sidekiq-backend (1.4.1)
|
5
|
+
karafka (~> 1.4.0)
|
6
6
|
sidekiq (>= 4.2)
|
7
7
|
|
8
8
|
GEM
|
@@ -32,8 +32,8 @@ GEM
|
|
32
32
|
dry-core (~> 0.4)
|
33
33
|
dry-equalizer (~> 0.2)
|
34
34
|
dry-inflector (0.2.0)
|
35
|
-
dry-initializer (3.0.
|
36
|
-
dry-logic (1.0.
|
35
|
+
dry-initializer (3.0.4)
|
36
|
+
dry-logic (1.0.8)
|
37
37
|
concurrent-ruby (~> 1.0)
|
38
38
|
dry-core (~> 0.2)
|
39
39
|
dry-equalizer (~> 0.2)
|
@@ -42,7 +42,7 @@ GEM
|
|
42
42
|
dry-core (~> 0.4)
|
43
43
|
dry-equalizer (~> 0.2)
|
44
44
|
dry-events (~> 0.2)
|
45
|
-
dry-schema (1.5.
|
45
|
+
dry-schema (1.5.6)
|
46
46
|
concurrent-ruby (~> 1.0)
|
47
47
|
dry-configurable (~> 0.8, >= 0.8.3)
|
48
48
|
dry-core (~> 0.4)
|
@@ -67,9 +67,9 @@ GEM
|
|
67
67
|
envlogic (1.1.2)
|
68
68
|
dry-inflector (~> 0.1)
|
69
69
|
io-console (0.5.6)
|
70
|
-
irb (1.2.
|
71
|
-
reline (>= 0.
|
72
|
-
karafka (1.4.0
|
70
|
+
irb (1.2.7)
|
71
|
+
reline (>= 0.1.5)
|
72
|
+
karafka (1.4.0)
|
73
73
|
dry-configurable (~> 0.8)
|
74
74
|
dry-inflector (~> 0.1)
|
75
75
|
dry-monitor (~> 0.3)
|
@@ -84,32 +84,32 @@ GEM
|
|
84
84
|
king_konf (0.3.7)
|
85
85
|
rack (2.2.3)
|
86
86
|
rake (13.0.1)
|
87
|
-
redis (4.2.
|
88
|
-
reline (0.1.
|
87
|
+
redis (4.2.2)
|
88
|
+
reline (0.1.6)
|
89
89
|
io-console (~> 0.5)
|
90
90
|
rspec (3.9.0)
|
91
91
|
rspec-core (~> 3.9.0)
|
92
92
|
rspec-expectations (~> 3.9.0)
|
93
93
|
rspec-mocks (~> 3.9.0)
|
94
|
-
rspec-core (3.9.
|
94
|
+
rspec-core (3.9.3)
|
95
95
|
rspec-support (~> 3.9.3)
|
96
|
-
rspec-expectations (3.9.
|
96
|
+
rspec-expectations (3.9.3)
|
97
97
|
diff-lcs (>= 1.2.0, < 2.0)
|
98
98
|
rspec-support (~> 3.9.0)
|
99
99
|
rspec-mocks (3.9.1)
|
100
100
|
diff-lcs (>= 1.2.0, < 2.0)
|
101
101
|
rspec-support (~> 3.9.0)
|
102
|
-
rspec-support (3.9.
|
103
|
-
ruby-kafka (1.
|
102
|
+
rspec-support (3.9.4)
|
103
|
+
ruby-kafka (1.3.0)
|
104
104
|
digest-crc
|
105
|
-
sidekiq (6.1.
|
105
|
+
sidekiq (6.1.2)
|
106
106
|
connection_pool (>= 2.2.2)
|
107
107
|
rack (~> 2.0)
|
108
108
|
redis (>= 4.2.0)
|
109
109
|
simplecov (0.19.0)
|
110
110
|
docile (~> 1.1)
|
111
111
|
simplecov-html (~> 0.11)
|
112
|
-
simplecov-html (0.12.
|
112
|
+
simplecov-html (0.12.3)
|
113
113
|
thor (1.0.1)
|
114
114
|
waterdrop (1.4.0)
|
115
115
|
delivery_boy (>= 0.2, < 2.x)
|
data/README.md
CHANGED
@@ -109,17 +109,13 @@ end
|
|
109
109
|
Each custom interchanger should define `encode` to encode params before they get stored in Redis, and `decode` to convert the params to hash format, as shown below:
|
110
110
|
|
111
111
|
```ruby
|
112
|
-
class Base64Interchanger
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
# in sidekiq later
|
117
|
-
Base64.encode64(Marshal.dump(params_batch.to_a))
|
118
|
-
end
|
112
|
+
class Base64Interchanger < ::Karafka::Interchanger
|
113
|
+
def encode(params_batch)
|
114
|
+
Base64.encode64(Marshal.dump(super))
|
115
|
+
end
|
119
116
|
|
120
|
-
|
121
|
-
|
122
|
-
end
|
117
|
+
def decode(params_string)
|
118
|
+
Marshal.load(Base64.decode64(super))
|
123
119
|
end
|
124
120
|
end
|
125
121
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = 'Karafka Sidekiq backend for background messages processing'
|
16
16
|
spec.license = 'LGPL-3.0'
|
17
17
|
|
18
|
-
spec.add_dependency 'karafka', '~> 1.4.0
|
18
|
+
spec.add_dependency 'karafka', '~> 1.4.0'
|
19
19
|
spec.add_dependency 'sidekiq', '>= 4.2'
|
20
20
|
spec.required_ruby_version = '>= 2.5.0'
|
21
21
|
|
@@ -6,7 +6,7 @@ module Karafka
|
|
6
6
|
# Sidekiq backend that schedules stuff to Sidekiq worker for delayed execution
|
7
7
|
module Sidekiq
|
8
8
|
# Karafka Sidekiq backend version
|
9
|
-
VERSION = '1.4.
|
9
|
+
VERSION = '1.4.1'
|
10
10
|
|
11
11
|
# Enqueues the execution of perform method into a worker.
|
12
12
|
# @note Each worker needs to have a class #perform_async method that will allow us to pass
|
data/lib/karafka/interchanger.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karafka-sidekiq-backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
2DND//YJUikn1zwbz1kT70XmHd97B4Eytpln7K+M1u2g1pHVEPW4owD/ammXNpUy
|
35
35
|
nt70FcDD4yxJQ+0YNiHd0N8IcVBM1TMIVctMNQ==
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2020-
|
37
|
+
date: 2020-10-27 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: karafka
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - "~>"
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.4.0
|
45
|
+
version: 1.4.0
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
50
|
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 1.4.0
|
52
|
+
version: 1.4.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: sidekiq
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|