rdkafka 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Rakefile +6 -0
- data/ext/README.md +23 -0
- data/ext/Rakefile +4 -1
- data/lib/rdkafka/version.rb +3 -2
- data/rdkafka.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5e34bbb283ceedce620aa0533d2f45887a260e2c57fadd7cfac48a95a9fc62c
|
4
|
+
data.tar.gz: 5ea6f9e7d2b50b6e1a34f28e012034b84853555d312e64e0bf5ac567e1b28f37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 380b0b88c89b6926ed88fe667751779b61f1d1d6a8a495fb854c887f8049ed4197025d5cb2d5394d477096dacb4a805528bf619a55b412815859b71f1d903464
|
7
|
+
data.tar.gz: a316eaf6e438164c2b3ba8f095d769d48410c2271cf3653017e328531dd5c6c009bd94f3e193395ce1f84fdb2fa7b73ff0c131d4ca55a353e85f6f07aaa1c9e8
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
# Rakefile
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
1
4
|
require "./lib/rdkafka"
|
2
5
|
|
6
|
+
desc 'Generate some message traffic'
|
3
7
|
task :produce_messages do
|
4
8
|
config = {:"bootstrap.servers" => "localhost:9092"}
|
5
9
|
if ENV["DEBUG"]
|
@@ -21,6 +25,7 @@ task :produce_messages do
|
|
21
25
|
puts 'Done'
|
22
26
|
end
|
23
27
|
|
28
|
+
desc 'Consume some messages'
|
24
29
|
task :consume_messages do
|
25
30
|
config = {
|
26
31
|
:"bootstrap.servers" => "localhost:9092",
|
@@ -43,6 +48,7 @@ task :consume_messages do
|
|
43
48
|
end
|
44
49
|
end
|
45
50
|
|
51
|
+
desc 'Hammer down'
|
46
52
|
task :load_test do
|
47
53
|
puts "Starting load test"
|
48
54
|
|
data/ext/README.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Ext
|
2
|
+
|
3
|
+
This gem dependes on the `librdkafka` C library. It is downloaded when
|
4
|
+
this gem is installed.
|
5
|
+
|
6
|
+
To update the `librdkafka` version follow the following steps:
|
7
|
+
|
8
|
+
* Download the new version `tar.gz` from https://github.com/edenhill/librdkafka/
|
9
|
+
* Generate a `sha256` with (if using MacOS) `shasum -a 256 <file>`
|
10
|
+
* Change the `sha256` in `lib/rdkafka/version.rb`
|
11
|
+
* Change the version in `lib/rdkafka/version.rb`
|
12
|
+
|
13
|
+
## Disclaimer
|
14
|
+
|
15
|
+
Currently the `librdkafka` project does not provide
|
16
|
+
checksums of releases. The checksum provided here is generated on a best
|
17
|
+
effort basis. If the CDN would be compromised at the time of download the
|
18
|
+
checksum could be incorrect.
|
19
|
+
|
20
|
+
Do your own verification if you rely on this behaviour.
|
21
|
+
|
22
|
+
Once https://github.com/appsignal/rdkafka-ruby/issues/44 is implemented
|
23
|
+
we will change this process.
|
data/ext/Rakefile
CHANGED
@@ -21,7 +21,10 @@ task :default => :clean do
|
|
21
21
|
|
22
22
|
# Download and compile librdkafka
|
23
23
|
recipe = MiniPortile.new("librdkafka", Rdkafka::LIBRDKAFKA_VERSION)
|
24
|
-
recipe.files
|
24
|
+
recipe.files << {
|
25
|
+
:url => "https://codeload.github.com/edenhill/librdkafka/tar.gz/v#{Rdkafka::LIBRDKAFKA_VERSION}",
|
26
|
+
:sha256 => Rdkafka::LIBRDKAFKA_SOURCE_SHA256
|
27
|
+
}
|
25
28
|
recipe.configure_options = ["--host=#{recipe.host}"]
|
26
29
|
recipe.cook
|
27
30
|
# Move dynamic library we're interested in
|
data/lib/rdkafka/version.rb
CHANGED
data/rdkafka.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdkafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thijs Cadier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- README.md
|
112
112
|
- Rakefile
|
113
113
|
- docker-compose.yml
|
114
|
+
- ext/README.md
|
114
115
|
- ext/Rakefile
|
115
116
|
- lib/rdkafka.rb
|
116
117
|
- lib/rdkafka/bindings.rb
|