racecar 2.3.1 → 2.4.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: 76c24f3e555a6dc918ac8305af887ffef0ac01a69777a23b87f82ceffde2ac10
4
- data.tar.gz: d726316346947532195ee496a6968d7805a488d79e365e729bc5402b8fc72020
3
+ metadata.gz: 9bb07a3f984de71b18b9401ec7908158aba831c54a4972e9de7af59d2d7ae3ea
4
+ data.tar.gz: 6e00e2f40495624944963868001e0cf20885c9f33e49ad8d147d0037562e96fa
5
5
  SHA512:
6
- metadata.gz: 26717684ff1357eea174e0da260242aaa2dbc5f9114e3b9a740f76c905e42ee2a9e888dbe8baf9fb03df4a493ce9f310d0a38e296cf0810c94c378627d0f96bc
7
- data.tar.gz: 1cfabc0277274391c0ffe58d4ad6e222de078e526e581eb262e32b1b4c23dbb76713f2a39649d8e4578c5d141bf9c42c9700c2de638dbc3dc23895f99a53c66b
6
+ metadata.gz: 0f5d1b6b84dbd96343a09387709676e0ac1250f1ac79f82225cb2060d8900f91f724f1bf0c722d6c440ce6c65ee175da930fc0bd542f6138eeeaab7d80d9662a
7
+ data.tar.gz: ca635a04ca6ea5019e625563417ac5c3097d2999d145a26089a9f86eb00312cf242110dcf44958180bdafbfebac5a319fb70b559d2cebe364c906caa93db9ced
@@ -12,7 +12,7 @@ jobs:
12
12
 
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ["2.5", "2.6", "3.0"]
15
+ ruby-version: ["2.4", "2.5", "2.6", "3.0"]
16
16
 
17
17
  steps:
18
18
  - uses: zendesk/checkout@v2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## v2.4.0
4
+
5
+ * Update librdkafka version from 1.4.0 to 1.5.0 by upgrading from rdkafka 0.8.0 to 0.10.0. ([#263](https://github.com/zendesk/racecar/pull/263))
6
+ * Restore support for Ruby 2.4 (#258)
4
7
 
5
8
  ## racecar v2.3.1
6
9
 
data/Gemfile CHANGED
@@ -4,3 +4,7 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in racecar.gemspec
6
6
  gemspec
7
+
8
+ # We actually support version 6.0 (see gemspec); this extra restriction is added just for running the test suite also
9
+ # on Ruby 2.4, which activesupport 6.0 no longer supports
10
+ gem 'activesupport', '< 6.0'
data/Gemfile.lock CHANGED
@@ -1,35 +1,34 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- racecar (2.3.0)
4
+ racecar (2.3.1)
5
5
  king_konf (~> 1.0.0)
6
- rdkafka (~> 0.8.0)
6
+ rdkafka (~> 0.10.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.0.3.4)
11
+ activesupport (5.2.6)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 0.7, < 2)
14
14
  minitest (~> 5.1)
15
15
  tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2, >= 2.2.2)
17
16
  coderay (1.1.3)
18
- concurrent-ruby (1.1.7)
17
+ concurrent-ruby (1.1.9)
19
18
  diff-lcs (1.4.4)
20
19
  dogstatsd-ruby (4.8.2)
21
- ffi (1.15.3)
22
- i18n (1.8.5)
20
+ ffi (1.15.4)
21
+ i18n (1.8.10)
23
22
  concurrent-ruby (~> 1.0)
24
23
  king_konf (1.0.0)
25
24
  method_source (1.0.0)
26
- mini_portile2 (2.6.1)
27
- minitest (5.14.2)
25
+ mini_portile2 (2.7.0)
26
+ minitest (5.14.4)
28
27
  pry (0.13.1)
29
28
  coderay (~> 1.1)
30
29
  method_source (~> 1.0)
31
30
  rake (13.0.1)
32
- rdkafka (0.8.1)
31
+ rdkafka (0.10.0)
33
32
  ffi (~> 1.9)
34
33
  mini_portile2 (~> 2.1)
35
34
  rake (>= 12.3)
@@ -48,15 +47,14 @@ GEM
48
47
  rspec-support (3.10.2)
49
48
  thread_safe (0.3.6)
50
49
  timecop (0.9.2)
51
- tzinfo (1.2.8)
50
+ tzinfo (1.2.9)
52
51
  thread_safe (~> 0.1)
53
- zeitwerk (2.4.2)
54
52
 
55
53
  PLATFORMS
56
54
  ruby
57
55
 
58
56
  DEPENDENCIES
59
- activesupport (>= 4.0, < 6.1)
57
+ activesupport (< 6.0)
60
58
  bundler (>= 1.13, < 3)
61
59
  dogstatsd-ruby (>= 4.0.0, < 5.0.0)
62
60
  pry
@@ -66,4 +64,4 @@ DEPENDENCIES
66
64
  timecop
67
65
 
68
66
  BUNDLED WITH
69
- 2.1.4
67
+ 2.2.15
@@ -63,25 +63,27 @@ module Racecar
63
63
 
64
64
  @instrumenter.instrument('deliver_messages', instrumentation_payload) do
65
65
  @delivery_handles.each do |handle|
66
- # rdkafka-ruby checks every wait_timeout seconds if the message was
67
- # successfully delivered, up to max_wait_timeout seconds before raising
68
- # Rdkafka::AbstractHandle::WaitTimeoutError. librdkafka will (re)try to
69
- # deliver all messages in the background, until "config.message_timeout"
70
- # (message.timeout.ms) is exceeded. Phrased differently, rdkafka-ruby's
71
- # WaitTimeoutError is just informative.
72
- # The raising can be avoided if max_wait_timeout below is greater than
73
- # config.message_timeout, but config is not available here (without
74
- # changing the interface).
75
- handle.wait(max_wait_timeout: 60, wait_timeout: 0.1)
76
- rescue Rdkafka::AbstractHandle::WaitTimeoutError => e
77
- partition = MessageDeliveryError.partition_from_delivery_handle(handle)
78
- # ideally we could use the logger passed to the Runner, but it is not
79
- # available here. The runner sets it for Rdkafka, though, so we can use
80
- # that instead.
81
- @config.logger.debug "Still trying to deliver message to (partition #{partition})... (will try up to Racecar.config.message_timeout)"
82
- retry
83
- rescue Rdkafka::RdkafkaError => e
84
- raise MessageDeliveryError.new(e, handle)
66
+ begin
67
+ # rdkafka-ruby checks every wait_timeout seconds if the message was
68
+ # successfully delivered, up to max_wait_timeout seconds before raising
69
+ # Rdkafka::AbstractHandle::WaitTimeoutError. librdkafka will (re)try to
70
+ # deliver all messages in the background, until "config.message_timeout"
71
+ # (message.timeout.ms) is exceeded. Phrased differently, rdkafka-ruby's
72
+ # WaitTimeoutError is just informative.
73
+ # The raising can be avoided if max_wait_timeout below is greater than
74
+ # config.message_timeout, but config is not available here (without
75
+ # changing the interface).
76
+ handle.wait(max_wait_timeout: 60, wait_timeout: 0.1)
77
+ rescue Rdkafka::AbstractHandle::WaitTimeoutError => e
78
+ partition = MessageDeliveryError.partition_from_delivery_handle(handle)
79
+ # ideally we could use the logger passed to the Runner, but it is not
80
+ # available here. The runner sets it for Rdkafka, though, so we can use
81
+ # that instead.
82
+ @config.logger.debug "Still trying to deliver message to (partition #{partition})... (will try up to Racecar.config.message_timeout)"
83
+ retry
84
+ rescue Rdkafka::RdkafkaError => e
85
+ raise MessageDeliveryError.new(e, handle)
86
+ end
85
87
  end
86
88
  end
87
89
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Racecar
4
- VERSION = "2.3.1"
4
+ VERSION = "2.4.0"
5
5
  end
data/racecar.gemspec CHANGED
@@ -20,8 +20,10 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
+ spec.required_ruby_version = '>= 2.4'
24
+
23
25
  spec.add_runtime_dependency "king_konf", "~> 1.0.0"
24
- spec.add_runtime_dependency "rdkafka", "~> 0.8.0"
26
+ spec.add_runtime_dependency "rdkafka", "~> 0.10.0"
25
27
 
26
28
  spec.add_development_dependency "bundler", [">= 1.13", "< 3"]
27
29
  spec.add_development_dependency "pry"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racecar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-09-02 00:00:00.000000000 Z
12
+ date: 2021-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: king_konf
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.8.0
34
+ version: 0.10.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.8.0
41
+ version: 0.10.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -222,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
223
  - - ">="
224
224
  - !ruby/object:Gem::Version
225
- version: '0'
225
+ version: '2.4'
226
226
  required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  requirements:
228
228
  - - ">="