mbeditor 0.4.4 → 0.4.5
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/mbeditor/cable_log_filter.rb +6 -1
- data/lib/mbeditor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75e7d28ba5664e0aeae526a954b2032c040d6ac2f20ed327bef9507a29bc3e21
|
|
4
|
+
data.tar.gz: 34b2ba82856f0fef274049050a55e95a465b9d9bdb7e86e3a2299c30ce0e00c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba333da50a99c900136a52832821b7a2d939f7836b5aa05d2bdaedb259167c3c8a32f7ec3e13e854501c51a7686dd354973b3ff9a299c87af2b0e41cfaa8a649
|
|
7
|
+
data.tar.gz: 9fd083956de7ac0c3443715ba15fe63af069822043ab9e4113b8ab9af4096e5ac582e29d8377cd63f1c681b9fbcca5097dbc7f1d20592f937df6bb208fe91988
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.5] - 2026-04-23
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Suppressed Action Cable websocket request lifecycle noise (`Started/Finished "/cable" [WebSocket] ...`) in development logs via `CableLogFilter`.
|
|
12
|
+
- Added regression coverage to ensure websocket lifecycle request logs stay filtered while regular Action Cable logs continue to pass through.
|
|
13
|
+
|
|
8
14
|
## [0.4.4] - 2026-04-23
|
|
9
15
|
|
|
10
16
|
### Fixed
|
|
@@ -9,6 +9,7 @@ module Mbeditor
|
|
|
9
9
|
# Non-Mbeditor ActionCable messages pass through unchanged.
|
|
10
10
|
class CableLogFilter < SimpleDelegator
|
|
11
11
|
SUPPRESS_PATTERN = /Mbeditor::|mbeditor_editor/
|
|
12
|
+
CABLE_WEBSOCKET_REQUEST_PATTERN = /(?:Started|Finished) "\/cable(?:\/[^\"]*)?" \[WebSocket\]/
|
|
12
13
|
|
|
13
14
|
# Provides no-op tagged logging APIs for plain Ruby formatters.
|
|
14
15
|
class UntaggedFormatter < SimpleDelegator
|
|
@@ -57,12 +58,16 @@ module Mbeditor
|
|
|
57
58
|
%w[debug info warn error fatal unknown].each do |level|
|
|
58
59
|
define_method(level) do |message = nil, &block|
|
|
59
60
|
msg = message.nil? && block ? block.call : message.to_s
|
|
60
|
-
return if
|
|
61
|
+
return if suppress_message?(msg)
|
|
61
62
|
|
|
62
63
|
super(message, &block)
|
|
63
64
|
end
|
|
64
65
|
end
|
|
65
66
|
|
|
67
|
+
def suppress_message?(message)
|
|
68
|
+
message.match?(SUPPRESS_PATTERN) || message.match?(CABLE_WEBSOCKET_REQUEST_PATTERN)
|
|
69
|
+
end
|
|
70
|
+
|
|
66
71
|
# Tagged-logging compat — the block body still passes through the filter.
|
|
67
72
|
def tagged(*tags, &block)
|
|
68
73
|
if __getobj__.respond_to?(:tagged)
|
data/lib/mbeditor/version.rb
CHANGED