racecar 0.3.8 → 0.4.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +8 -0
- data/lib/racecar/config.rb +9 -0
- data/lib/racecar/runner.rb +3 -0
- data/lib/racecar/version.rb +1 -1
- data/racecar.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cd7476feb0cd46d94430ffd49c28e97e43dc243768f8750ebb0ba9e95caa26f
|
4
|
+
data.tar.gz: baa4d9e702a34ed62ad1656627395bdde6c3bbcca318a74b95e067d9908f01e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fcabce0833c29f4f7f5d02a66e898512f8ba184b50aa72b759b087e2b86ff3ccc9635ff6eb4edfd760b8c2258c931fb2c08d256a30c355c9bb1e154ca09c13f
|
7
|
+
data.tar.gz: 1d86602c5fcd4ccdb21363174710b05c4ee18ed809197748bde1c64de2b42db65a9aed12d42b78edb4b9483a1093ce40b013c67220295666ab9799fd577701e6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,8 @@ Racecar is a friendly and easy-to-approach Kafka consumer framework. It allows y
|
|
4
4
|
|
5
5
|
The framework is based on [ruby-kafka](https://github.com/zendesk/ruby-kafka), which, when used directly, can be a challenge: it's a flexible library with lots of knobs and options. Most users don't need that level of flexibility, though. Racecar provides a simple and intuitive way to build and configure Kafka consumers.
|
6
6
|
|
7
|
+
**NOTE:** Racecar requires Kafka 0.10 or higher.
|
8
|
+
|
7
9
|
## Table of content
|
8
10
|
|
9
11
|
1. [Installation](#installation)
|
@@ -266,6 +268,12 @@ If using PLAIN:
|
|
266
268
|
* `sasl_plain_username` – The username used to authenticate.
|
267
269
|
* `sasl_plain_password` – The password used to authenticate.
|
268
270
|
|
271
|
+
If using SCRAM:
|
272
|
+
|
273
|
+
* `sasl_scram_username` – The username used to authenticate.
|
274
|
+
* `sasl_scram_password` – The password used to authenticate.
|
275
|
+
* `sasl_scram_mechanism` – The SCRAM mechanism to use, either `sha256` or `sha512`.
|
276
|
+
|
269
277
|
#### Datadog monitoring
|
270
278
|
|
271
279
|
Racecar supports configuring ruby-kafka's [Datadog](https://www.datadoghq.com/) monitoring integration. If you're running a normal Datadog agent on your host, you just need to set `datadog_enabled` to `true`, as the rest of the settings come with sane defaults.
|
data/lib/racecar/config.rb
CHANGED
@@ -76,6 +76,15 @@ module Racecar
|
|
76
76
|
desc "The password used to authenticate"
|
77
77
|
string :sasl_plain_password
|
78
78
|
|
79
|
+
desc "The username used to authenticate"
|
80
|
+
string :sasl_scram_username
|
81
|
+
|
82
|
+
desc "The password used to authenticate"
|
83
|
+
string :sasl_scram_password
|
84
|
+
|
85
|
+
desc "The SCRAM mechanism to use, either `sha256` or `sha512`"
|
86
|
+
string :sasl_scram_mechanism, allowed_values: ["sha256", "sha512"]
|
87
|
+
|
79
88
|
desc "The file in which to store the Racecar process' PID when daemonized"
|
80
89
|
string :pidfile
|
81
90
|
|
data/lib/racecar/runner.rb
CHANGED
@@ -27,6 +27,9 @@ module Racecar
|
|
27
27
|
ssl_client_cert_key: config.ssl_client_cert_key,
|
28
28
|
sasl_plain_username: config.sasl_plain_username,
|
29
29
|
sasl_plain_password: config.sasl_plain_password,
|
30
|
+
sasl_scram_username: config.sasl_scram_username,
|
31
|
+
sasl_scram_password: config.sasl_scram_password,
|
32
|
+
sasl_scram_mechanism: config.sasl_scram_mechanism,
|
30
33
|
)
|
31
34
|
|
32
35
|
@consumer = kafka.consumer(
|
data/lib/racecar/version.rb
CHANGED
data/racecar.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_runtime_dependency "king_konf", "~> 0.
|
24
|
-
spec.add_runtime_dependency "ruby-kafka", "~> 0.
|
23
|
+
spec.add_runtime_dependency "king_konf", "~> 0.2.0"
|
24
|
+
spec.add_runtime_dependency "ruby-kafka", "~> 0.5"
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.13"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: racecar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schierbeck
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-03-
|
12
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: king_konf
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.2.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 0.2.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: ruby-kafka
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '0.
|
34
|
+
version: '0.5'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0.
|
41
|
+
version: '0.5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bundler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,9 +135,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- - "
|
138
|
+
- - ">"
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version:
|
140
|
+
version: 1.3.1
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
143
|
rubygems_version: 2.7.6
|