racecar 2.5.0 → 2.6.0

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: 91b2364f47ab248a2311ddd8164e41c6f2749a66a0acb02c8f5b97e4d33f8f4f
4
- data.tar.gz: 447eef9ccabae8fd2ecdccd79a910c9445556f2ca1cd29064d68b4e2aa70654e
3
+ metadata.gz: d0bbfee00d05236ed92c00a93176b230086eb91d1eba33a567a6afef91998851
4
+ data.tar.gz: f787c5a8ed72301351c8dc6428bd02303f4489cbfe98133f60c546f39f6bf2cf
5
5
  SHA512:
6
- metadata.gz: 2d9bf1559b276e14050f74f709ac461a5241fa2c558e260c9eb6d2e722061d8a7032e39b30aaed091f7db6ae9d8202750ec6ba0e74f4d91f6d510078af803568
7
- data.tar.gz: 52830f9b015384a91b337964157570e159afffe8a14d792420af45d30f97494209703aca2460f61960920988f66bd0a3771a036b0e9ae83528860510bf0eef1b
6
+ metadata.gz: 7fd5d70a55050add5a8862d32717ecdadb3d75d9cab93b2d89d8be9bd543bd31ded571ce8685d6db8f7ee5b0997520fe21986046c72a656e4323c0e923de4c5e
7
+ data.tar.gz: 5e6f929613dda6118cade9b5d486883f935ec8b18538860b4edd4439f460c10a0dda9eb296195b9cef5b87750c9e9ca268f6b8fe2166deb9b64e597d9adddd85
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v2.6.0
6
+
7
+ * Add capability to specify partition number when producing messages
8
+
5
9
  ## v2.5.0
6
10
 
7
11
  * `fetch_messages` can be configured per consumer, just as the maximum timeout to wait for a full batch.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- racecar (2.4.0)
4
+ racecar (2.6.0)
5
5
  king_konf (~> 1.0.0)
6
6
  rdkafka (~> 0.10.0)
7
7
 
@@ -17,12 +17,12 @@ GEM
17
17
  concurrent-ruby (1.1.9)
18
18
  diff-lcs (1.4.4)
19
19
  dogstatsd-ruby (5.2.0)
20
- ffi (1.15.4)
20
+ ffi (1.15.5)
21
21
  i18n (1.8.10)
22
22
  concurrent-ruby (~> 1.0)
23
23
  king_konf (1.0.0)
24
24
  method_source (1.0.0)
25
- mini_portile2 (2.7.0)
25
+ mini_portile2 (2.7.1)
26
26
  minitest (5.14.4)
27
27
  pry (0.13.1)
28
28
  coderay (~> 1.1)
@@ -64,4 +64,4 @@ DEPENDENCIES
64
64
  timecop
65
65
 
66
66
  BUNDLED WITH
67
- 2.2.26
67
+ 2.3.0
@@ -93,13 +93,14 @@ module Racecar
93
93
  protected
94
94
 
95
95
  # https://github.com/appsignal/rdkafka-ruby#producing-messages
96
- def produce(payload, topic:, key: nil, partition_key: nil, headers: nil, create_time: nil)
96
+ def produce(payload, topic:, key: nil, partition: nil, partition_key: nil, headers: nil, create_time: nil)
97
97
  @delivery_handles ||= []
98
98
  message_size = payload.respond_to?(:bytesize) ? payload.bytesize : 0
99
99
  instrumentation_payload = {
100
100
  value: payload,
101
101
  headers: headers,
102
102
  key: key,
103
+ partition: partition,
103
104
  partition_key: partition_key,
104
105
  topic: topic,
105
106
  message_size: message_size,
@@ -112,6 +113,7 @@ module Racecar
112
113
  topic: topic,
113
114
  payload: payload,
114
115
  key: key,
116
+ partition: partition,
115
117
  partition_key: partition_key,
116
118
  timestamp: create_time,
117
119
  headers: headers,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Racecar
4
- VERSION = "2.5.0"
4
+ VERSION = "2.6.0"
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racecar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
8
8
  - Benjamin Quorning
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-01-28 00:00:00.000000000 Z
12
+ date: 2022-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: king_konf
@@ -155,7 +155,7 @@ dependencies:
155
155
  - - "<"
156
156
  - !ruby/object:Gem::Version
157
157
  version: '6.1'
158
- description:
158
+ description:
159
159
  email:
160
160
  - dschierbeck@zendesk.com
161
161
  - bquorning@zendesk.com
@@ -214,7 +214,7 @@ homepage: https://github.com/zendesk/racecar
214
214
  licenses:
215
215
  - Apache License Version 2.0
216
216
  metadata: {}
217
- post_install_message:
217
+ post_install_message:
218
218
  rdoc_options: []
219
219
  require_paths:
220
220
  - lib
@@ -229,8 +229,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubygems_version: 3.1.2
233
- signing_key:
232
+ rubygems_version: 3.0.3
233
+ signing_key:
234
234
  specification_version: 4
235
235
  summary: A framework for running Kafka consumers
236
236
  test_files: []