rails-profiler 0.47.0 → 0.47.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: 4534b3dd777b1379a70f6bd6f0eb770dae0f3ad8e84e5a251063259ddcfd7d08
4
- data.tar.gz: bda18dfec9a07bf1341f0317edce91f7d0b076c42de43203a2a04ad354af17f6
3
+ metadata.gz: eb8c3d51a66472ade2bc6532c91b8d184a034b39d10e50ce038493ebba71b479
4
+ data.tar.gz: 1f4cc3bedde076969b4b48b6d57165d668008d5a7cb9df8e2cc8b887e1ed10f3
5
5
  SHA512:
6
- metadata.gz: 5db82256a78d4caac6d74fad99cb94a3773b25b4d2a2b8c4dafd4a279cd02437e0fae119a2fb8f33a5bc214e425682f7cdc27dd60daa347dfb08334579726be2
7
- data.tar.gz: ffcddd382edbccc0f7090fc2d9bd38d9dae60f20e0ecdb0fb78d5a03429bda11e96498833bf0312a8c61b1c303fd2c6b7265bd94724dfa4be5f940665e3a1017
6
+ metadata.gz: 1b9128397cf2724988252473e74755cf39b73a15612d77d30e7331f2dfd075730be879f79083194d46c96f07b946719c6fb77b2091f2211f9276a1fded2d0d08
7
+ data.tar.gz: c7d14e12d04c9e77e13b52274fe937e6eeea6a1cf2f1460168c7ab3aa46c4ebf98684b93dc0e676c18068a87f160566c8484aba414ad96969cbda30e7e11b956
data/CHANGELOG.md CHANGED
@@ -19,6 +19,22 @@ every commit of every tag interval is accounted for one way or the other.
19
19
 
20
20
  ## [Unreleased]
21
21
 
22
+ ## [0.47.2] - 2026-11-08
23
+
24
+ <!-- stamped -->
25
+
26
+ ### Fixed
27
+
28
+ - The Firefox extension could not show the dashboard in its DevTools panel: the default `config.frame_ancestors` named `chrome-extension:` and `devtools:` but not `moz-extension:`, the scheme of a Firefox extension page, so Firefox refused the iframe. The default is now `["'self'", "chrome-extension:", "moz-extension:", "devtools:"]`. An app that sets `config.frame_ancestors` itself keeps its own list and must add `"moz-extension:"` to it.
29
+
30
+ ## [0.47.1] - 2026-11-07
31
+
32
+ <!-- stamped -->
33
+
34
+ ### Fixed
35
+
36
+ - The live event stream (`GET /_profiler/api/stream`) reached the client only when it ended, 5 minutes later, on Rails 7: `Rack::ETag` read the whole body to digest it. The response now carries a `Last-Modified`, which tells it to leave the stream alone, so the events arrive as they happen on every Rails version.
37
+
22
38
  ## [0.47.0] - 2026-11-07
23
39
 
24
40
  <!-- stamped -->
@@ -27,8 +27,12 @@ module Profiler
27
27
 
28
28
  begin
29
29
  response.headers["Content-Type"] = "text/event-stream"
30
- response.headers["Cache-Control"] = "no-cache"
30
+ response.headers["Cache-Control"] = "no-cache, no-store"
31
31
  response.headers["X-Accel-Buffering"] = "no"
32
+ # Rack::ETag reads a body that answers to_ary whole to digest it, unless the response already
33
+ # carries an ETag or a Last-Modified: on Rails 7 that would hold the stream back until it
34
+ # ends. A stream has neither a digest nor a date worth anything, this only says so.
35
+ response.headers["Last-Modified"] = Time.now.httpdate
32
36
  self.response_body = Profiler::Live::EventStream.new(
33
37
  storage: Profiler.storage, tokens: tokens, lease: lease, cursors: cursors
34
38
  )
@@ -110,10 +110,11 @@ module Profiler
110
110
  @extension_cors_enabled = false
111
111
  @cors_allowed_origins = []
112
112
  @api_forgery_protection = true
113
- # The Chrome extension shows the profiler in a DevTools panel: an iframe inside a
114
- # chrome-extension:// page, itself inside the devtools://devtools front end. Chrome
115
- # checks frame-ancestors against every ancestor, so both schemes are needed.
116
- @frame_ancestors = ["'self'", "chrome-extension:", "devtools:"]
113
+ # The browser extension shows the profiler in a DevTools panel: an iframe inside a
114
+ # chrome-extension:// page (moz-extension:// on Firefox), itself inside the devtools://
115
+ # front end. Chrome checks frame-ancestors against every ancestor, so both schemes are
116
+ # needed there. On Firefox, a moz-extension: parent was enough in a test.
117
+ @frame_ancestors = ["'self'", "chrome-extension:", "moz-extension:", "devtools:"]
117
118
  @track_ajax = true
118
119
  @ajax_skip_paths = [/^\/_profiler/]
119
120
  @track_http = true
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Profiler
4
- VERSION = "0.47.0"
4
+ VERSION = "0.47.2"
5
5
 
6
6
  GEM_ROOT = File.expand_path("../..", __dir__)
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.47.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Duplessy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-07 00:00:00.000000000 Z
11
+ date: 2026-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails