rdkafka 0.21.1.alpha2 → 0.22.0.beta1
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/.github/workflows/ci_linux_x86_64_gnu.yml +249 -0
- data/.github/workflows/ci_linux_x86_64_musl.yml +205 -0
- data/.github/workflows/ci_macos_arm64.yml +306 -0
- data/.github/workflows/push_linux_x86_64_gnu.yml +64 -0
- data/.github/workflows/push_linux_x86_64_musl.yml +77 -0
- data/.github/workflows/push_macos_arm64.yml +54 -0
- data/.github/workflows/{push.yml → push_ruby.yml} +4 -5
- data/CHANGELOG.md +9 -1
- data/README.md +1 -0
- data/Rakefile +0 -2
- data/docker-compose.yml +1 -1
- data/ext/Rakefile +1 -1
- data/ext/build_common.sh +361 -0
- data/ext/build_linux_x86_64_gnu.sh +306 -0
- data/ext/build_linux_x86_64_musl.sh +763 -0
- data/ext/build_macos_arm64.sh +550 -0
- data/lib/rdkafka/bindings.rb +5 -2
- data/lib/rdkafka/producer.rb +7 -0
- data/lib/rdkafka/version.rb +1 -1
- data/rdkafka.gemspec +27 -3
- data/renovate.json +74 -0
- data/spec/rdkafka/admin_spec.rb +15 -1
- data/spec/rdkafka/consumer_spec.rb +74 -15
- data/spec/rdkafka/metadata_spec.rb +2 -2
- data/spec/rdkafka/producer/{partitions_count_spec.rb → partitions_count_cache_spec.rb} +1 -1
- data/spec/rdkafka/producer_spec.rb +65 -4
- data/spec/spec_helper.rb +21 -7
- metadata +37 -57
- data/.github/workflows/ci.yml +0 -99
- data/Guardfile +0 -19
data/.github/workflows/ci.yml
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
name: CI
|
2
|
-
|
3
|
-
concurrency:
|
4
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
5
|
-
cancel-in-progress: true
|
6
|
-
|
7
|
-
on:
|
8
|
-
pull_request:
|
9
|
-
branches: [ main, master ]
|
10
|
-
push:
|
11
|
-
branches: [ main, master ]
|
12
|
-
schedule:
|
13
|
-
- cron: '0 1 * * *'
|
14
|
-
|
15
|
-
permissions:
|
16
|
-
contents: read
|
17
|
-
|
18
|
-
env:
|
19
|
-
BUNDLE_RETRY: 6
|
20
|
-
BUNDLE_JOBS: 4
|
21
|
-
|
22
|
-
jobs:
|
23
|
-
specs:
|
24
|
-
timeout-minutes: 30
|
25
|
-
runs-on: ubuntu-latest
|
26
|
-
strategy:
|
27
|
-
fail-fast: false
|
28
|
-
matrix:
|
29
|
-
ruby:
|
30
|
-
- '3.4'
|
31
|
-
- '3.3'
|
32
|
-
- '3.2'
|
33
|
-
- '3.1'
|
34
|
-
- 'jruby-10.0'
|
35
|
-
include:
|
36
|
-
- ruby: '3.4'
|
37
|
-
coverage: 'true'
|
38
|
-
- ruby: 'jruby-10.0'
|
39
|
-
continue-on-error: true
|
40
|
-
|
41
|
-
steps:
|
42
|
-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
43
|
-
with:
|
44
|
-
fetch-depth: 0
|
45
|
-
|
46
|
-
- name: Install package dependencies
|
47
|
-
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
|
48
|
-
|
49
|
-
- name: Start Kafka with Docker Compose
|
50
|
-
run: |
|
51
|
-
docker compose up -d || (sleep 5 && docker compose up -d)
|
52
|
-
|
53
|
-
- name: Set up Ruby
|
54
|
-
uses: ruby/setup-ruby@84684c07c1965536eb4802c8daf1a77968df0cb1 # v1.239.0
|
55
|
-
with:
|
56
|
-
ruby-version: ${{matrix.ruby}}
|
57
|
-
bundler-cache: true
|
58
|
-
|
59
|
-
- name: Run all specs
|
60
|
-
env:
|
61
|
-
GITHUB_COVERAGE: ${{matrix.coverage}}
|
62
|
-
continue-on-error: ${{ matrix.continue-on-error || false }} # Use the matrix value if present
|
63
|
-
run: |
|
64
|
-
set -e
|
65
|
-
bundle install --jobs 4 --retry 3
|
66
|
-
cd ext && bundle exec rake
|
67
|
-
cd ..
|
68
|
-
bundle exec rspec
|
69
|
-
|
70
|
-
macos_build:
|
71
|
-
timeout-minutes: 30
|
72
|
-
runs-on: macos-latest
|
73
|
-
strategy:
|
74
|
-
fail-fast: false
|
75
|
-
matrix:
|
76
|
-
ruby:
|
77
|
-
- '3.4'
|
78
|
-
- '3.3'
|
79
|
-
- '3.2'
|
80
|
-
- '3.1'
|
81
|
-
- 'jruby-9.4'
|
82
|
-
include:
|
83
|
-
- ruby: 'jruby-10.0'
|
84
|
-
continue-on-error: true
|
85
|
-
steps:
|
86
|
-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
87
|
-
|
88
|
-
- name: Set up Ruby
|
89
|
-
uses: ruby/setup-ruby@84684c07c1965536eb4802c8daf1a77968df0cb1 # v1.239.0
|
90
|
-
with:
|
91
|
-
ruby-version: ${{matrix.ruby}}
|
92
|
-
bundler-cache: false
|
93
|
-
|
94
|
-
- name: Build rdkafka-ruby
|
95
|
-
continue-on-error: ${{ matrix.continue-on-error || false }}
|
96
|
-
run: |
|
97
|
-
set -e
|
98
|
-
bundle install --jobs 4 --retry 3
|
99
|
-
cd ext && bundle exec rake
|
data/Guardfile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
logger level: :error
|
4
|
-
|
5
|
-
guard :rspec, cmd: "bundle exec rspec --format #{ENV.fetch("FORMAT", "documentation")}" do
|
6
|
-
require "guard/rspec/dsl"
|
7
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
8
|
-
|
9
|
-
# Ruby files
|
10
|
-
ruby = dsl.ruby
|
11
|
-
dsl.watch_spec_files_for(ruby.lib_files)
|
12
|
-
watch(%r{^lib/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" }
|
13
|
-
|
14
|
-
# RSpec files
|
15
|
-
rspec = dsl.rspec
|
16
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
17
|
-
watch(rspec.spec_support) { rspec.spec_dir }
|
18
|
-
watch(rspec.spec_files)
|
19
|
-
end
|