debugbar 0.1.2 → 0.1.4

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: 31f1df6612f12e5a7ca4f5fd00021a18f8a2ebb5e0b9e5b8e434878ec41e8735
4
- data.tar.gz: a486e63f60ebb6804d0568cd88e4dcf28badf6cb8302dffa468529b0d3e281ba
3
+ metadata.gz: a11b73a9ef8ff90c2be09ed570dde59b7d0e856b958ea6a5ab9c7eab18ff6feb
4
+ data.tar.gz: 15fd5168d8a6f532842f693c16a7e9c821cbe9c136a459fb58d5e5324eb193ec
5
5
  SHA512:
6
- metadata.gz: f1cd002725aa26c6950b540a7e8ba1d54c4637c20902b5d7c860992b4ac4d2d8f1784069db94159eac419b0812112a0e92b1a685fbcab393e89490bf08c34be5
7
- data.tar.gz: aa1335481e32baec601e745953ea5f7a88618e4477f866b1e5209fe51ae5d6b274b2b612be95d13393b21e4bb54134d94d1a47c94a2c04f503aa120e1d0f0fda
6
+ metadata.gz: 0d7fa957a8453eabd1fabe1aebc4a04ba803f1e94932e6bd4d483fb7af0ca63322aef91e7db43ef087d76aaeae2e5890d5b6565af4a525a2a7c8a4433a5f0e9e
7
+ data.tar.gz: 26914d0f2bd5e2b0ada5cedd00259dd225ca89e31fc6b93459a3c7bdfcd3f30e7f58d4845385d79e06a60cf3f4da632be35d5eaaa8dfe4b9399ade7676e2c343
@@ -3,5 +3,3 @@
3
3
  rm -rf client/dist
4
4
  (cd client && npm run build)
5
5
  cp client/dist/assets/debugbar-*.js public/debugbar.js
6
-
7
- gem build debugbar.gemspec
data/build_gem.sh ADDED
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ source build_client.sh
4
+ gem build debugbar.gemspec
data/config/routes.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  Debugbar::Engine.routes.draw do
2
2
  mount ActionCable.server => '/cable'
3
3
 
4
- # TODO: Silence logs for these routes if `::Rails.application.config.assets.quiet` is true
5
- get 'assets/style' => "assets#css", format: :css
4
+ # TODO: Silence logs for this route if `::Rails.application.config.assets.quiet` is true
6
5
  get 'assets/script' => "assets#js"
7
6
  end
@@ -1,5 +1,6 @@
1
1
  require_relative 'config'
2
2
  require_relative 'middlewares/track_current_request'
3
+ require_relative '../../app/helpers/debugbar/tag_helpers'
3
4
 
4
5
  module Debugbar
5
6
  class Engine < ::Rails::Engine
@@ -22,26 +22,9 @@ module Debugbar
22
22
  sql = payload[:sql]&.gsub(/\/\*.*\*\//, "") # remove comments
23
23
 
24
24
  binds = nil
25
- if payload[:binds]&.any?
26
- casted_params = type_casted_binds(payload[:type_casted_binds])
27
-
28
- binds = []
29
- payload[:binds].each_with_index do |attr, i|
30
- attribute_name = if attr.respond_to?(:name)
31
- attr.name
32
- elsif attr.respond_to?(:[]) && attr[i].respond_to?(:name)
33
- attr[i].name
34
- else
35
- nil
36
- end
37
-
38
- filtered_params = filter(attribute_name, casted_params[i])
39
-
40
- binds << render_bind(attr, filtered_params)
41
- end
42
- binds = binds.inspect
43
- binds.prepend(" ")
44
- end
25
+ # if payload[:binds]&.any?
26
+ # TODO: Restore binds when I can figure out how to get something in poayload[:binds]
27
+ # end
45
28
 
46
29
  Debugbar::Tracker.add_query({
47
30
  id: event.transaction_id,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Debugbar
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  end
data/public/.gitignore ADDED
File without changes
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.1.2
4
+ version: 0.1.4
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-13 00:00:00.000000000 Z
11
+ date: 2024-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -54,7 +54,8 @@ files:
54
54
  - app/controllers/debugbar/assets_controller.rb
55
55
  - app/helpers/debugbar/tag_helpers.rb
56
56
  - app/models/debugbar/application_record.rb
57
- - build.sh
57
+ - build_client.sh
58
+ - build_gem.sh
58
59
  - config/routes.rb
59
60
  - debugbar.gemspec
60
61
  - lib/debugbar.rb
@@ -72,6 +73,7 @@ files:
72
73
  - lib/debugbar/subscribers/active_record.rb
73
74
  - lib/debugbar/subscribers/active_support.rb
74
75
  - lib/debugbar/version.rb
76
+ - public/.gitignore
75
77
  - public/debugbar.js
76
78
  - sig/debugbar.rbs
77
79
  homepage: https://debugbar.dev