manageiq-messaging 1.4.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +9 -5
- data/CHANGELOG.md +10 -1
- data/Gemfile +5 -5
- data/lib/manageiq/messaging/client.rb +9 -3
- data/lib/manageiq/messaging/version.rb +1 -1
- data/manageiq-messaging.gemspec +2 -2
- data/renovate.json +2 -3
- metadata +8 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0a8f1d1324334013597b2273df0fe0d39cfac9b993e000ffce27710c96a6c0a
|
4
|
+
data.tar.gz: d35e535c7f56c6d7f0863ffd712dc929ccfc5194275525bfe4acf782e5098b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68fcff399af88cd6abc05b95cef1cb8876191ed8443aa323b1e8f4ad3235702b73f2b8a2c4fd9a6c0e162c6cf2e30d067443cad085c9441d656086576f0ebec2
|
7
|
+
data.tar.gz: 61a5af258e449572d64110e09dc620ec4fada30e1e6585443c689098ab12861897484344e867d16af12f0223b86209a78299ad46f754ce0ddfbec0cddc017ff0
|
data/.github/workflows/ci.yaml
CHANGED
@@ -12,13 +12,17 @@ jobs:
|
|
12
12
|
strategy:
|
13
13
|
matrix:
|
14
14
|
ruby-version:
|
15
|
-
- '2.7'
|
16
15
|
- '3.0'
|
17
16
|
- '3.1'
|
17
|
+
- '3.2'
|
18
|
+
- '3.3'
|
18
19
|
rails-version:
|
19
|
-
- '6.0'
|
20
|
-
- '6.1'
|
21
20
|
- '7.0'
|
21
|
+
- '7.1'
|
22
|
+
- '7.2'
|
23
|
+
exclude:
|
24
|
+
- ruby-version: '3.0'
|
25
|
+
rails-version: '7.2'
|
22
26
|
env:
|
23
27
|
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
|
24
28
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
@@ -33,6 +37,6 @@ jobs:
|
|
33
37
|
- name: Run tests
|
34
38
|
run: bundle exec rake
|
35
39
|
- name: Report code coverage
|
36
|
-
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.
|
40
|
+
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.rails-version == '7.0' }}
|
37
41
|
continue-on-error: true
|
38
|
-
uses: paambaati/codeclimate-action@
|
42
|
+
uses: paambaati/codeclimate-action@v9
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [2.0.0] - 17-Jul-2025
|
10
|
+
* BREAKING Don't default to Stomp protocol ([#97](https://github.com/ManageIQ/manageiq-messaging/pull/97))
|
11
|
+
|
12
|
+
## [1.5.0] - 30-Sep-2024
|
13
|
+
* Use ruby 3.1 and rails 7 for code coverage ([#92](https://github.com/ManageIQ/manageiq-messaging/pull/92))
|
14
|
+
* Drop end of life rubies and rails and add new versions ([#94](https://github.com/ManageIQ/manageiq-messaging/pull/94))
|
15
|
+
|
9
16
|
## [1.4.3] - 03-May-2024
|
10
17
|
* Close the Kafka admin connection ([#89](https://github.com/ManageIQ/manageiq-messaging/pull/89))
|
11
18
|
|
@@ -90,7 +97,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
90
97
|
|
91
98
|
* Initial release
|
92
99
|
|
93
|
-
[Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/
|
100
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v2.0.0...HEAD
|
101
|
+
[2.0.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.5.0...v2.0.0
|
102
|
+
[1.5.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.3...v1.5.0
|
94
103
|
[1.4.3]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.2...v1.4.3
|
95
104
|
[1.4.2]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.1...v1.4.2
|
96
105
|
[1.4.1]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.0...v1.4.1
|
data/Gemfile
CHANGED
@@ -5,12 +5,12 @@ gemspec
|
|
5
5
|
|
6
6
|
minimum_version =
|
7
7
|
case ENV['TEST_RAILS_VERSION']
|
8
|
-
when "
|
9
|
-
"~>
|
10
|
-
when "7.
|
11
|
-
"~>7.
|
8
|
+
when "7.2"
|
9
|
+
"~>7.2.1"
|
10
|
+
when "7.1"
|
11
|
+
"~>7.1.4"
|
12
12
|
else
|
13
|
-
"~>
|
13
|
+
"~>7.0.8"
|
14
14
|
end
|
15
15
|
|
16
16
|
gem "activesupport", minimum_version
|
@@ -32,7 +32,7 @@ module ManageIQ
|
|
32
32
|
class Client
|
33
33
|
# Open or create a connection to the message broker.
|
34
34
|
# Expected +options+ keys are:
|
35
|
-
# * :protocol (Implemented: 'Stomp', 'Kafka'
|
35
|
+
# * :protocol (Implemented: 'Stomp', 'Kafka')
|
36
36
|
# * :host (hostname or IP address of the messaging broker)
|
37
37
|
# * :port (host port number)
|
38
38
|
# * :username (optional)
|
@@ -44,8 +44,14 @@ module ManageIQ
|
|
44
44
|
#
|
45
45
|
# Returns a +Client+ instance if no block is given.
|
46
46
|
def self.open(options)
|
47
|
-
protocol = options[:protocol]
|
48
|
-
|
47
|
+
protocol = options[:protocol]
|
48
|
+
raise ArgumentError, "Missing protocol" if protocol.nil?
|
49
|
+
|
50
|
+
client = begin
|
51
|
+
Object.const_get("ManageIQ::Messaging::#{protocol}::Client").new(options)
|
52
|
+
rescue NameError
|
53
|
+
raise ArgumentError, "Invalid protocol: #{protocol}"
|
54
|
+
end
|
49
55
|
|
50
56
|
return client unless block_given?
|
51
57
|
|
data/manageiq-messaging.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'manageiq/messaging/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "manageiq-messaging"
|
8
8
|
spec.version = ManageIQ::Messaging::VERSION
|
9
|
-
spec.required_ruby_version = '>=
|
9
|
+
spec.required_ruby_version = '>= 3.0'
|
10
10
|
spec.authors = ["ManageIQ Authors"]
|
11
11
|
|
12
12
|
spec.summary = 'Client library for ManageIQ components to exchange messages through its internal message bus.'
|
@@ -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', '>=
|
29
|
+
spec.add_dependency 'activesupport', '>= 7.0.8', "<8.0"
|
30
30
|
spec.add_dependency 'rdkafka', '~> 0.8'
|
31
31
|
spec.add_dependency 'stomp', '~> 1.4.4'
|
32
32
|
|
data/renovate.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Authors
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -16,20 +15,20 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
18
|
+
version: 7.0.8
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
21
|
+
version: '8.0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
28
|
+
version: 7.0.8
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
31
|
+
version: '8.0'
|
33
32
|
- !ruby/object:Gem::Dependency
|
34
33
|
name: rdkafka
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +129,6 @@ dependencies:
|
|
130
129
|
version: 0.21.2
|
131
130
|
description: Client library for ManageIQ components to exchange messages through its
|
132
131
|
internal message bus.
|
133
|
-
email:
|
134
132
|
executables: []
|
135
133
|
extensions: []
|
136
134
|
extra_rdoc_files: []
|
@@ -183,7 +181,6 @@ metadata:
|
|
183
181
|
changelog_uri: https://github.com/ManageIQ/manageiq-messaging/blob/master/CHANGELOG.md
|
184
182
|
source_code_uri: https://github.com/ManageIQ/manageiq-messaging/
|
185
183
|
bug_tracker_uri: https://github.com/ManageIQ/manageiq-messaging/issues
|
186
|
-
post_install_message:
|
187
184
|
rdoc_options: []
|
188
185
|
require_paths:
|
189
186
|
- lib
|
@@ -191,15 +188,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
188
|
requirements:
|
192
189
|
- - ">="
|
193
190
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
191
|
+
version: '3.0'
|
195
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
193
|
requirements:
|
197
194
|
- - ">="
|
198
195
|
- !ruby/object:Gem::Version
|
199
196
|
version: '0'
|
200
197
|
requirements: []
|
201
|
-
rubygems_version: 3.
|
202
|
-
signing_key:
|
198
|
+
rubygems_version: 3.6.7
|
203
199
|
specification_version: 4
|
204
200
|
summary: Client library for ManageIQ components to exchange messages through its internal
|
205
201
|
message bus.
|