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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64e27441c8b73cfd32fa121d310b4998592e379d3e60f064abe60591e54cfbcd
4
- data.tar.gz: b7fb4b63d54f22fdfbcfebed83c5ff63d41d2c14bf753ba9a2bc41e964c47529
3
+ metadata.gz: 75e7d28ba5664e0aeae526a954b2032c040d6ac2f20ed327bef9507a29bc3e21
4
+ data.tar.gz: 34b2ba82856f0fef274049050a55e95a465b9d9bdb7e86e3a2299c30ce0e00c4
5
5
  SHA512:
6
- metadata.gz: 2a9eb8bf88a3696639fcb28e59ac4593a2bf9b8b35b203a9cdc7d27ef2f4d5a7266062211813713d3f0af0b4ba14c9051090ebbe46732b5bee78f03b4d28723f
7
- data.tar.gz: 8e17f8d267928862f9c26fd8395168b67fc6942a3612facfc6d815cfcffb9bbfeb370ee5ef4b4d8205fa1593e909fd88fdd63c44f7c9b804788e76e224fcfa65
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 msg.match?(SUPPRESS_PATTERN)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mbeditor
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Noonan