solid_log-ui 0.1.0 → 0.2.0

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: ead8787f6f3ddd8c16b1e0cea395ecc05002be6fc3c8307931a2e89bdbdcbc44
4
- data.tar.gz: b5028b8e5f785d2edb1678f76c0db6ab718d0c5e1a0e272413d4bcda55a08a51
3
+ metadata.gz: be225408f280d041373a099b8a84c853b70c4c6b19a2acd329309e8d69e4047b
4
+ data.tar.gz: 94afcfdc410d1aeb9a409433e094d58e5921fb1d10b533c43fa996e34f6f2a61
5
5
  SHA512:
6
- metadata.gz: a3e0f3a3f9a9636b312f12558ca9fc9f001d3ce5738655706c4e9ad73f453c0eb116782aef2c39e4d519a5052ac86b7121fd10e955e7060d90cf9961a0c53f82
7
- data.tar.gz: 7290decb302c621129be634a02132e7c3401e9b6bd4a1a1b0bff204390c78ff8dbd8e8ee710bdfd1e45b9cb6c6cc99a7c2229301d1ec41ae47885113b55aa898
6
+ metadata.gz: e7311b463e1c17a1c08b49d6310a2af66fff87212a6f479241e60531ee474e51d469771b7c81fd762eb52fc45c8e24149f48f1e0d9558fcca6d7271405ec3a06
7
+ data.tar.gz: 32fb42aeb73501410d46a389e4fc8e88228ca34c6d26a6b5d4b2289230ef95feec113e8709d059b22f35b620517ebe898146377fa3dee294075688bd0ffd5632
@@ -81,32 +81,35 @@ module SolidLog
81
81
  def handle_new_entries(entry_ids)
82
82
  return if entry_ids.blank?
83
83
 
84
- Rails.logger.info "[LogStreamChannel] Received broadcast with #{entry_ids.size} entry IDs: #{entry_ids.first(5)}"
85
-
86
- # Fetch entries matching these IDs
87
- entries = SolidLog::Entry.where(id: entry_ids).order(:id)
88
- Rails.logger.info "[LogStreamChannel] Found #{entries.size} entries in database"
89
-
90
- # Filter to only entries matching this client's filters
91
- transmitted_count = 0
92
- entries.each do |entry|
93
- matches = entry_matches_filters?(entry)
94
- Rails.logger.debug "[LogStreamChannel] Entry #{entry.id} matches filters: #{matches}"
95
- next unless matches
96
-
97
- # Render HTML for this specific entry with proper route context
98
- html = SolidLog::UI::BaseController.render(
99
- partial: "solid_log/ui/streams/log_row",
100
- locals: { entry: entry, query: nil },
101
- layout: false
102
- )
103
-
104
- # Transmit to this specific client
105
- transmit({ html: html, entry_id: entry.id })
106
- transmitted_count += 1
107
- end
84
+ # Wrap in without_logging to prevent ActionCable logs from being captured by SolidLog
85
+ SolidLog.without_logging do
86
+ $stderr.puts "[LogStreamChannel] Received broadcast with #{entry_ids.size} entry IDs: #{entry_ids.first(5)}" if ENV['SOLIDLOG_DEBUG']
87
+
88
+ # Fetch entries matching these IDs
89
+ entries = SolidLog::Entry.where(id: entry_ids).order(:id)
90
+ $stderr.puts "[LogStreamChannel] Found #{entries.size} entries in database" if ENV['SOLIDLOG_DEBUG']
91
+
92
+ # Filter to only entries matching this client's filters
93
+ transmitted_count = 0
94
+ entries.each do |entry|
95
+ matches = entry_matches_filters?(entry)
96
+ $stderr.puts "[LogStreamChannel] Entry #{entry.id} matches filters: #{matches}" if ENV['SOLIDLOG_DEBUG']
97
+ next unless matches
98
+
99
+ # Render HTML for this specific entry with proper route context
100
+ html = SolidLog::UI::BaseController.render(
101
+ partial: "solid_log/ui/streams/log_row",
102
+ locals: { entry: entry, query: nil },
103
+ layout: false
104
+ )
105
+
106
+ # Transmit to this specific client
107
+ transmit({ html: html, entry_id: entry.id })
108
+ transmitted_count += 1
109
+ end
108
110
 
109
- Rails.logger.info "[LogStreamChannel] Transmitted #{transmitted_count} entries to client (filter: #{@filter_key})"
111
+ $stderr.puts "[LogStreamChannel] Transmitted #{transmitted_count} entries to client (filter: #{@filter_key})" if ENV['SOLIDLOG_DEBUG']
112
+ end
110
113
  end
111
114
 
112
115
  def entry_matches_filters?(entry)
@@ -1,5 +1,7 @@
1
+ require_relative "../../../../solid_log-core/lib/solid_log/core/version"
2
+
1
3
  module SolidLog
2
4
  module UI
3
- VERSION = "0.1.0"
5
+ VERSION = SolidLog::Core::VERSION
4
6
  end
5
7
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_log-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Loman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-29 00:00:00.000000000 Z
11
+ date: 2026-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solid_log-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
19
+ version: 0.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '5.0'
103
+ version: '6.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '5.0'
110
+ version: '6.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: combustion
113
113
  requirement: !ruby/object:Gem::Requirement