debugbar 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/debugbar/assets_controller.rb +1 -1
- data/build.sh +7 -0
- data/debugbar.gemspec +9 -2
- data/lib/debugbar/engine.rb +0 -8
- data/lib/debugbar/version.rb +1 -1
- data/lib/debugbar.rb +0 -7
- data/{client/dist/assets/debugbar-u5mP-5-z.js → public/debugbar.js} +10 -10
- metadata +3 -55
- data/.prettierrc +0 -6
- data/client/.gitignore +0 -25
- data/client/README.md +0 -0
- data/client/dist/.vite/manifest.json +0 -14
- data/client/dist/assets/ruby-logo-kn_8RniZ.svg +0 -946
- data/client/index.html +0 -78
- data/client/package-lock.json +0 -2393
- data/client/package.json +0 -32
- data/client/postcss.config.js +0 -6
- data/client/src/App.vue +0 -17
- data/client/src/AppDemo.vue +0 -29
- data/client/src/AppDev.vue +0 -20
- data/client/src/Debugbar.vue +0 -276
- data/client/src/assets/rails-logo.svg +0 -1
- data/client/src/assets/ruby-logo.svg +0 -946
- data/client/src/components/TabButton.vue +0 -32
- data/client/src/components/panels/CachePanel.vue +0 -41
- data/client/src/components/panels/JobsPanel.vue +0 -52
- data/client/src/components/panels/JsonPanel.vue +0 -15
- data/client/src/components/panels/LogsPanel.vue +0 -43
- data/client/src/components/panels/MessagesPanel.vue +0 -25
- data/client/src/components/panels/ModelsPanel.vue +0 -37
- data/client/src/components/panels/Panel.vue +0 -7
- data/client/src/components/panels/RequestPanel.vue +0 -98
- data/client/src/components/queries/QueriesPanel.vue +0 -17
- data/client/src/components/queries/QueryItem.vue +0 -65
- data/client/src/components/ui/Foldable.vue +0 -39
- data/client/src/components/ui/KeyValueTable.vue +0 -16
- data/client/src/components/ui/Row.vue +0 -14
- data/client/src/components/ui/logo-ruby.vue +0 -547
- data/client/src/demo.ts +0 -17
- data/client/src/dev.ts +0 -20
- data/client/src/main.ts +0 -17
- data/client/src/models/Config.ts +0 -27
- data/client/src/models/Request.ts +0 -183
- data/client/src/stores/RequestsStore.ts +0 -36
- data/client/src/stores/configStore.ts +0 -8
- data/client/src/style.css +0 -23
- data/client/src/types.d.ts +0 -9
- data/client/src/vite-env.d.ts +0 -1
- data/client/tailwind.config.js +0 -16
- data/client/tsconfig.json +0 -29
- data/client/tsconfig.node.json +0 -10
- data/client/vite.config.ts +0 -44
- data/fixtures/requests/1706607114--demo_post_list.json +0 -499
- data/fixtures/requests/1706607120--api_jobs.json +0 -176
- data/fixtures/requests/1706607123--api_jobs.json +0 -119
- data/fixtures/requests/1706607133--demo_slow_page.json +0 -130
- data/fixtures/requests/1706607136--demo_post.json +0 -164
- data/fixtures/requests/1706607136--demo_random_post.json +0 -106
- data/fixtures/requests/1706607141--api_errors.json +0 -73
- data/package-lock.json +0 -50
- data/package.json +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31f1df6612f12e5a7ca4f5fd00021a18f8a2ebb5e0b9e5b8e434878ec41e8735
|
4
|
+
data.tar.gz: a486e63f60ebb6804d0568cd88e4dcf28badf6cb8302dffa468529b0d3e281ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1cd002725aa26c6950b540a7e8ba1d54c4637c20902b5d7c860992b4ac4d2d8f1784069db94159eac419b0812112a0e92b1a685fbcab393e89490bf08c34be5
|
7
|
+
data.tar.gz: aa1335481e32baec601e745953ea5f7a88618e4477f866b1e5209fe51ae5d6b274b2b612be95d13393b21e4bb54134d94d1a47c94a2c04f503aa120e1d0f0fda
|
data/build.sh
ADDED
data/debugbar.gemspec
CHANGED
@@ -20,12 +20,19 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
files_to_remove = %w[
|
24
|
+
bin/ test/ spec/ features/ fixtures/
|
25
|
+
client/
|
26
|
+
.git .circleci appveyor Gemfile package.json package-lock.json .prettierrc
|
27
|
+
]
|
28
|
+
|
23
29
|
spec.files = Dir.chdir(__dir__) do
|
24
30
|
`git ls-files -z`.split("\x0").reject do |f|
|
25
31
|
(File.expand_path(f) == __FILE__) ||
|
26
|
-
f.start_with?(
|
32
|
+
f.start_with?(*files_to_remove)
|
27
33
|
end
|
28
|
-
end
|
34
|
+
end.push("public/debugbar.js")
|
35
|
+
|
29
36
|
spec.bindir = "exe"
|
30
37
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
38
|
spec.require_paths = ["lib"]
|
data/lib/debugbar/engine.rb
CHANGED
@@ -34,14 +34,6 @@ module Debugbar
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
initializer 'debugbar.assets' do
|
38
|
-
dist = File.join(Gem.loaded_specs['debugbar'].full_gem_path, 'client', 'dist')
|
39
|
-
manifest_file = File.join(dist, '.vite', 'manifest.json')
|
40
|
-
manifest = JSON.parse(File.read(manifest_file))
|
41
|
-
|
42
|
-
Debugbar.js_file = File.join(dist, manifest['src/main.ts']['file'])
|
43
|
-
end
|
44
|
-
|
45
37
|
initializer 'debugbar.inject_middlewares' do |app|
|
46
38
|
next unless Debugbar.config.enabled?
|
47
39
|
app.middleware.insert_after ActionDispatch::RequestId, Debugbar::TrackCurrentRequest
|
data/lib/debugbar/version.rb
CHANGED