sbmt-kafka_consumer 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Appraisals +2 -3
- data/CHANGELOG.md +7 -0
- data/dip.yml +4 -4
- data/lib/sbmt/kafka_consumer/testing/shared_contexts/with_sbmt_karafka_consumer.rb +7 -1
- data/lib/sbmt/kafka_consumer/version.rb +1 -1
- data/sbmt-kafka_consumer.gemspec +2 -2
- metadata +6 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c656f9762ff03d838d3cfc7309a9117ffdeb091a5659c702cd354530561fcdbb
|
|
4
|
+
data.tar.gz: 4f34974051efb38a7cf5193d924a1349470685d6fd7f798be055af5bab691f1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95e0b5b31b7aba962b4636d779ae3023786bea42dc5951fdcb1a51c6240d4ded7a215bf7ab1a3b48b6c6dde53759b12134c021384e2264c5961776dbda429514
|
|
7
|
+
data.tar.gz: c4af95c2d74dd2e56cfe0cbf5276e4c303d146fded2afca08f76dfd0b90ecc96b27ee0215d42d329b422a8f1c1d87a79f3e182e5282306ecd620aacdaa724244
|
data/Appraisals
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
# See compatibility table at https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
|
|
4
4
|
|
|
5
5
|
versions_map = {
|
|
6
|
-
"6.1" => %w[3.0],
|
|
7
|
-
"7.0" => %w[3.1],
|
|
8
6
|
"7.1" => %w[3.2],
|
|
9
7
|
"7.2" => %w[3.3],
|
|
10
|
-
"8.0" => %w[3.3]
|
|
8
|
+
"8.0" => %w[3.3],
|
|
9
|
+
"8.1" => %w[3.4]
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
current_ruby_version = RUBY_VERSION.split(".").first(2).join(".")
|
data/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
13
13
|
|
|
14
14
|
### Fixed
|
|
15
15
|
|
|
16
|
+
## [3.9.0] - 2026-05-26
|
|
17
|
+
|
|
18
|
+
## BREAKING
|
|
19
|
+
|
|
20
|
+
- Drop support for Ruby 3.0/3.1
|
|
21
|
+
- Add support for Karafka 2.5
|
|
22
|
+
|
|
16
23
|
## [3.8.0] - 2026-03-03
|
|
17
24
|
|
|
18
25
|
### Added
|
data/dip.yml
CHANGED
|
@@ -35,14 +35,14 @@ interaction:
|
|
|
35
35
|
subcommands:
|
|
36
36
|
all:
|
|
37
37
|
command: bundle exec appraisal rspec
|
|
38
|
-
rails-6.1:
|
|
39
|
-
command: bundle exec appraisal rails-6.1 rspec
|
|
40
|
-
rails-7.0:
|
|
41
|
-
command: bundle exec appraisal rails-7.0 rspec
|
|
42
38
|
rails-7.1:
|
|
43
39
|
command: bundle exec appraisal rails-7.1 rspec
|
|
44
40
|
rails-7.2:
|
|
45
41
|
command: bundle exec appraisal rails-7.2 rspec
|
|
42
|
+
rails-8.0:
|
|
43
|
+
command: bundle exec appraisal rails-8.0 rspec
|
|
44
|
+
rails-8.1:
|
|
45
|
+
command: bundle exec appraisal rails-8.1 rspec
|
|
46
46
|
|
|
47
47
|
rubocop:
|
|
48
48
|
description: Run Ruby linter
|
|
@@ -12,7 +12,12 @@ RSpec.shared_context "with sbmt karafka consumer" do
|
|
|
12
12
|
instance
|
|
13
13
|
}
|
|
14
14
|
let(:test_consumer_group) { Karafka::Routing::ConsumerGroup.new(:test_group) }
|
|
15
|
-
let(:test_topic)
|
|
15
|
+
let(:test_topic) do
|
|
16
|
+
topic = Karafka::Routing::Topic.new(:test_topic, test_consumer_group)
|
|
17
|
+
topic.subscription_group_details = test_consumer_group.current_subscription_group_details
|
|
18
|
+
topic
|
|
19
|
+
end
|
|
20
|
+
let(:test_topics) { Karafka::Routing::Topics.new([test_topic]) }
|
|
16
21
|
let(:kafka_client) { instance_double(Karafka::Connection::Client) }
|
|
17
22
|
let(:null_deserializer) { Sbmt::KafkaConsumer::Serialization::NullDeserializer.new }
|
|
18
23
|
let(:client_configurer_options) { {skip_regexp_consumers_init: true} }
|
|
@@ -22,6 +27,7 @@ RSpec.shared_context "with sbmt karafka consumer" do
|
|
|
22
27
|
|
|
23
28
|
before {
|
|
24
29
|
Sbmt::KafkaConsumer::ClientConfigurer.configure!(**client_configurer_options)
|
|
30
|
+
test_consumer_group.subscription_groups_builder.call(test_topics)
|
|
25
31
|
allow(kafka_client).to receive(:assignment_lost?).and_return(false)
|
|
26
32
|
allow(kafka_client).to receive(:mark_as_consumed!).and_return(true)
|
|
27
33
|
allow(kafka_client).to receive(:mark_as_consumed).and_return(true)
|
data/sbmt-kafka_consumer.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.summary = "Ruby gem for consuming Kafka messages"
|
|
12
12
|
spec.description = "This gem is used for consuming Kafka messages. It represents a wrapper over Karafka gem and is recommended for using as a transport with sbmt-outbox"
|
|
13
13
|
spec.homepage = "https://github.com/Kuper-Tech/sbmt-kafka_consumer"
|
|
14
|
-
spec.required_ruby_version = ">= 3.
|
|
14
|
+
spec.required_ruby_version = ">= 3.2.0"
|
|
15
15
|
|
|
16
16
|
spec.metadata["allowed_push_host"] = ENV.fetch("NEXUS_URL", "https://rubygems.org")
|
|
17
17
|
|
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
|
|
34
34
|
spec.add_dependency "rails", ">= 6.1"
|
|
35
35
|
spec.add_dependency "zeitwerk", "~> 2.3"
|
|
36
|
-
spec.add_dependency "karafka", "~> 2.
|
|
36
|
+
spec.add_dependency "karafka", "~> 2.5.1"
|
|
37
37
|
spec.add_dependency "yabeda", ">= 0.11"
|
|
38
38
|
spec.add_dependency "anyway_config", ">= 2.4.0"
|
|
39
39
|
spec.add_dependency "thor"
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sbmt-kafka_consumer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kuper Ruby-Platform Team
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rails
|
|
@@ -44,14 +43,14 @@ dependencies:
|
|
|
44
43
|
requirements:
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 2.
|
|
46
|
+
version: 2.5.1
|
|
48
47
|
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - "~>"
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 2.
|
|
53
|
+
version: 2.5.1
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: yabeda
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -460,7 +459,6 @@ dependencies:
|
|
|
460
459
|
version: '0'
|
|
461
460
|
description: This gem is used for consuming Kafka messages. It represents a wrapper
|
|
462
461
|
over Karafka gem and is recommended for using as a transport with sbmt-outbox
|
|
463
|
-
email:
|
|
464
462
|
executables:
|
|
465
463
|
- kafka_consumer
|
|
466
464
|
extensions: []
|
|
@@ -558,7 +556,6 @@ metadata:
|
|
|
558
556
|
source_code_uri: https://github.com/Kuper-Tech/sbmt-kafka_consumer
|
|
559
557
|
changelog_uri: https://github.com/Kuper-Tech/sbmt-kafka_consumer/blob/master/CHANGELOG.md
|
|
560
558
|
rubygems_mfa_required: 'false'
|
|
561
|
-
post_install_message:
|
|
562
559
|
rdoc_options: []
|
|
563
560
|
require_paths:
|
|
564
561
|
- lib
|
|
@@ -566,15 +563,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
566
563
|
requirements:
|
|
567
564
|
- - ">="
|
|
568
565
|
- !ruby/object:Gem::Version
|
|
569
|
-
version: 3.
|
|
566
|
+
version: 3.2.0
|
|
570
567
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
571
568
|
requirements:
|
|
572
569
|
- - ">="
|
|
573
570
|
- !ruby/object:Gem::Version
|
|
574
571
|
version: '0'
|
|
575
572
|
requirements: []
|
|
576
|
-
rubygems_version: 3.
|
|
577
|
-
signing_key:
|
|
573
|
+
rubygems_version: 3.6.9
|
|
578
574
|
specification_version: 4
|
|
579
575
|
summary: Ruby gem for consuming Kafka messages
|
|
580
576
|
test_files: []
|