eventhub-processor2 1.24.0 → 1.24.1

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: 10cf5ed148125a7a9e432926e977929b1975621e1b1031d5c50b32a32917163b
4
- data.tar.gz: 5a3fd2b2c7ddd44488bdd0bcc9e1d7fb4460f4a174ffc7199a18f9ba8a912fb3
3
+ metadata.gz: 7a9c03f6720ab3b41421ae137e80736d1c63e732eb2fb8a633b8500269048d30
4
+ data.tar.gz: cf8a8af9693621f3fbf800c331af75a28a0705ed4310b47b0c2a93c5335c5bb2
5
5
  SHA512:
6
- metadata.gz: 9c16c299179894760f031f3ed9db1c08df062da99875d528940c5d1065ef31cdbc044c389c7d4c5e9bed7262738cad055e899d350afb9a6815fd57d919c097c4
7
- data.tar.gz: be8976c6d0600a536a15ab76fe40211115d5666507d6eef006d0cfe62d87645aac41b70d683903edd892558b92b18478689955e22a91443b16523820c02f4c09
6
+ metadata.gz: dbfc6d4d04b81aa95f9478226b337021b7c079ec9edf28ca0a960f02dca124642ca0e092ecd06f70ab70dc43d5584d50271690592ecc8477b8aba7349507ffe1
7
+ data.tar.gz: d7629e80f7cec78d30a1629e35264e9c419f3ebdbbebdba73b3636d201ea407576c43a271c9d6e709f9e9af9b1aa2447de9407733eb34bb777de5ba512a50044
@@ -1,16 +1,21 @@
1
1
  name: cd
2
2
 
3
3
  on:
4
- workflow_dispatch:
4
+ push:
5
+ tags:
6
+ - 'v*'
5
7
 
6
8
  jobs:
7
9
 
8
10
  build:
9
11
  runs-on: ubuntu-latest
12
+ permissions:
13
+ id-token: write # Required for OIDC
14
+ contents: write # Required for pushing tags
10
15
 
11
16
  steps:
12
17
  - name: Checkout current code
13
- uses: actions/checkout@v4
18
+ uses: actions/checkout@v5
14
19
 
15
20
  - name: Set up Ruby
16
21
  uses: ruby/setup-ruby@v1
@@ -19,14 +24,8 @@ jobs:
19
24
  bundler-cache: true
20
25
  cache-version: 1
21
26
 
27
+ - name: Build gem
28
+ run: gem build *.gemspec
29
+
22
30
  - name: Push to Rubygems
23
- env:
24
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
- run: |
26
- git config --global user.email "thomas.steiner@ikey.ch"
27
- git config --global user.name "thomis"
28
- mkdir ~/.gem
29
- echo -e "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}" > ~/.gem/credentials
30
- chmod 600 ~/.gem/credentials
31
- bundle exec rake release
32
- rm ~/.gem/credentials
31
+ uses: rubygems/release-gem@v1
@@ -23,11 +23,11 @@ jobs:
23
23
  strategy:
24
24
  fail-fast: false
25
25
  matrix:
26
- ruby: [ '3.4', '3.3', '3.2', '3.1', '3.0']
26
+ ruby: [ '3.4', '3.3', '3.2']
27
27
 
28
28
  name: Ruby ${{ matrix.ruby }}
29
29
  steps:
30
- - uses: actions/checkout@v4
30
+ - uses: actions/checkout@v5
31
31
 
32
32
  - name: Set up Ruby
33
33
  uses: ruby/setup-ruby@v1
@@ -42,17 +42,6 @@ jobs:
42
42
  cd docker && docker build -t processor-rabbitmq .
43
43
  docker run -d -p 5672:5672 -p 15672:15672 --name processor-rabbitmq processor-rabbitmq
44
44
 
45
- - name: Code Climate setup test reporter
46
- run: |
47
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
48
- chmod +x ./cc-test-reporter
49
- ./cc-test-reporter before-build
50
-
51
45
  - name: Run default task
52
46
  run: |
53
47
  bundle exec rake
54
-
55
- - name: Code Climate publish test coverage
56
- run: |
57
- ./cc-test-reporter after-build
58
- if: github.event_name != 'pull_request'
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.4.4
1
+ ruby 3.4.7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog of EventHub::Processor2
2
2
 
3
+ # 1.24.1 / 2025-11-09
4
+
5
+ * Enable Trusted Publishing
6
+
3
7
  # 1.24.0 / 2025-06-25
4
8
 
5
9
  * Update dependency (base64)
data/README.md CHANGED
@@ -1,6 +1,4 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/eventhub-processor2.svg)](https://badge.fury.io/rb/eventhub-processor2)
2
- [![Maintainability](https://api.codeclimate.com/v1/badges/9112358562f0614e0e02/maintainability)](https://codeclimate.com/github/thomis/eventhub-processor2/maintainability)
3
- [![Test Coverage](https://api.codeclimate.com/v1/badges/9112358562f0614e0e02/test_coverage)](https://codeclimate.com/github/thomis/eventhub-processor2/test_coverage)
4
2
  [![ci](https://github.com/thomis/eventhub-processor2/actions/workflows/ci.yml/badge.svg)](https://github.com/thomis/eventhub-processor2/actions/workflows/ci.yml)
5
3
 
6
4
  # EventHub::Processor2
@@ -20,11 +18,13 @@ Processor2 is using Bunny http://rubybunny.info a feature complete RabbitMQ Clie
20
18
 
21
19
  Currently supported and tested ruby versions are:
22
20
 
23
- - 3.4
24
- - 3.3
25
- - 3.2
26
- - 3.1 (EOL: 2025-03-31)
27
- - 3.0 (EOL: 2024-04-23)
21
+ - 3.4 (EOL 2028-03-31)
22
+ - 3.3 (EOL 2027-03-31)
23
+ - 3.2 (EOL 2026-03-31)
24
+
25
+ Ruby versions not tested anymore:
26
+ - 3.1 (EOL 2025-03-31)
27
+ - 3.0 (EOL 2024-04-23)
28
28
 
29
29
  ## Installation
30
30
 
@@ -246,6 +246,12 @@ Final configuration result
246
246
 
247
247
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
248
248
 
249
+ ## Publishing
250
+
251
+ This project uses [Trusted Publishing](https://guides.rubygems.org/trusted-publishing/) to securely publish gems to RubyGems.org. Trusted Publishing eliminates the need for long-lived API tokens by using OpenID Connect (OIDC) to establish a trusted relationship between GitHub Actions and RubyGems.org.
252
+
253
+ With Trusted Publishing configured, gem releases are automatically published to RubyGems when the release workflow runs, providing a more secure and streamlined publishing process.
254
+
249
255
  ## Contributing
250
256
 
251
257
  Bug reports and pull requests are welcome on GitHub at https://github.com/thomis/eventhub-processor2.
data/example/publisher.rb CHANGED
@@ -30,6 +30,7 @@ module Publisher
30
30
  # Store to track pending files (files not yet confirmed to be sent)
31
31
  class TransactionStore
32
32
  include Celluloid
33
+
33
34
  finalizer :cleanup
34
35
 
35
36
  def initialize
@@ -4,6 +4,7 @@ module EventHub
4
4
  class ActorHeartbeat
5
5
  include Celluloid
6
6
  include Helper
7
+
7
8
  finalizer :cleanup
8
9
 
9
10
  def initialize(processor_instance)
@@ -4,6 +4,7 @@ module EventHub
4
4
  class ActorListenerAmqp
5
5
  include Celluloid
6
6
  include Helper
7
+
7
8
  finalizer :cleanup
8
9
 
9
10
  def initialize(processor_instance)
@@ -5,6 +5,7 @@ module EventHub
5
5
  # Listner Class
6
6
  class ActorListenerHttp
7
7
  include Celluloid
8
+
8
9
  finalizer :cleanup
9
10
 
10
11
  def initialize(args = {})
@@ -4,6 +4,7 @@ module EventHub
4
4
  class ActorPublisher
5
5
  include Celluloid
6
6
  include Helper
7
+
7
8
  finalizer :cleanup
8
9
 
9
10
  def initialize
@@ -4,6 +4,7 @@ module EventHub
4
4
  class ActorWatchdog
5
5
  include Celluloid
6
6
  include Helper
7
+
7
8
  finalizer :cleanup
8
9
 
9
10
  def initialize
@@ -1,3 +1,3 @@
1
1
  module EventHub
2
- VERSION = "1.24.0".freeze
2
+ VERSION = "1.24.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventhub-processor2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steiner, Thomas
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
250
  requirements: []
251
- rubygems_version: 3.6.7
251
+ rubygems_version: 3.6.9
252
252
  specification_version: 4
253
253
  summary: Next generation gem to build ruby based eventhub processor
254
254
  test_files: []