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 +4 -4
- data/lib/simple_kafka_consumer/consumer.rb +4 -3
- data/lib/simple_kafka_consumer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a21f016929a276ed2b73ee8f10043328ebf1cf26
|
4
|
+
data.tar.gz: 1e2e5ae7ce54dbdbec1c24982cded2cde0af0a84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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
|
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.
|
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-
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|