sorceror_jruby-kafka 2.0.1-java → 2.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jruby-kafka/consumer.rb +2 -2
- 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: 0d54b5612d0557ee8581e65de6d085291ec641c8
|
4
|
+
data.tar.gz: 25e87dbfc744282093bdb8992fdde37c5080eebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 931af1b0e42a6c17fd365f474bd70da23932cf1d646a3fcd31ca6f3581cfb35d4c9c149a0abc9c69d3a575fee0b395da281feaf01862778bb8b4792d3e12d2fe
|
7
|
+
data.tar.gz: 0583b808b950fec89ea9915347c3ea934e9461beebace816e00c19fa1feeb63a0252d45b618eeccf823ca31ca1dc91ea8d56b2d7dee7d6f3395222426df8cd1e
|
data/lib/jruby-kafka/consumer.rb
CHANGED
@@ -25,7 +25,7 @@ class Kafka::Consumer
|
|
25
25
|
while it.hasNext
|
26
26
|
begin
|
27
27
|
message = it.next
|
28
|
-
@m_callback.call(message.message.to_s, MetaData.new(message.topic, message.partition, message.offset))
|
28
|
+
@m_callback.call(message.message.to_s, MetaData.new(message.key.to_s, message.topic, message.partition, message.offset))
|
29
29
|
end
|
30
30
|
end
|
31
31
|
rescue Exception => e
|
@@ -39,5 +39,5 @@ class Kafka::Consumer
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
class MetaData < Struct.new(:topic, :partition, :offset); end
|
42
|
+
class MetaData < Struct.new(:key, :topic, :partition, :offset); end
|
43
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorceror_jruby-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Kareem Kouddous
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|