manageiq-messaging 1.5.0 → 2.1.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: a9f69f7fa1427fdd346d8f038e972c9b62e0fcbe2ce2aef1a727fbcd1b1b1814
4
- data.tar.gz: 2f05fd2ce9e9b3711bd5961841227532dcdbb8401d6dd35951bdbaaf5ed39528
3
+ metadata.gz: 75d498a62abe2fdbee6071ab94319c8134aa6f64ce1e341c0d609ba6e78434f9
4
+ data.tar.gz: b89db95d02a314eef4de7ac92bbb5ee03f39c498dc383b673a817997ebf5a642
5
5
  SHA512:
6
- metadata.gz: a28c1e6ac47e336b1d907f4bdbd7d7595c3a5afc0295e82a25865fbdd582905996747da0e20948935b0520ef9a0fca3fc8d470d5b38ccd25c4447fdacda4d02d
7
- data.tar.gz: b27a12b1ab3c93cb2329ebd8eabcf5036a5d9a36f3bb24f7d9e59cc3ae350e2c815bb0c112756ae30604ad96a15800cf69d8450c866cb7e4ebd0ec3852461b62
6
+ metadata.gz: e111edf197b7eaac59450a7503747ce39aa14d6eec44f444c1e67f787cae73fedb10110013fa189c9b32b9dfd4f266b7fcc0f92e2eb073de335a6a0a3873c42b
7
+ data.tar.gz: 79fbf406239ea9557d6ddee17ed5b9d56dcaa2b60355ece662a5f294dca705402002b308a40110f690719f0df2275322957ac4a6ecb52373931786c653e4aa2a
@@ -1,11 +1,18 @@
1
1
  name: CI
2
-
3
2
  on:
4
- push:
5
3
  pull_request:
4
+ push:
5
+ branches-ignore:
6
+ - dependabot/*
7
+ - renovate/*
6
8
  schedule:
7
- - cron: '0 0 * * 0'
8
-
9
+ - cron: 0 0 * * 0
10
+ workflow_dispatch:
11
+ concurrency:
12
+ group: "${{ github.workflow }}-${{ github.ref }}"
13
+ cancel-in-progress: true
14
+ permissions:
15
+ contents: read
9
16
  jobs:
10
17
  ci:
11
18
  runs-on: ubuntu-latest
@@ -20,23 +27,23 @@ jobs:
20
27
  - '7.0'
21
28
  - '7.1'
22
29
  - '7.2'
30
+ - '8.0'
23
31
  exclude:
24
32
  - ruby-version: '3.0'
25
33
  rails-version: '7.2'
34
+ - ruby-version: '3.0'
35
+ rails-version: '8.0'
36
+ - ruby-version: '3.1'
37
+ rails-version: '8.0'
26
38
  env:
27
- TEST_RAILS_VERSION: ${{ matrix.rails-version }}
28
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
39
+ TEST_RAILS_VERSION: "${{ matrix.rails-version }}"
29
40
  steps:
30
- - uses: actions/checkout@v4
41
+ - uses: actions/checkout@v6
31
42
  - name: Set up Ruby
32
43
  uses: ruby/setup-ruby@v1
33
44
  with:
34
- ruby-version: ${{ matrix.ruby-version }}
45
+ ruby-version: "${{ matrix.ruby-version }}"
35
46
  bundler-cache: true
36
47
  timeout-minutes: 30
37
48
  - name: Run tests
38
49
  run: bundle exec rake
39
- - name: Report code coverage
40
- if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.rails-version == '7.0' }}
41
- continue-on-error: true
42
- uses: paambaati/codeclimate-action@v9
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
+ ## [2.1.0] - 20-Jan-2026
10
+ * Support rails 8.0 ([#102](https://github.com/ManageIQ/manageiq-messaging/pull/102))
11
+
12
+ ## [2.0.0] - 17-Jul-2025
13
+ * BREAKING Don't default to Stomp protocol ([#97](https://github.com/ManageIQ/manageiq-messaging/pull/97))
14
+
9
15
  ## [1.5.0] - 30-Sep-2024
10
16
  * Use ruby 3.1 and rails 7 for code coverage ([#92](https://github.com/ManageIQ/manageiq-messaging/pull/92))
11
17
  * Drop end of life rubies and rails and add new versions ([#94](https://github.com/ManageIQ/manageiq-messaging/pull/94))
@@ -94,7 +100,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
94
100
 
95
101
  * Initial release
96
102
 
97
- [Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.3...HEAD
103
+ [Unreleased]: https://github.com/ManageIQ/manageiq-messaging/compare/v2.1.0...HEAD
104
+ [2.1.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v2.0.0...v2.1.0
105
+ [2.0.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.5.0...v2.0.0
106
+ [1.5.0]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.3...v1.5.0
98
107
  [1.4.3]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.2...v1.4.3
99
108
  [1.4.2]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.1...v1.4.2
100
109
  [1.4.1]: https://github.com/ManageIQ/manageiq-messaging/compare/v1.4.0...v1.4.1
data/Gemfile CHANGED
@@ -5,6 +5,8 @@ gemspec
5
5
 
6
6
  minimum_version =
7
7
  case ENV['TEST_RAILS_VERSION']
8
+ when "8.0"
9
+ "~>8.0.4"
8
10
  when "7.2"
9
11
  "~>7.2.1"
10
12
  when "7.1"
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/manageiq-messaging.svg)](http://badge.fury.io/rb/manageiq-messaging)
4
4
  [![CI](https://github.com/ManageIQ/manageiq-messaging/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-messaging/actions/workflows/ci.yaml)
5
- [![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-messaging.svg)](https://codeclimate.com/github/ManageIQ/manageiq-messaging)
6
- [![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-messaging/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-messaging/coverage)
7
5
 
8
6
  Client library for ManageIQ components to exchange messages through its internal message bus.
9
7
 
@@ -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.5.0"
3
+ VERSION = "2.1.0"
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', '>= 7.0.8', "<8.0"
29
+ spec.add_dependency 'activesupport', '>= 7.0.8', "<8.1"
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.5.0
4
+ version: 2.1.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-09-30 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
@@ -19,7 +18,7 @@ dependencies:
19
18
  version: 7.0.8
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
- version: '8.0'
21
+ version: '8.1'
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +28,7 @@ dependencies:
29
28
  version: 7.0.8
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
- version: '8.0'
31
+ version: '8.1'
33
32
  - !ruby/object:Gem::Dependency
34
33
  name: rdkafka
35
34
  requirement: !ruby/object:Gem::Requirement
@@ -130,17 +129,14 @@ 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: []
137
135
  files:
138
- - ".codeclimate.yml"
139
136
  - ".github/workflows/ci.yaml"
140
137
  - ".gitignore"
141
138
  - ".rspec"
142
139
  - ".rubocop.yml"
143
- - ".rubocop_cc.yml"
144
140
  - ".rubocop_local.yml"
145
141
  - ".whitesource"
146
142
  - CHANGELOG.md
@@ -183,7 +179,6 @@ metadata:
183
179
  changelog_uri: https://github.com/ManageIQ/manageiq-messaging/blob/master/CHANGELOG.md
184
180
  source_code_uri: https://github.com/ManageIQ/manageiq-messaging/
185
181
  bug_tracker_uri: https://github.com/ManageIQ/manageiq-messaging/issues
186
- post_install_message:
187
182
  rdoc_options: []
188
183
  require_paths:
189
184
  - lib
@@ -198,8 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
193
  - !ruby/object:Gem::Version
199
194
  version: '0'
200
195
  requirements: []
201
- rubygems_version: 3.4.20
202
- signing_key:
196
+ rubygems_version: 3.6.7
203
197
  specification_version: 4
204
198
  summary: Client library for ManageIQ components to exchange messages through its internal
205
199
  message bus.
data/.codeclimate.yml DELETED
@@ -1,43 +0,0 @@
1
- prepare:
2
- fetch:
3
- - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml
4
- path: ".rubocop_base.yml"
5
- - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml
6
- path: ".rubocop_cc_base.yml"
7
- - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/base.yml
8
- path: styles/base.yml
9
- - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/cc_base.yml
10
- path: styles/cc_base.yml
11
- plugins:
12
- rubocop:
13
- enabled: true
14
- config: ".rubocop_cc.yml"
15
- channel: rubocop-1-56-3
16
- brakeman:
17
- enabled: false
18
- bundler-audit:
19
- enabled: false
20
- csslint:
21
- enabled: false
22
- duplication:
23
- enabled: true
24
- config:
25
- languages:
26
- - ruby
27
- - javascript
28
- eslint:
29
- enabled: false
30
- channel: eslint-3
31
- fixme:
32
- enabled: false
33
- markdownlint:
34
- enabled: false
35
- exclude_patterns:
36
- - ".git/"
37
- - "**.xml"
38
- - "**.yaml"
39
- - "**.yml"
40
- - locale/
41
- - spec/
42
- - tools/
43
- version: '2'
data/.rubocop_cc.yml DELETED
@@ -1,4 +0,0 @@
1
- inherit_from:
2
- - ".rubocop_base.yml"
3
- - ".rubocop_cc_base.yml"
4
- - ".rubocop_local.yml"