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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17ceec47e0dedb5b03d1a49fb023e70f36eb64cab1ebe4e1e32d2491c9f67720
4
- data.tar.gz: 6d312e66479dea87133dd6caa4290dafbbf5ef77b922daf4d1a1e843fea14eb7
3
+ metadata.gz: f0a8f1d1324334013597b2273df0fe0d39cfac9b993e000ffce27710c96a6c0a
4
+ data.tar.gz: d35e535c7f56c6d7f0863ffd712dc929ccfc5194275525bfe4acf782e5098b8b
5
5
  SHA512:
6
- metadata.gz: bc42d48a195a4fa013e6a4fa964be220a8be4102f6c30e202b07521bed213f6450cc27981151fb37e9e82d2042daf665bec53c179d07ca54daffcd700153293e
7
- data.tar.gz: 7d5159c5aaaf2fd68ef1214711bfd982875e7718205a6232ea6c84522926c8bef74df190a23ba946b90a0d057e981d89f891b9dff930ea9de90bcb682deebe8a
6
+ metadata.gz: 68fcff399af88cd6abc05b95cef1cb8876191ed8443aa323b1e8f4ad3235702b73f2b8a2c4fd9a6c0e162c6cf2e30d067443cad085c9441d656086576f0ebec2
7
+ data.tar.gz: 61a5af258e449572d64110e09dc620ec4fada30e1e6585443c689098ab12861897484344e867d16af12f0223b86209a78299ad46f754ce0ddfbec0cddc017ff0
@@ -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.0' && matrix.rails-version == '6.1' }}
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@v6
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/v1.4.3...HEAD
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 "6.0"
9
- "~>6.0.4"
10
- when "7.0"
11
- "~>7.0.8"
8
+ when "7.2"
9
+ "~>7.2.1"
10
+ when "7.1"
11
+ "~>7.1.4"
12
12
  else
13
- "~>6.1.4"
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'. Default 'Stomp')
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] || :Stomp
48
- client = Object.const_get("ManageIQ::Messaging::#{protocol}::Client").new(options)
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
 
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Messaging
3
- VERSION = "1.4.3"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -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 = '>= 2.4'
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', '>= 5.2.4.3', "<7.1"
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
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
- "extends": [
4
- "config:recommended"
5
- ]
3
+ "inheritConfig": true,
4
+ "inheritConfigRepoName": "manageiq/renovate-config"
6
5
  }
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: 1.4.3
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: 2024-05-03 00:00:00.000000000 Z
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: 5.2.4.3
18
+ version: 7.0.8
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
- version: '7.1'
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: 5.2.4.3
28
+ version: 7.0.8
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
- version: '7.1'
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: '2.4'
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.4.20
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.