kafka_rest_client 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/kafka_rest_client.gemspec +1 -2
- data/lib/kafka_rest_client/avro_producer.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f49da809a9a1da43ec33c8d475ff31055ca46cd
|
4
|
+
data.tar.gz: f75cc6a67c1806727403dc59f7bb755566fa680c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cc1954c043763172bc80baed3da9457e504c8e9e231a59d8711d6938e83c792b26be9f4fdc1d222522a0c9a781737bff605120b97420faec9efe05a32270729
|
7
|
+
data.tar.gz: 186bed143363206e04128674fa49b91d4c0ca621261599a3fa9f82816de7293fa00f4c1a726b9a6b8f5345ff1fad0261bbd60e95e1d64babc9e8b4f762b780f1
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# KafkaRestClient
|
1
|
+
# KafkaRestClient [![Circle CI](https://circleci.com/gh/FundingCircle/kafka_rest_client.svg?style=svg&circle-token=05911e00f67007d72e25a64c554ba06ab50ac99e)](https://circleci.com/gh/FundingCircle/kafka_rest_client)
|
2
2
|
|
3
3
|
A Ruby client to interact with [Kafka REST Proxy](http://docs.confluent.io/1.0.1/kafka-rest/docs/index.html)
|
4
4
|
|
data/kafka_rest_client.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'kafka_rest_client'
|
7
|
-
spec.version = '0.2.
|
7
|
+
spec.version = '0.2.2'
|
8
8
|
spec.authors = ['Funding Circle Engineering']
|
9
9
|
spec.email = ['engineering+kafka_rest_client@fundingcircle.com']
|
10
10
|
spec.licenses = ['BSD-3-Clause']
|
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_development_dependency 'bundler', '~> 1.10'
|
23
22
|
spec.add_development_dependency 'rake', '~> 10.0'
|
24
23
|
spec.add_development_dependency 'rspec', '~> 3.4'
|
25
24
|
spec.add_development_dependency 'pry', '~> 0.10'
|
@@ -24,7 +24,7 @@ module KafkaRestClient
|
|
24
24
|
|
25
25
|
def produce(topic, events, options = {})
|
26
26
|
if enabled?
|
27
|
-
payload = build_event_payload(topic,
|
27
|
+
payload = build_event_payload(topic, [events].flatten, options)
|
28
28
|
response = post_event_to_kafka(topic, payload)
|
29
29
|
config.logger.debug("Produced to Kafka topic #{topic}: #{payload.inspect}")
|
30
30
|
response
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kafka_rest_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Funding Circle Engineering
|
@@ -10,20 +10,6 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2017-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.10'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.10'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rake
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|