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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c361e42d0a0eb4ef3c6b7baa3509baa675f35ed8b96660e5095ba8c09ef58163
4
- data.tar.gz: dbf82f43bb4f69fc2bdc43f931c28009578a331eb8e4bc4bb3606b2cdeedefc8
3
+ metadata.gz: a5e34bbb283ceedce620aa0533d2f45887a260e2c57fadd7cfac48a95a9fc62c
4
+ data.tar.gz: 5ea6f9e7d2b50b6e1a34f28e012034b84853555d312e64e0bf5ac567e1b28f37
5
5
  SHA512:
6
- metadata.gz: 74485766bf68d0bb42e756dc3c381da604e01500682dcdd08b0d79a9c736696fbe4845ede037a820e5eb9482626f0ad8355344bb15f47235810e29d1e6219f28
7
- data.tar.gz: ae8ec9d6a81fbdc1931c3f629fd92a32d31297fb055fcecca97f322248d31a73ce23f9fdc356645215960dd34b8a979e9288afdd8d5df9b031e2cd19a428825d
6
+ metadata.gz: 380b0b88c89b6926ed88fe667751779b61f1d1d6a8a495fb854c887f8049ed4197025d5cb2d5394d477096dacb4a805528bf619a55b412815859b71f1d903464
7
+ data.tar.gz: a316eaf6e438164c2b3ba8f095d769d48410c2271cf3653017e328531dd5c6c009bd94f3e193395ce1f84fdb2fa7b73ff0c131d4ca55a353e85f6f07aaa1c9e8
@@ -1,3 +1,6 @@
1
+ # 0.4.1
2
+ * Bump librdkafka to 0.11.6
3
+
1
4
  # 0.4.0
2
5
  * Improvements in librdkafka archive download
3
6
  * Add global statistics callback
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
 
@@ -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.
@@ -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 = ["https://codeload.github.com/edenhill/librdkafka/tar.gz/v#{Rdkafka::LIBRDKAFKA_VERSION}"]
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
@@ -1,4 +1,5 @@
1
1
  module Rdkafka
2
- VERSION = "0.4.0"
3
- LIBRDKAFKA_VERSION = "0.11.5"
2
+ VERSION = "0.4.1"
3
+ LIBRDKAFKA_VERSION = "0.11.6"
4
+ LIBRDKAFKA_SOURCE_SHA256 = '9c0afb8b53779d968225edf1e79da48a162895ad557900f75e7978f65e642032'
4
5
  end
@@ -1,4 +1,4 @@
1
- require File.expand_path('../lib/rdkafka/version', __FILE__)
1
+ require File.expand_path('lib/rdkafka/version', __dir__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.authors = ['Thijs Cadier']
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.0
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-09-24 00:00:00.000000000 Z
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