eventhub-processor2 1.27.0 → 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: 71103595a699bfa32e3c771073f3b870a5e10bba02a9191585e5bd2369a4fb8b
4
- data.tar.gz: 82045e01a8f8c136ba5413c6a1153093fd441db66704352d58034f371602dbba
3
+ metadata.gz: 1c00f385100ce56b24b64a527d935dc4820ce5446c41361792d5f00b7345940d
4
+ data.tar.gz: f8d3a05880d7af80858c39b000325ec4e3789551961d941cf0511fd051ec6d58
5
5
  SHA512:
6
- metadata.gz: 99f35f36aacf9e25df8c7ecafc8c26dfd41f4dac7e3d486ae904aa8555b6af7b2c60688aab5b68c1cc1285117212c9b7b6e10ef1ce6b38489860bdd21094188e
7
- data.tar.gz: a6011ab9c3345016e4f3b3c35d00685ea64635683f61ff38e7d6a555a8b1edd1993ce8e6be38460be45251d1e371b0810277a9df78d93891d155239aefe5f040
6
+ metadata.gz: d20c763b7e403e2946a83af3cba688ebbd2ef92199332ce7aa2e22e6c3bd9bc8c288fea4dcace16c2a1d504fb2c8d643a6d3eb54ea419bc482d75675155c5c70
7
+ data.tar.gz: fb3830c2b68e056d995b8c33742cdd46f216788094cce20f25d5e176a74f86facdc52c9b2da9eeb7b9561d7b16cce8683187e1eccb14c6d29ed1d0b820195a74
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ # 1.27.1 / 2026-04-08
9
+
10
+ * Read markdown files (README, CHANGELOG) as UTF-8 to correctly render Unicode characters (e.g. umlauts, accented characters, emojis)
11
+
3
12
  # 1.27.0 / 2026-04-01
4
13
 
5
14
  * Adapt to Bunny 3.0 publisher confirms: use `confirm_select(tracking: true)` for automatic backpressure, remove manual `wait_for_confirms` calls
data/README.md CHANGED
@@ -401,6 +401,8 @@ GET {base_path}/docs
401
401
 
402
402
  **Response:** `200 OK` with HTML page
403
403
 
404
+ Markdown files are read as UTF-8, so Unicode characters (umlauts, accented characters, emojis, etc.) are rendered correctly.
405
+
404
406
  By default, looks for `README.md` in the current directory, then `doc/README.md`. You can customize the path via configuration:
405
407
 
406
408
  ```json
@@ -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
@@ -35,7 +35,7 @@ module EventHub
35
35
  def asset(name)
36
36
  path = File.join(ASSETS_PATH, name)
37
37
  return nil unless File.exist?(path)
38
- File.read(path)
38
+ File.read(path, encoding: "utf-8")
39
39
  end
40
40
 
41
41
  private
@@ -63,7 +63,7 @@ module EventHub
63
63
  end
64
64
 
65
65
  if config_path && File.exist?(config_path)
66
- return File.read(config_path)
66
+ return File.read(config_path, encoding: "utf-8")
67
67
  end
68
68
 
69
69
  locations = case type
@@ -75,7 +75,7 @@ module EventHub
75
75
 
76
76
  locations.each do |location|
77
77
  path = File.join(Dir.pwd, location)
78
- return File.read(path) if File.exist?(path)
78
+ return File.read(path, encoding: "utf-8") if File.exist?(path)
79
79
  end
80
80
 
81
81
  "No #{(type == :readme) ? "README" : "CHANGELOG"} available."
@@ -265,7 +265,7 @@ module EventHub
265
265
 
266
266
  def render_layout(title:, content:, content_class: "")
267
267
  template_path = File.join(TEMPLATES_PATH, "layout.erb")
268
- template = File.read(template_path)
268
+ template = File.read(template_path, encoding: "utf-8")
269
269
 
270
270
  processor_name = EventHub::Configuration.name
271
271
  version = processor_version
@@ -1,3 +1,3 @@
1
1
  module EventHub
2
- VERSION = "1.27.0".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.0
4
+ version: 1.27.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steiner, Thomas