eventhub-processor2 1.27.0 → 1.27.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: 71103595a699bfa32e3c771073f3b870a5e10bba02a9191585e5bd2369a4fb8b
4
- data.tar.gz: 82045e01a8f8c136ba5413c6a1153093fd441db66704352d58034f371602dbba
3
+ metadata.gz: 902f7f788754624f1f2bb0aaf604cbb40950c0c214e58d0a340d6bd9d2f847a9
4
+ data.tar.gz: '092db4a1078ccc754bae694153c20a87e26218a731d88e1b37863d93cb900a4f'
5
5
  SHA512:
6
- metadata.gz: 99f35f36aacf9e25df8c7ecafc8c26dfd41f4dac7e3d486ae904aa8555b6af7b2c60688aab5b68c1cc1285117212c9b7b6e10ef1ce6b38489860bdd21094188e
7
- data.tar.gz: a6011ab9c3345016e4f3b3c35d00685ea64635683f61ff38e7d6a555a8b1edd1993ce8e6be38460be45251d1e371b0810277a9df78d93891d155239aefe5f040
6
+ metadata.gz: 8d6993b13c319ad59d1b2a65212cc7c402044117d530d35f2387ca20db038d4cc6ab44b8a84e4a16dd99db3693c2f057203d81e61d6a4c51240068de08dad1c2
7
+ data.tar.gz: 1474a5bddd07a229101a2fec20bafb22252437d33f51c6c3ffdf193ba206f2125ff965890d2d450121a7994fa7c879dc2ccc7f721b2a1ce5c98d383f641c4e37
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog of EventHub::Processor2
2
2
 
3
+ # 1.27.1 / 2026-04-08
4
+
5
+ * Read markdown files (README, CHANGELOG) as UTF-8 to correctly render Unicode characters (e.g. umlauts, accented characters, emojis)
6
+
3
7
  # 1.27.0 / 2026-04-01
4
8
 
5
9
  * 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
@@ -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.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.27.0
4
+ version: 1.27.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steiner, Thomas