Sha256: 72281b4ee49c7ad27deba2fea278d7eb2cb144fadabb8b6d04e05c0de7e047ba

Contents?: true

Size: 377 Bytes

Versions: 9

Compression:

Stored size: 377 Bytes

Contents

require "pry"
require "rspec"
require "rdkafka"

def rdkafka_config
  config = {
    :"bootstrap.servers" => "localhost:9092",
    :"group.id" => "ruby_test",
    :"enable.partition.eof" => false
  }
  if ENV["DEBUG_PRODUCER"]
    config[:debug] = "broker,topic,msg"
  elsif ENV["DEBUG_CONSUMER"]
    config[:debug] = "cgrp,topic,fetch"
  end
  Rdkafka::Config.new(config)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rdkafka-0.1.9 spec/spec_helper.rb
rdkafka-0.1.8 spec/spec_helper.rb
rdkafka-0.1.7 spec/spec_helper.rb
rdkafka-0.1.6 spec/spec_helper.rb
rdkafka-0.1.5 spec/spec_helper.rb
rdkafka-0.1.4 spec/spec_helper.rb
rdkafka-0.1.3 spec/spec_helper.rb
rdkafka-0.1.2 spec/spec_helper.rb
rdkafka-0.1.1 spec/spec_helper.rb