heller 0.0.2-java → 0.0.3-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/heller/producer.rb +6 -2
  2. metadata +2 -2
@@ -13,8 +13,12 @@ module Heller
13
13
  end
14
14
 
15
15
  def produce(topic_mappings)
16
- producer_data = topic_mappings.map do |topic, messages|
17
- Kafka::Producer::ProducerData.new(topic, messages)
16
+ producer_data = topic_mappings.map do |topic, hash|
17
+ if hash[:key]
18
+ Kafka::Producer::ProducerData.new(topic, hash[:key], hash[:messages])
19
+ else
20
+ Kafka::Producer::ProducerData.new(topic, hash[:messages])
21
+ end
18
22
  end
19
23
 
20
24
  send(producer_data)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: java
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-14 00:00:00.000000000 Z
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: kafka-jars