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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3293430baf38aa0ef1f5be2bba90b2164ae79595
4
- data.tar.gz: 93b1cfe0504ba931cf472e463790b991f6e4ea7a
2
+ SHA256:
3
+ metadata.gz: a02bb34d66cc6d38e515061a771fe23f805bdfc8dcdcba07dd954097aa8be93b
4
+ data.tar.gz: 97b6f4a51301cafe94579962f184b8e8e12989484c15efad614e929e425f7299
5
5
  SHA512:
6
- metadata.gz: 0e34e02b0abe71d171c17466c1daa7969400145f3639b12104dd8cc144249d285ceb4477b6e7d0457415b509eaa7044b5d046b4d530babbc4f83767b4244afd5
7
- data.tar.gz: '0010468cc340df5f2a65d9e51ac140929b7d3317c2a19de829f96c46943f210597c01222817a82a5c39b011e654e7277c8bea50dfce348131a2b144e4ee7562e'
6
+ metadata.gz: d2b914315b1b40266a3cb6b308a3c57c3a8273c304f7cb5535c249cd0884cbefc8139f48649fc8ea5a19c83f5c9784ac21581f855de9adac0ca1a0b5cbdef76f
7
+ data.tar.gz: 6d4c3b8c8c5ae569e80787d32b2e78b029441586f9f247f9df5a8f63eccfdeae840789073f113443ff87df52f35b2b39417f43762348457debe82d01ee23f7c1
data/CHANGELOG CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ * Support for ssl_ca_certs_from_system #18
6
+
5
7
  ## v0.2.4
6
8
 
7
9
  * Add support for SASL SCRAM
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.1"
24
- spec.add_runtime_dependency "king_konf", "~> 0.1.8"
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"
@@ -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
@@ -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
- message = FakeMessage.new(value, topic, key, partition, partition_key)
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,
@@ -1,3 +1,3 @@
1
1
  module DeliveryBoy
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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: 2017-12-21 00:00:00.000000000 Z
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.1
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.1
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.8
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.8
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.13
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