manageiq-messaging 1.4.2 → 1.4.3

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: 8f8bcb7908a9aea6ac50fe91caafdc4636241feee9b200c90a6ed99d31bde1aa
4
- data.tar.gz: cfa0e2ac0fe4abf0219e414f0e542b1d62cc9d1113425b91003759fad88f12b4
3
+ metadata.gz: 17ceec47e0dedb5b03d1a49fb023e70f36eb64cab1ebe4e1e32d2491c9f67720
4
+ data.tar.gz: 6d312e66479dea87133dd6caa4290dafbbf5ef77b922daf4d1a1e843fea14eb7
5
5
  SHA512:
6
- metadata.gz: a9b3e838f1b16b68ce2d52a3c14f1dc0b25453418c2993299ccd443ff31ab4b2d4dd02ab77e9d8e77013b496d8bb6fdb09a14237fb9b67dd07ea87b8258e8a91
7
- data.tar.gz: ac7ea35763bc19b56b0f54be1610acee9fb2a7c3226139adcacad5dce0e5a40e5b9d44db76ac668c501d42594db7ca48ff8cc86566cfd0bd2f681223690c3810
6
+ metadata.gz: bc42d48a195a4fa013e6a4fa964be220a8be4102f6c30e202b07521bed213f6450cc27981151fb37e9e82d2042daf665bec53c179d07ca54daffcd700153293e
7
+ data.tar.gz: 7d5159c5aaaf2fd68ef1214711bfd982875e7718205a6232ea6c84522926c8bef74df190a23ba946b90a0d057e981d89f891b9dff930ea9de90bcb682deebe8a
data/CHANGELOG.md CHANGED
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.4.3] - 03-May-2024
10
+ * Close the Kafka admin connection ([#89](https://github.com/ManageIQ/manageiq-messaging/pull/89))
11
+
9
12
  ## [1.4.2] - 03-May-2024
10
13
  * Fix Kafka List Topics Method ([#88](https://github.com/ManageIQ/manageiq-messaging/pull/88))
11
14
  * Add ruby 3.1 to the test matrix ([#84](https://github.com/ManageIQ/manageiq-messaging/pull/84))
@@ -87,7 +90,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
87
90
 
88
91
  * Initial release
89
92
 
90
- [Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.2...HEAD
93
+ [Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.3...HEAD
94
+ [1.4.3]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.2...v1.4.3
91
95
  [1.4.2]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.1...v1.4.2
92
96
  [1.4.1]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.0...v1.4.1
93
97
  [1.4.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.3.0...v1.4.0
@@ -56,6 +56,9 @@ module ManageIQ
56
56
  end
57
57
 
58
58
  def close
59
+ @admin&.close
60
+ @admin = nil
61
+
59
62
  @producer&.close
60
63
  @producer = nil
61
64
 
@@ -65,7 +68,7 @@ module ManageIQ
65
68
 
66
69
  # list all topics
67
70
  def topics
68
- kafka_client.admin.metadata.topics.map { |topic| topic[:topic_name] }
71
+ admin.metadata.topics.map { |topic| topic[:topic_name] }
69
72
  end
70
73
 
71
74
  private
@@ -8,6 +8,10 @@ module ManageIQ
8
8
 
9
9
  private
10
10
 
11
+ def admin
12
+ @admin ||= kafka_client.admin
13
+ end
14
+
11
15
  def producer
12
16
  @producer ||= kafka_client.producer
13
17
  end
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Messaging
3
- VERSION = "1.4.2"
3
+ VERSION = "1.4.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Authors