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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d27d82c0937dc9a2ca971fd88759a82cfafc559dc8401983b4204b2d09d13f8
4
- data.tar.gz: b9a9c4e3e202e6abb49b5ff60656bcf3ca24c918fc6c06fb85f10cb247712268
3
+ metadata.gz: '023396ca9b63235df981073be37ba1c02f68584addfd4aea1ce5fd8cc2f26e7a'
4
+ data.tar.gz: 5e18fa015119f4f12b4b88b0b61aded188adf63423f9ab2e2fac143e9cde7200
5
5
  SHA512:
6
- metadata.gz: 6f8063ca1547cf52310b078ed206fe4b58f96b24366796ef0d20c04e990d332cdfde512da0b40e5a99bb21a3e9e7e51e0ece460eb3a064c9e60004c928529ae9
7
- data.tar.gz: 713327fb6e02c53566063b2232ee1aa82770b7784e54b5d852cdde46f5a31a743c9305e2e4a8bdf945267271cbeef3db3991b4a8bb9c688d1c903d5eb8c04d64
6
+ metadata.gz: ebab920034a04aaec3a2e794a00f32b0ba51aa9da5f6d97783e2416c75c78a6f726215da6b99a5c834887fb21a4b9b1257477d80d530753aa50b9a6354afa377
7
+ data.tar.gz: 4793837756dd498294a9cf42b7b3b8aaf263e52f70ff73dfcaca5013452f9c7310964fbd204a4397360b9755439709d470c1ef8fd24681d1e3c32746b058a2d2
data/config/routes.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  Debugbar::Engine.routes.draw do
2
- mount ActionCable.server => '/cable'
2
+ if defined? ActionCable
3
+ mount ActionCable.server => '/cable'
4
+ end
3
5
 
4
6
  get 'poll' => "polling#poll"
5
7
  options 'poll/confirm' => "polling#confirm"
@@ -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 Sprockets::Rails::QuietAssets, Debugbar::QuietRoutes
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
- if Debugbar.connected?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Debugbar
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
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.0
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-02-28 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails