debugbar 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/debugbar/assets_controller.rb +1 -1
  3. data/build.sh +7 -0
  4. data/debugbar.gemspec +6 -1
  5. data/lib/debugbar/engine.rb +0 -8
  6. data/lib/debugbar/version.rb +1 -1
  7. data/lib/debugbar.rb +0 -7
  8. metadata +2 -54
  9. data/client/.gitignore +0 -25
  10. data/client/README.md +0 -0
  11. data/client/dist/.vite/manifest.json +0 -14
  12. data/client/dist/assets/debugbar-u5mP-5-z.js +0 -34
  13. data/client/dist/assets/ruby-logo-kn_8RniZ.svg +0 -946
  14. data/client/index.html +0 -78
  15. data/client/package-lock.json +0 -2393
  16. data/client/package.json +0 -32
  17. data/client/postcss.config.js +0 -6
  18. data/client/src/App.vue +0 -17
  19. data/client/src/AppDemo.vue +0 -29
  20. data/client/src/AppDev.vue +0 -20
  21. data/client/src/Debugbar.vue +0 -276
  22. data/client/src/assets/rails-logo.svg +0 -1
  23. data/client/src/assets/ruby-logo.svg +0 -946
  24. data/client/src/components/TabButton.vue +0 -32
  25. data/client/src/components/panels/CachePanel.vue +0 -41
  26. data/client/src/components/panels/JobsPanel.vue +0 -52
  27. data/client/src/components/panels/JsonPanel.vue +0 -15
  28. data/client/src/components/panels/LogsPanel.vue +0 -43
  29. data/client/src/components/panels/MessagesPanel.vue +0 -25
  30. data/client/src/components/panels/ModelsPanel.vue +0 -37
  31. data/client/src/components/panels/Panel.vue +0 -7
  32. data/client/src/components/panels/RequestPanel.vue +0 -98
  33. data/client/src/components/queries/QueriesPanel.vue +0 -17
  34. data/client/src/components/queries/QueryItem.vue +0 -65
  35. data/client/src/components/ui/Foldable.vue +0 -39
  36. data/client/src/components/ui/KeyValueTable.vue +0 -16
  37. data/client/src/components/ui/Row.vue +0 -14
  38. data/client/src/components/ui/logo-ruby.vue +0 -547
  39. data/client/src/demo.ts +0 -17
  40. data/client/src/dev.ts +0 -20
  41. data/client/src/main.ts +0 -17
  42. data/client/src/models/Config.ts +0 -27
  43. data/client/src/models/Request.ts +0 -183
  44. data/client/src/stores/RequestsStore.ts +0 -36
  45. data/client/src/stores/configStore.ts +0 -8
  46. data/client/src/style.css +0 -23
  47. data/client/src/types.d.ts +0 -9
  48. data/client/src/vite-env.d.ts +0 -1
  49. data/client/tailwind.config.js +0 -16
  50. data/client/tsconfig.json +0 -29
  51. data/client/tsconfig.node.json +0 -10
  52. data/client/vite.config.ts +0 -44
  53. data/fixtures/requests/1706607114--demo_post_list.json +0 -499
  54. data/fixtures/requests/1706607120--api_jobs.json +0 -176
  55. data/fixtures/requests/1706607123--api_jobs.json +0 -119
  56. data/fixtures/requests/1706607133--demo_slow_page.json +0 -130
  57. data/fixtures/requests/1706607136--demo_post.json +0 -164
  58. data/fixtures/requests/1706607136--demo_random_post.json +0 -106
  59. data/fixtures/requests/1706607141--api_errors.json +0 -73
  60. data/package-lock.json +0 -50
  61. data/package.json +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce9e037dfdc60939b85dc13fa9f4361cbbb8de8c7269461fecc722eb9e84ac12
4
- data.tar.gz: e7c609a43130829a4cbdc35b9b2735c3ed4da5430085036b96892860a7647641
3
+ metadata.gz: 5380fa3760a1309aacd1404c077e3e6c78ed94d21bde373eb0f96f90da96abe6
4
+ data.tar.gz: 7e9f86653a25e202c9ebf4c64b8d74f5816aaadbee1f2e2d75b46423fa17a8dd
5
5
  SHA512:
6
- metadata.gz: 7c523067bb97bef7778d79b1f2aa31fc5ef3cbed4f632f21113fdb18edfe27b156633d9ca25943d5d387814c442e7c1c38b963fb85428fd852b57bb6f5a139e3
7
- data.tar.gz: ffed0ea44e41025455732edde026d1319fe30b0c4b5603dc4c019171105f53419ca623f0629d0f08ee3125cf14256ef7a9ff77147b35dff00dc51bba3a4f4819
6
+ metadata.gz: '08f084f414d3520d4f7f287b3ffcde2a1a322b7bc04492bcf80ca0087b7fe1a853db6dac041bafceaa352944d8c09ed8d12ecf47bfa30cbc03643f29e2573179'
7
+ data.tar.gz: 2836203deb352f9d344d8784423b801d6ca6ff26e7e48adaec4ea58b142434999ef145f32207de68ba80cf499dba137e8f41d507d97bb9f025d84084a205ac65
@@ -1,7 +1,7 @@
1
1
  module Debugbar
2
2
  class AssetsController < ApplicationController
3
3
  def js
4
- render file: Debugbar.js_file,
4
+ render file: File.join(Gem.loaded_specs['debugbar'].full_gem_path, 'public', 'debugbar.js'),
5
5
  layout: false,
6
6
  content_type: 'text/javascript'
7
7
  end
data/build.sh ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ rm -rf client/dist
4
+ (cd client && npm run build)
5
+ cp client/dist/assets/debugbar-*.js public/debugbar.js
6
+
7
+ gem build debugbar.gemspec
data/debugbar.gemspec CHANGED
@@ -20,10 +20,15 @@ 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
27
+ ]
23
28
  spec.files = Dir.chdir(__dir__) do
24
29
  `git ls-files -z`.split("\x0").reject do |f|
25
30
  (File.expand_path(f) == __FILE__) ||
26
- f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
31
+ f.start_with?(*files_to_remove)
27
32
  end
28
33
  end
29
34
  spec.bindir = "exe"
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Debugbar
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/debugbar.rb CHANGED
@@ -73,13 +73,6 @@ module Debugbar
73
73
  @connected
74
74
  end
75
75
 
76
- def js_file=(js_file)
77
- @js_file = js_file
78
- end
79
- def js_file
80
- @js_file
81
- end
82
-
83
76
  def msg(msg, *extra)
84
77
  Tracker.msg(msg, *extra)
85
78
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debugbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Bourdeau
@@ -55,59 +55,9 @@ files:
55
55
  - app/controllers/debugbar/assets_controller.rb
56
56
  - app/helpers/debugbar/tag_helpers.rb
57
57
  - app/models/debugbar/application_record.rb
58
- - client/.gitignore
59
- - client/README.md
60
- - client/dist/.vite/manifest.json
61
- - client/dist/assets/debugbar-u5mP-5-z.js
62
- - client/dist/assets/ruby-logo-kn_8RniZ.svg
63
- - client/index.html
64
- - client/package-lock.json
65
- - client/package.json
66
- - client/postcss.config.js
67
- - client/src/App.vue
68
- - client/src/AppDemo.vue
69
- - client/src/AppDev.vue
70
- - client/src/Debugbar.vue
71
- - client/src/assets/rails-logo.svg
72
- - client/src/assets/ruby-logo.svg
73
- - client/src/components/TabButton.vue
74
- - client/src/components/panels/CachePanel.vue
75
- - client/src/components/panels/JobsPanel.vue
76
- - client/src/components/panels/JsonPanel.vue
77
- - client/src/components/panels/LogsPanel.vue
78
- - client/src/components/panels/MessagesPanel.vue
79
- - client/src/components/panels/ModelsPanel.vue
80
- - client/src/components/panels/Panel.vue
81
- - client/src/components/panels/RequestPanel.vue
82
- - client/src/components/queries/QueriesPanel.vue
83
- - client/src/components/queries/QueryItem.vue
84
- - client/src/components/ui/Foldable.vue
85
- - client/src/components/ui/KeyValueTable.vue
86
- - client/src/components/ui/Row.vue
87
- - client/src/components/ui/logo-ruby.vue
88
- - client/src/demo.ts
89
- - client/src/dev.ts
90
- - client/src/main.ts
91
- - client/src/models/Config.ts
92
- - client/src/models/Request.ts
93
- - client/src/stores/RequestsStore.ts
94
- - client/src/stores/configStore.ts
95
- - client/src/style.css
96
- - client/src/types.d.ts
97
- - client/src/vite-env.d.ts
98
- - client/tailwind.config.js
99
- - client/tsconfig.json
100
- - client/tsconfig.node.json
101
- - client/vite.config.ts
58
+ - build.sh
102
59
  - config/routes.rb
103
60
  - debugbar.gemspec
104
- - fixtures/requests/1706607114--demo_post_list.json
105
- - fixtures/requests/1706607120--api_jobs.json
106
- - fixtures/requests/1706607123--api_jobs.json
107
- - fixtures/requests/1706607133--demo_slow_page.json
108
- - fixtures/requests/1706607136--demo_post.json
109
- - fixtures/requests/1706607136--demo_random_post.json
110
- - fixtures/requests/1706607141--api_errors.json
111
61
  - lib/debugbar.rb
112
62
  - lib/debugbar/buffers/memory_buffer.rb
113
63
  - lib/debugbar/buffers/null_buffer.rb
@@ -123,8 +73,6 @@ files:
123
73
  - lib/debugbar/subscribers/active_record.rb
124
74
  - lib/debugbar/subscribers/active_support.rb
125
75
  - lib/debugbar/version.rb
126
- - package-lock.json
127
- - package.json
128
76
  - sig/debugbar.rbs
129
77
  homepage: https://debugbar.dev
130
78
  licenses:
data/client/.gitignore DELETED
@@ -1,25 +0,0 @@
1
- # Logs
2
- logs
3
- *.log
4
- npm-debug.log*
5
- yarn-debug.log*
6
- yarn-error.log*
7
- pnpm-debug.log*
8
- lerna-debug.log*
9
-
10
- node_modules
11
- #dist
12
- dist-demo
13
- dist-ssr
14
- *.local
15
-
16
- # Editor directories and files
17
- .vscode/*
18
- !.vscode/extensions.json
19
- .idea
20
- .DS_Store
21
- *.suo
22
- *.ntvs*
23
- *.njsproj
24
- *.sln
25
- *.sw?
data/client/README.md DELETED
File without changes
@@ -1,14 +0,0 @@
1
- {
2
- "src/assets/ruby-logo.svg": {
3
- "file": "assets/ruby-logo-kn_8RniZ.svg",
4
- "src": "src/assets/ruby-logo.svg"
5
- },
6
- "src/main.ts": {
7
- "assets": [
8
- "assets/ruby-logo-kn_8RniZ.svg"
9
- ],
10
- "file": "assets/debugbar-u5mP-5-z.js",
11
- "isEntry": true,
12
- "src": "src/main.ts"
13
- }
14
- }