debugbar 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/routes.rb +3 -1
- data/lib/debugbar/engine.rb +1 -1
- data/lib/debugbar/middlewares/track_current_request.rb +2 -1
- data/lib/debugbar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '023396ca9b63235df981073be37ba1c02f68584addfd4aea1ce5fd8cc2f26e7a'
|
4
|
+
data.tar.gz: 5e18fa015119f4f12b4b88b0b61aded188adf63423f9ab2e2fac143e9cde7200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebab920034a04aaec3a2e794a00f32b0ba51aa9da5f6d97783e2416c75c78a6f726215da6b99a5c834887fb21a4b9b1257477d80d530753aa50b9a6354afa377
|
7
|
+
data.tar.gz: 4793837756dd498294a9cf42b7b3b8aaf263e52f70ff73dfcaca5013452f9c7310964fbd204a4397360b9755439709d470c1ef8fd24681d1e3c32746b058a2d2
|
data/config/routes.rb
CHANGED
data/lib/debugbar/engine.rb
CHANGED
@@ -39,7 +39,7 @@ module Debugbar
|
|
39
39
|
initializer 'debugbar.inject_middlewares' do |app|
|
40
40
|
next unless Debugbar.config.enabled?
|
41
41
|
app.middleware.insert_after ActionDispatch::Executor, Debugbar::TrackCurrentRequest
|
42
|
-
app.middleware.insert_after
|
42
|
+
app.middleware.insert_after Debugbar::TrackCurrentRequest, Debugbar::QuietRoutes
|
43
43
|
end
|
44
44
|
|
45
45
|
initializer 'debugbar.subscribe' do
|
@@ -25,7 +25,8 @@ module Debugbar
|
|
25
25
|
|
26
26
|
RequestBuffer.push(Debugbar::Current.pop_request!)
|
27
27
|
|
28
|
-
|
28
|
+
# TODO: Refactor has not having ActionCable might more common than I thought
|
29
|
+
if Debugbar.connected? && defined?(ActionCable)
|
29
30
|
data = RequestBuffer.all.map(&:to_h)
|
30
31
|
ActionCable.server.broadcast("debugbar_channel", data)
|
31
32
|
end
|
data/lib/debugbar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debugbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Bourdeau
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|