delivery_boy 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG +2 -0
- data/delivery_boy.gemspec +2 -2
- data/lib/delivery_boy/config.rb +2 -1
- data/lib/delivery_boy/fake.rb +4 -2
- data/lib/delivery_boy/instance.rb +1 -0
- data/lib/delivery_boy/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a02bb34d66cc6d38e515061a771fe23f805bdfc8dcdcba07dd954097aa8be93b
|
4
|
+
data.tar.gz: 97b6f4a51301cafe94579962f184b8e8e12989484c15efad614e929e425f7299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b914315b1b40266a3cb6b308a3c57c3a8273c304f7cb5535c249cd0884cbefc8139f48649fc8ea5a19c83f5c9784ac21581f855de9adac0ca1a0b5cbdef76f
|
7
|
+
data.tar.gz: 6d4c3b8c8c5ae569e80787d32b2e78b029441586f9f247f9df5a8f63eccfdeae840789073f113443ff87df52f35b2b39417f43762348457debe82d01ee23f7c1
|
data/CHANGELOG
CHANGED
data/delivery_boy.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_runtime_dependency "ruby-kafka", "~> 0.5
|
24
|
-
spec.add_runtime_dependency "king_konf", "~> 0.1.
|
23
|
+
spec.add_runtime_dependency "ruby-kafka", "~> 0.5"
|
24
|
+
spec.add_runtime_dependency "king_konf", "~> 0.1.9"
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.15"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
data/lib/delivery_boy/config.rb
CHANGED
@@ -34,11 +34,12 @@ module DeliveryBoy
|
|
34
34
|
string :ssl_ca_cert_file_path
|
35
35
|
string :ssl_client_cert, default: nil
|
36
36
|
string :ssl_client_cert_key, default: nil
|
37
|
+
boolean :ssl_ca_certs_from_system, default: false
|
37
38
|
|
38
39
|
# SASL authentication
|
39
40
|
string :sasl_gssapi_principal
|
40
41
|
string :sasl_gssapi_keytab
|
41
|
-
string :sasl_plain_authzid
|
42
|
+
string :sasl_plain_authzid, default: ''
|
42
43
|
string :sasl_plain_username
|
43
44
|
string :sasl_plain_password
|
44
45
|
string :sasl_scram_username
|
data/lib/delivery_boy/fake.rb
CHANGED
@@ -2,14 +2,16 @@ module DeliveryBoy
|
|
2
2
|
|
3
3
|
# A fake implementation that is useful for testing.
|
4
4
|
class Fake
|
5
|
-
FakeMessage = Struct.new(:value, :topic, :key, :partition, :partition_key)
|
5
|
+
FakeMessage = Struct.new(:value, :topic, :key, :offset, :partition, :partition_key)
|
6
6
|
|
7
7
|
def initialize
|
8
8
|
@messages = Hash.new {|h, k| h[k] = [] }
|
9
9
|
end
|
10
10
|
|
11
11
|
def deliver(value, topic:, key: nil, partition: nil, partition_key: nil)
|
12
|
-
|
12
|
+
offset = @messages[topic].count
|
13
|
+
message = FakeMessage.new(value, topic, key, offset, partition, partition_key)
|
14
|
+
|
13
15
|
@messages[topic] << message
|
14
16
|
|
15
17
|
nil
|
@@ -67,6 +67,7 @@ module DeliveryBoy
|
|
67
67
|
ssl_ca_cert_file_path: config.ssl_ca_cert_file_path,
|
68
68
|
ssl_client_cert: config.ssl_client_cert,
|
69
69
|
ssl_client_cert_key: config.ssl_client_cert_key,
|
70
|
+
ssl_ca_certs_from_system: config.ssl_ca_certs_from_system,
|
70
71
|
sasl_gssapi_principal: config.sasl_gssapi_principal,
|
71
72
|
sasl_gssapi_keytab: config.sasl_gssapi_keytab,
|
72
73
|
sasl_plain_authzid: config.sasl_plain_authzid,
|
data/lib/delivery_boy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delivery_boy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schierbeck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-kafka
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.5
|
19
|
+
version: '0.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.5
|
26
|
+
version: '0.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: king_konf
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.
|
33
|
+
version: 0.1.9
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.
|
40
|
+
version: 0.1.9
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.6
|
134
|
+
rubygems_version: 2.7.6
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: A simple way to produce messages to Kafka from Ruby applications
|