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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f85f1112878f2d85918c29478ec13a9e11824a144eced3b73d804fbc2433191
4
- data.tar.gz: 8f6c77384af18c153dfeb45a1429dd8972a5ca9428130e35ca9feb3a61419639
3
+ metadata.gz: 312e0d875d82f787bcc0bcbeb62800848854ca48edecc4f32adc2f6d197933c6
4
+ data.tar.gz: c9f8025e140d01b6f265183c8deb587d472d83bba65d0775b30acc655764764c
5
5
  SHA512:
6
- metadata.gz: 7ef03223b858425f327ecba3df22160e67d3294c5184b5cf25f390084fd106ce99f79600d0d79d2438af820b542f7696913c682eb9acb9363011cf064870e3f2
7
- data.tar.gz: a4c9141cda98ae18028fc5f1c5e67c60d46ec234cdba352c79523302c5fb36caf58c7ed04f15f7854b172d6c93a1a0d6850374aafe484a3298694689c0a4c20f
6
+ metadata.gz: '081a0362985daa3d7184934305cdaa9f5855175885fa66a30ad50d703d9ab68bea30c89ec43e538af0c53e941e12c2395f3e2c5dce3b2c1de2d6c39f86834187'
7
+ data.tar.gz: 5cd8df15cc8645e9f688b5bfd89d050db06542f04079bbee7c8f4fbc944a726ca5a4122e0b928a0ef58b1b60922d35c4af63b2cd20c6559cb101f4a72d1aef9f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1 +1 @@
1
- 2.7.1
1
+ 2.7.2
@@ -1,5 +1,9 @@
1
1
  # Karafka Sidekiq Backend
2
2
 
3
+ ## 1.4.1 (2020-27-10)
4
+ - Corrected interchanger documentation (Jack12816)
5
+ - Corrected the interchanger key reference (Jack12816)
6
+
3
7
  ## 1.4.0 (2020-09-05)
4
8
  - Update to match Karafka 1.4.0 params and batch metadata setup
5
9
 
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-sidekiq-backend (1.4.0)
5
- karafka (~> 1.4.0.rc2)
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.3)
36
- dry-logic (1.0.7)
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.4)
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.4)
71
- reline (>= 0.0.1)
72
- karafka (1.4.0.rc2)
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.1)
88
- reline (0.1.4)
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.2)
94
+ rspec-core (3.9.3)
95
95
  rspec-support (~> 3.9.3)
96
- rspec-expectations (3.9.2)
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.3)
103
- ruby-kafka (1.2.0)
102
+ rspec-support (3.9.4)
103
+ ruby-kafka (1.3.0)
104
104
  digest-crc
105
- sidekiq (6.1.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.2)
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
- class << self
114
- def encode(params_batch)
115
- # Note, that you need to cast the params_batch to an array in order to get it work
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
- def decode(params_string)
121
- Marshal.load(Base64.decode64(params_string))
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.rc2'
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.0'
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
@@ -15,8 +15,8 @@ module Karafka
15
15
  def encode(params_batch)
16
16
  params_batch.map do |param|
17
17
  {
18
- raw_payload: param.raw_payload,
19
- metadata: param.metadata.to_h
18
+ 'raw_payload' => param.raw_payload,
19
+ 'metadata' => param.metadata.to_h
20
20
  }
21
21
  end
22
22
  end
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.0
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-09-05 00:00:00.000000000 Z
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.rc2
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.rc2
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