rack-mini-profiler 3.1.1 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bced31d81d2044a03b4c98ccd43359253866115a7cdec13897155df6df2cf58b
4
- data.tar.gz: ef8fe2fa2f9ab20c6d8d2fe9138e693ce9891ad40d4af37d7e4cad86b1edc233
3
+ metadata.gz: 5de3dd35de6bde41ce48f018dfacf85384d2ef7bfbaa8c224f066c633bcdc3a1
4
+ data.tar.gz: f733fd6d06cd072e42a2785c9303384c7e2dba96040f6c3a36357c29a4e4fff6
5
5
  SHA512:
6
- metadata.gz: e8d03dadee75d6e1bccff74b9b8359fdc6b4c574652874b0f6c70e873c8ce7c131a25114051f5001bc906add142c4660786b7d8efff2242702b9b4327fdce6b6
7
- data.tar.gz: 5399488dbf48cb7c270a8095f3555965015eccf2abb0aeeeb2190dec604a4748e7ad43ea5ca3d295d8238e4369fbdc95a6322661e6b5274dc665e2ad6ed9298e
6
+ metadata.gz: 703241aecdf35b03431554b17351b235423aaa64a4261c3f21a6e6daf98881c3e04d4ed80fe609dc5fcacc3db51837ae44c423cb4c2565d506f124ab7d4a85d6
7
+ data.tar.gz: 54128f96e4b6f423ed427b3715498151aed37eff65948268527700ad75cace6744a696dd87379ab7919496b501f6621d8bcb545c48e073e3b2261c02b3e3835a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 3.2.1 - 2023-12-07
4
+ - [FIX] memory_profiler was broken due to an undefined local [#597](https://github.com/MiniProfiler/rack-mini-profiler/pull/597)
5
+
6
+ ## 3.2.0 - 2023-12-06
7
+ - [BREAKING CHANGE] Ruby version 2.7.0 or later is required.
8
+ - [FEATURE] All RMP actions can be chosen by including a X-Rack-Mini-Profiler header as well as by query parameter. [#578](https://github.com/MiniProfiler/rack-mini-profiler/pull/578)
9
+ - [FEATURE] Speedscope 1.12 -> 1.16
10
+ - [FIX] If patch_rails is false, do not patch mysql2 or pg [#583](https://github.com/MiniProfiler/rack-mini-profiler/pull/583)
11
+ - [FIX] vertical position bottom now aligns the detail window correctly [#581](https://github.com/MiniProfiler/rack-mini-profiler/pull/581)
12
+ - [FIX] Webpacker hiccup in some setups [#582](https://github.com/MiniProfiler/rack-mini-profiler/pull/582)
13
+ - [INTERNAL] Capture rows instantiated by ActiveRecord, UI to be added later [#585](https://github.com/MiniProfiler/rack-mini-profiler/pull/585)
14
+ - [INTERNAL] Lots of refactoring.
15
+
16
+
3
17
  ## 3.1.1 - 2023-08-01
4
18
 
5
19
  - [FIX] Include configured base path in speedscope iframe URL [#587](https://github.com/MiniProfiler/rack-mini-profiler/pull/587)
data/README.md CHANGED
@@ -178,7 +178,7 @@ export RACK_MINI_PROFILER_PATCH_NET_HTTP="false"
178
178
 
179
179
  To generate [flamegraphs](http://samsaffron.com/archive/2013/03/19/flame-graphs-in-ruby-miniprofiler), add the [**stackprof**](https://rubygems.org/gems/stackprof) gem to your Gemfile.
180
180
 
181
- Then, to view the flamegraph as a direct HTML response from your request, just visit any page in your app with `?pp=flamegraph` appended to the URL.
181
+ Then, to view the flamegraph as a direct HTML response from your request, just visit any page in your app with `?pp=flamegraph` appended to the URL, or add the header `X-Rack-Mini-Profiler` to the request with the value `flamegraph`.
182
182
 
183
183
  Conversely, if you want your regular response instead (which is specially useful for JSON and/or XHR requests), just append the `?pp=async-flamegraph` parameter to your request/fetch URL; the request will then return as normal, and the flamegraph data will be stored for later *async* viewing, both for this request and for all subsequent requests made by this page (based on the `REFERER` header). For viewing these async flamegraphs, use the 'flamegraph' link that will appear inside the MiniProfiler UI for these requests.
184
184
 
data/lib/html/includes.js CHANGED
@@ -401,9 +401,10 @@ var _MiniProfiler = (function() {
401
401
  var px = button.offsetTop - 1,
402
402
  // position next to the button we clicked
403
403
  windowHeight = window.innerHeight,
404
- maxHeight = windowHeight - px - 40; // make sure the popup doesn't extend below the fold
404
+ maxHeight = windowHeight - px - 40, // make sure the popup doesn't extend below the fold
405
+ pxVertical = options.renderVerticalPosition === 'bottom' ? button.offsetParent.clientHeight - 21 - px : px;
405
406
 
406
- popup.style[options.renderVerticalPosition] = "".concat(px, "px");
407
+ popup.style[options.renderVerticalPosition] = "".concat(pxVertical, "px");
407
408
  popup.style.maxHeight = "".concat(maxHeight, "px");
408
409
  popup.style[options.renderHorizontalPosition] = "".concat(
409
410
  button.offsetWidth - 3,