eventhub-processor2 1.27.1 → 1.27.2

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: 902f7f788754624f1f2bb0aaf604cbb40950c0c214e58d0a340d6bd9d2f847a9
4
- data.tar.gz: '092db4a1078ccc754bae694153c20a87e26218a731d88e1b37863d93cb900a4f'
3
+ metadata.gz: 1c00f385100ce56b24b64a527d935dc4820ce5446c41361792d5f00b7345940d
4
+ data.tar.gz: f8d3a05880d7af80858c39b000325ec4e3789551961d941cf0511fd051ec6d58
5
5
  SHA512:
6
- metadata.gz: 8d6993b13c319ad59d1b2a65212cc7c402044117d530d35f2387ca20db038d4cc6ab44b8a84e4a16dd99db3693c2f057203d81e61d6a4c51240068de08dad1c2
7
- data.tar.gz: 1474a5bddd07a229101a2fec20bafb22252437d33f51c6c3ffdf193ba206f2125ff965890d2d450121a7994fa7c879dc2ccc7f721b2a1ce5c98d383f641c4e37
6
+ metadata.gz: d20c763b7e403e2946a83af3cba688ebbd2ef92199332ce7aa2e22e6c3bd9bc8c288fea4dcace16c2a1d504fb2c8d643a6d3eb54ea419bc482d75675155c5c70
7
+ data.tar.gz: fb3830c2b68e056d995b8c33742cdd46f216788094cce20f25d5e176a74f86facdc52c9b2da9eeb7b9561d7b16cce8683187e1eccb14c6d29ed1d0b820195a74
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog of EventHub::Processor2
2
2
 
3
+ # 1.27.2 / 2026-04-08
4
+
5
+ * Fix publish return value leaking Bunny::Exchange object back to callers, causing unintended re-publishing of garbage messages via `handle_payload`
6
+ * Add type guard in `handle_payload` to only re-publish `EventHub::Message` instances
7
+
3
8
  # 1.27.1 / 2026-04-08
4
9
 
5
10
  * Read markdown files (README, CHANGELOG) as UTF-8 to correctly render Unicode characters (e.g. umlauts, accented characters, emojis)
@@ -124,6 +124,7 @@ module EventHub
124
124
  end
125
125
 
126
126
  Array(response_messages).each do |message|
127
+ next unless message.is_a?(EventHub::Message)
127
128
  publish(message: message.to_json, connection: connection)
128
129
  end
129
130
  end
@@ -33,6 +33,7 @@ module EventHub
33
33
  publish_options[:correlation_id] = correlation_id if correlation_id
34
34
 
35
35
  exchange.publish(message, publish_options)
36
+ nil
36
37
  ensure
37
38
  channel&.close
38
39
  end
@@ -1,3 +1,3 @@
1
1
  module EventHub
2
- VERSION = "1.27.1".freeze
2
+ VERSION = "1.27.2".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.27.1
4
+ version: 1.27.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steiner, Thomas