manageiq-messaging 1.4.0 → 1.4.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
  SHA256:
3
- metadata.gz: 3f8b3657297bc2aea214185fdede2a72ca90380a0634537ab9f69589ff8e8436
4
- data.tar.gz: f30f33edf031f670d60737626d9594e98b1d4c4c1dbcab19a0ab00c40dcc4d72
3
+ metadata.gz: 8f8bcb7908a9aea6ac50fe91caafdc4636241feee9b200c90a6ed99d31bde1aa
4
+ data.tar.gz: cfa0e2ac0fe4abf0219e414f0e542b1d62cc9d1113425b91003759fad88f12b4
5
5
  SHA512:
6
- metadata.gz: 005aa8c8bca3572189dffff24779ea30dfe95f1ea5d556f02750bdfa46da3af3ba9ac8e15f1e8642a94eff815d042b09256da9b32adebac62d133a530a98229e
7
- data.tar.gz: c9fd0f1b20a93fd8bb5259d8f8609125e99cebb522ecb917d8ef8b0e58cfe066c25bb592453fb4064eb7ef121e04679146eb2505be204c52fe3939ec851756dc
6
+ metadata.gz: a9b3e838f1b16b68ce2d52a3c14f1dc0b25453418c2993299ccd443ff31ab4b2d4dd02ab77e9d8e77013b496d8bb6fdb09a14237fb9b67dd07ea87b8258e8a91
7
+ data.tar.gz: ac7ea35763bc19b56b0f54be1610acee9fb2a7c3226139adcacad5dce0e5a40e5b9d44db76ac668c501d42594db7ca48ff8cc86566cfd0bd2f681223690c3810
data/.codeclimate.yml CHANGED
@@ -12,7 +12,7 @@ plugins:
12
12
  rubocop:
13
13
  enabled: true
14
14
  config: ".rubocop_cc.yml"
15
- channel: rubocop-0-82
15
+ channel: rubocop-1-56-3
16
16
  brakeman:
17
17
  enabled: false
18
18
  bundler-audit:
@@ -12,17 +12,18 @@ jobs:
12
12
  strategy:
13
13
  matrix:
14
14
  ruby-version:
15
- - '2.6'
16
15
  - '2.7'
17
16
  - '3.0'
17
+ - '3.1'
18
18
  rails-version:
19
19
  - '6.0'
20
20
  - '6.1'
21
+ - '7.0'
21
22
  env:
22
23
  TEST_RAILS_VERSION: ${{ matrix.rails-version }}
23
24
  CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
24
25
  steps:
25
- - uses: actions/checkout@v3
26
+ - uses: actions/checkout@v4
26
27
  - name: Set up Ruby
27
28
  uses: ruby/setup-ruby@v1
28
29
  with:
@@ -34,4 +35,4 @@ jobs:
34
35
  - name: Report code coverage
35
36
  if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' && matrix.rails-version == '6.1' }}
36
37
  continue-on-error: true
37
- uses: paambaati/codeclimate-action@v5
38
+ uses: paambaati/codeclimate-action@v6
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.4.2] - 03-May-2024
10
+ * Fix Kafka List Topics Method ([#88](https://github.com/ManageIQ/manageiq-messaging/pull/88))
11
+ * Add ruby 3.1 to the test matrix ([#84](https://github.com/ManageIQ/manageiq-messaging/pull/84))
12
+ * Allow rails 7 gems in gemspec ([#83](https://github.com/ManageIQ/manageiq-messaging/pull/83))
13
+
14
+ ## [1.4.1] - 29-Nov-2023
15
+ * Fix headers with string keys ([#82](https://github.com/ManageIQ/manageiq-messaging/pull/82))
16
+
9
17
  ## [1.4.0] - 01-Sept-2023
10
18
  * Add Kafka SASL mechanism options to client ([#80](https://github.com/ManageIQ/manageiq-messaging/pull/80))
11
19
 
@@ -79,7 +87,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
79
87
 
80
88
  * Initial release
81
89
 
82
- [Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.3.0...HEAD
90
+ [Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.2...HEAD
91
+ [1.4.2]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.1...v1.4.2
92
+ [1.4.1]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.0...v1.4.1
93
+ [1.4.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.3.0...v1.4.0
83
94
  [1.3.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.2.0...v1.3.0
84
95
  [1.2.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.1.2...v1.2.0
85
96
  [1.1.2]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.1.1...v1.1.2
data/Gemfile CHANGED
@@ -3,9 +3,14 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in manageiq-messaging.gemspec
4
4
  gemspec
5
5
 
6
- case ENV['TEST_RAILS_VERSION']
7
- when "6.0"
8
- gem "activesupport", "~>6.0.4"
9
- when "6.1"
10
- gem "activesupport", "~>6.1.4"
11
- end
6
+ minimum_version =
7
+ case ENV['TEST_RAILS_VERSION']
8
+ when "6.0"
9
+ "~>6.0.4"
10
+ when "7.0"
11
+ "~>7.0.8"
12
+ else
13
+ "~>6.1.4"
14
+ end
15
+
16
+ gem "activesupport", minimum_version
@@ -65,8 +65,7 @@ module ManageIQ
65
65
 
66
66
  # list all topics
67
67
  def topics
68
- native_kafka = producer.instance_variable_get(:@native_kafka)
69
- Rdkafka::Metadata.new(native_kafka).topics.collect { |topic| topic[:topic_name] }
68
+ kafka_client.admin.metadata.topics.map { |topic| topic[:topic_name] }
70
69
  end
71
70
 
72
71
  private
@@ -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
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Messaging
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.2"
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency 'activesupport', '>= 5.2.4.3', "< 7.0"
29
+ spec.add_dependency 'activesupport', '>= 5.2.4.3', "<7.1"
30
30
  spec.add_dependency 'rdkafka', '~> 0.8'
31
31
  spec.add_dependency 'stomp', '~> 1.4.4'
32
32
 
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:recommended"
5
+ ]
6
+ }
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.0
4
+ version: 1.4.2
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-09-01 00:00:00.000000000 Z
11
+ date: 2024-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.2.4.3
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.0'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 5.2.4.3
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.0'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rdkafka
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -175,6 +175,7 @@ files:
175
175
  - lib/manageiq/messaging/stomp/topic.rb
176
176
  - lib/manageiq/messaging/version.rb
177
177
  - manageiq-messaging.gemspec
178
+ - renovate.json
178
179
  homepage: https://github.com/ManageIQ/manageiq-messaging
179
180
  licenses:
180
181
  - MIT
@@ -197,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
198
  - !ruby/object:Gem::Version
198
199
  version: '0'
199
200
  requirements: []
200
- rubygems_version: 3.3.15
201
+ rubygems_version: 3.4.20
201
202
  signing_key:
202
203
  specification_version: 4
203
204
  summary: Client library for ManageIQ components to exchange messages through its internal