manageiq-messaging 1.3.0 → 1.4.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90c8a747b5347badd354dec79af6a21205d23170538c34ad42a4082d355a92df
|
4
|
+
data.tar.gz: 9c0df39f1ca7832d40915ad34687362aff1b96f9d1d8cd7fec0dee2f33495437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdcfdf342133de5680d0fba9dad554e89e2decbb8f3556a8c52e89615fd0b64bfdcc8c899faf16b2c30f9131202d6b54b665a4731320f5423b969d7abc0aef33
|
7
|
+
data.tar.gz: 63a23dffbc97671389fb4d4974cbce5836e1613954525cd83a4b7750868f4bf6493dd481a92acb3d96108f1324706ecf5af07e1781ee1b51ee6b361b52bd2348
|
data/.github/workflows/ci.yaml
CHANGED
@@ -22,7 +22,7 @@ jobs:
|
|
22
22
|
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
|
23
23
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
24
24
|
steps:
|
25
|
-
- uses: actions/checkout@
|
25
|
+
- uses: actions/checkout@v4
|
26
26
|
- name: Set up Ruby
|
27
27
|
uses: ruby/setup-ruby@v1
|
28
28
|
with:
|
@@ -34,4 +34,4 @@ jobs:
|
|
34
34
|
- name: Report code coverage
|
35
35
|
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' && matrix.rails-version == '6.1' }}
|
36
36
|
continue-on-error: true
|
37
|
-
uses: paambaati/codeclimate-action@
|
37
|
+
uses: paambaati/codeclimate-action@v5
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.4.1] - 29-Nov-2023
|
10
|
+
* Fix headers with string keys ([#82](https://github.com/ManageIQ/manageiq-messaging/pull/82))
|
11
|
+
|
12
|
+
## [1.4.0] - 01-Sept-2023
|
13
|
+
* Add Kafka SASL mechanism options to client ([#80](https://github.com/ManageIQ/manageiq-messaging/pull/80))
|
14
|
+
|
9
15
|
## [1.3.0] - 03-Apr-2023
|
10
16
|
* Add Kafka SSL keystore options to client [#77](https://github.com/ManageIQ/manageiq-messaging/pull/77)
|
11
17
|
|
@@ -76,7 +82,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
76
82
|
|
77
83
|
* Initial release
|
78
84
|
|
79
|
-
[Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.
|
85
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.1...HEAD
|
86
|
+
[1.4.1]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.0...v1.4.1
|
87
|
+
[1.4.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.3.0...v1.4.0
|
80
88
|
[1.3.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.2.0...v1.3.0
|
81
89
|
[1.2.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.1.2...v1.2.0
|
82
90
|
[1.1.2]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.1.1...v1.1.2
|
@@ -88,7 +88,7 @@ module ManageIQ
|
|
88
88
|
result = {:"bootstrap.servers" => hosts.join(',')}
|
89
89
|
result[:"client.id"] = options[:client_ref] if options[:client_ref]
|
90
90
|
|
91
|
-
result[:"sasl.mechanism"] = "PLAIN"
|
91
|
+
result[:"sasl.mechanism"] = options[:sasl_mechanism] || "PLAIN"
|
92
92
|
result[:"sasl.username"] = options[:username] if options[:username]
|
93
93
|
result[:"sasl.password"] = options[:password] if options[:password]
|
94
94
|
result[:"security.protocol"] = !!options[:ssl] ? "SASL_SSL" : "PLAINTEXT"
|
@@ -96,7 +96,7 @@ module ManageIQ
|
|
96
96
|
result[:"ssl.keystore.location"] = options[:keystore_location] if options[:keystore_location]
|
97
97
|
result[:"ssl.keystore.password"] = options[:keystore_password] if options[:keystore_password]
|
98
98
|
|
99
|
-
result.merge(options.except(:port, :host, :hosts, :encoding, :protocol, :client_ref, :username, :password, :ssl, :ca_file, :keystore_location, :keystore_password))
|
99
|
+
result.merge(options.except(:port, :host, :hosts, :encoding, :protocol, :client_ref, :sasl_mechanism, :username, :password, :ssl, :ca_file, :keystore_location, :keystore_password))
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
@@ -3,6 +3,7 @@ module ManageIQ
|
|
3
3
|
module Kafka
|
4
4
|
module Common
|
5
5
|
require 'manageiq/messaging/common'
|
6
|
+
require "active_support/core_ext/hash/indifferent_access"
|
6
7
|
include ManageIQ::Messaging::Common
|
7
8
|
|
8
9
|
private
|
@@ -116,7 +117,7 @@ module ManageIQ
|
|
116
117
|
|
117
118
|
def parse_message_headers(headers)
|
118
119
|
return [nil, nil, nil] unless headers.kind_of?(Hash)
|
119
|
-
headers.values_at(*message_header_keys)
|
120
|
+
headers.with_indifferent_access.values_at(*message_header_keys)
|
120
121
|
end
|
121
122
|
|
122
123
|
def event_header_keys
|
@@ -125,7 +126,7 @@ module ManageIQ
|
|
125
126
|
|
126
127
|
def parse_event_headers(headers)
|
127
128
|
return [nil, nil] unless headers.kind_of?(Hash)
|
128
|
-
headers.values_at(*event_header_keys)
|
129
|
+
headers.with_indifferent_access.values_at(*event_header_keys)
|
129
130
|
end
|
130
131
|
end
|
131
132
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|
200
|
-
rubygems_version: 3.
|
200
|
+
rubygems_version: 3.4.20
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Client library for ManageIQ components to exchange messages through its internal
|