debugbar 0.2.1 → 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: f81dfe96cf7e377e64afafc691615d6b1190da2b71a89c02b2a381816458c0b5
4
- data.tar.gz: dfe249da8d79a9f5a0c4075c40ad3817d65b0854a91882c7d43eaf54dccdf142
3
+ metadata.gz: '023396ca9b63235df981073be37ba1c02f68584addfd4aea1ce5fd8cc2f26e7a'
4
+ data.tar.gz: 5e18fa015119f4f12b4b88b0b61aded188adf63423f9ab2e2fac143e9cde7200
5
5
  SHA512:
6
- metadata.gz: 3ac4fa1480f2f573f3002b17c1c7656978f0dde5ffd44ba349221599287655f36a2b1af3e31060c1e51dedf63c2630e5d75e0aeb2ded9cb98122f07d8e285ace
7
- data.tar.gz: 3cf593ce79357db2e63e19be37f757c4184458ffafe3462c3f200d43984e6902b1ead3977494ed3dfb4fb1fc046fa680736a24dbcc28aae2f13f39e4c629f06e
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"
@@ -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.1"
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.1
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-03-01 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