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 +4 -4
- data/{build.sh → build_client.sh} +0 -2
- data/build_gem.sh +4 -0
- data/config/routes.rb +1 -2
- data/lib/debugbar/engine.rb +1 -0
- data/lib/debugbar/subscribers/active_record.rb +3 -20
- data/lib/debugbar/version.rb +1 -1
- data/public/.gitignore +0 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a11b73a9ef8ff90c2be09ed570dde59b7d0e856b958ea6a5ab9c7eab18ff6feb
|
4
|
+
data.tar.gz: 15fd5168d8a6f532842f693c16a7e9c821cbe9c136a459fb58d5e5324eb193ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d7fa957a8453eabd1fabe1aebc4a04ba803f1e94932e6bd4d483fb7af0ca63322aef91e7db43ef087d76aaeae2e5890d5b6565af4a525a2a7c8a4433a5f0e9e
|
7
|
+
data.tar.gz: 26914d0f2bd5e2b0ada5cedd00259dd225ca89e31fc6b93459a3c7bdfcd3f30e7f58d4845385d79e06a60cf3f4da632be35d5eaaa8dfe4b9399ade7676e2c343
|
data/build_gem.sh
ADDED
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
|
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
|
data/lib/debugbar/engine.rb
CHANGED
@@ -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
|
-
|
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,
|
data/lib/debugbar/version.rb
CHANGED
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.
|
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-
|
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
|
-
-
|
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
|