simple_kafka_consumer 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 498c7d45d7432678ccdc3deb01422ac3ad1b2166
4
- data.tar.gz: 7115a5b0429e4356c8786f285fc4ee54fb453013
3
+ metadata.gz: a21f016929a276ed2b73ee8f10043328ebf1cf26
4
+ data.tar.gz: 1e2e5ae7ce54dbdbec1c24982cded2cde0af0a84
5
5
  SHA512:
6
- metadata.gz: f00511b1ddf2d5ece9fdb16cfdf3486440c8848ea46b1c2b07898a9eb15b2e3f7b60471f6941313ff86303b145ec15c554b12c3f5ca1e88d26b4b855dea143b2
7
- data.tar.gz: db0dfa0381c88a60021069906554ef57ec1eb5dc86b847eee01a1981b3886513d4b456d9b38897ef29ab1949a6e241c7d47a138a6036ccea3a2323d76dd48060
6
+ metadata.gz: 0b8f3e54b41a66d20a0599273fad4b05584dea51c275deb9ae16a51d6d5dde5a7109d8d235ca7ee8891fe4300d20fd14846f2fe6a9205dab06c8e9af051d3e82
7
+ data.tar.gz: 643b9a6c6090841da5dfe17288bff7f026ba5b8dbf2b900fa2ffa7f33d1a2ca995a292cd79ca7ef341e5c580259babf133328aad2dd5a19a3796b485505c26ad
@@ -2,14 +2,15 @@ module SimpleKafkaConsumer
2
2
  class Consumer
3
3
  class_attribute :group_name, :topic_name
4
4
  attr_reader :consumer, :logger
5
- def initialize(kafka_servers, zookeeper_servers, logger: nil)
5
+ def initialize(kafka_servers, zookeeper_servers, options = {})
6
+ @logger = options.delete(:logger)
6
7
  @consumer = Poseidon::ConsumerGroup.new(
7
8
  group_name,
8
9
  kafka_servers,
9
10
  zookeeper_servers,
10
- topic_name
11
+ topic_name,
12
+ options
11
13
  )
12
- @logger = logger
13
14
  end
14
15
 
15
16
  def run
@@ -1,3 +1,3 @@
1
1
  module SimpleKafkaConsumer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_kafka_consumer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Ching
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-24 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport