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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jruby-kafka/consumer.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c45083d353c5153e393011d0ff881846bccebf5
4
- data.tar.gz: 9471d8d52083d5f1aeed5599d93cddad86800913
3
+ metadata.gz: 0d54b5612d0557ee8581e65de6d085291ec641c8
4
+ data.tar.gz: 25e87dbfc744282093bdb8992fdde37c5080eebc
5
5
  SHA512:
6
- metadata.gz: 55eec1502a7a43224b1d0b5e66f07f1ac06953460630edc66963bf38e27fef0dab3c93f55041bad2df2ea68b0b9374ee8394c5aa5c6248d9869800eb5bcda3b6
7
- data.tar.gz: f85eacb264dfd1b205458db55f45fe7f69933af3fc60b4c5ed94421e9389d0ec745f0365aee07ce8bebe3f27e367213653d85bf6b0a0a4eee40b52d57ad8b879
6
+ metadata.gz: 931af1b0e42a6c17fd365f474bd70da23932cf1d646a3fcd31ca6f3581cfb35d4c9c149a0abc9c69d3a575fee0b395da281feaf01862778bb8b4792d3e12d2fe
7
+ data.tar.gz: 0583b808b950fec89ea9915347c3ea934e9461beebace816e00c19fa1feeb63a0252d45b618eeccf823ca31ca1dc91ea8d56b2d7dee7d6f3395222426df8cd1e
@@ -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.1
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-06-17 00:00:00.000000000 Z
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