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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9497ee5597ab5815d3ed45ccf8cda2b727b52dcf
4
- data.tar.gz: d5cae81efa60f85790db320eec4add0bc816dd1d
3
+ metadata.gz: 9f49da809a9a1da43ec33c8d475ff31055ca46cd
4
+ data.tar.gz: f75cc6a67c1806727403dc59f7bb755566fa680c
5
5
  SHA512:
6
- metadata.gz: 83020327a759b9911b1ce1bf81a88d08d39743ca43967b7ee39408a45787271f2cb0b10e110efe3104e786577e4b3b0eee567a29570562dfd3e4bae8391a86b6
7
- data.tar.gz: 8a3aa2ce7671c8ec923e63f99675092ce3340c2fea9a087964b598a95505b9a55b7f612bba5e25d92fdc378ce6da288919e4b0e7a3a2d2ceb93a9151d28a7b1e
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
 
@@ -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.1'
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, Array(events), options)
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.1
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