debugbar 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) 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 +9 -2
  5. data/lib/debugbar/engine.rb +0 -8
  6. data/lib/debugbar/version.rb +1 -1
  7. data/lib/debugbar.rb +0 -7
  8. data/{client/dist/assets/debugbar-u5mP-5-z.js → public/debugbar.js} +10 -10
  9. metadata +3 -55
  10. data/.prettierrc +0 -6
  11. data/client/.gitignore +0 -25
  12. data/client/README.md +0 -0
  13. data/client/dist/.vite/manifest.json +0 -14
  14. data/client/dist/assets/ruby-logo-kn_8RniZ.svg +0 -946
  15. data/client/index.html +0 -78
  16. data/client/package-lock.json +0 -2393
  17. data/client/package.json +0 -32
  18. data/client/postcss.config.js +0 -6
  19. data/client/src/App.vue +0 -17
  20. data/client/src/AppDemo.vue +0 -29
  21. data/client/src/AppDev.vue +0 -20
  22. data/client/src/Debugbar.vue +0 -276
  23. data/client/src/assets/rails-logo.svg +0 -1
  24. data/client/src/assets/ruby-logo.svg +0 -946
  25. data/client/src/components/TabButton.vue +0 -32
  26. data/client/src/components/panels/CachePanel.vue +0 -41
  27. data/client/src/components/panels/JobsPanel.vue +0 -52
  28. data/client/src/components/panels/JsonPanel.vue +0 -15
  29. data/client/src/components/panels/LogsPanel.vue +0 -43
  30. data/client/src/components/panels/MessagesPanel.vue +0 -25
  31. data/client/src/components/panels/ModelsPanel.vue +0 -37
  32. data/client/src/components/panels/Panel.vue +0 -7
  33. data/client/src/components/panels/RequestPanel.vue +0 -98
  34. data/client/src/components/queries/QueriesPanel.vue +0 -17
  35. data/client/src/components/queries/QueryItem.vue +0 -65
  36. data/client/src/components/ui/Foldable.vue +0 -39
  37. data/client/src/components/ui/KeyValueTable.vue +0 -16
  38. data/client/src/components/ui/Row.vue +0 -14
  39. data/client/src/components/ui/logo-ruby.vue +0 -547
  40. data/client/src/demo.ts +0 -17
  41. data/client/src/dev.ts +0 -20
  42. data/client/src/main.ts +0 -17
  43. data/client/src/models/Config.ts +0 -27
  44. data/client/src/models/Request.ts +0 -183
  45. data/client/src/stores/RequestsStore.ts +0 -36
  46. data/client/src/stores/configStore.ts +0 -8
  47. data/client/src/style.css +0 -23
  48. data/client/src/types.d.ts +0 -9
  49. data/client/src/vite-env.d.ts +0 -1
  50. data/client/tailwind.config.js +0 -16
  51. data/client/tsconfig.json +0 -29
  52. data/client/tsconfig.node.json +0 -10
  53. data/client/vite.config.ts +0 -44
  54. data/fixtures/requests/1706607114--demo_post_list.json +0 -499
  55. data/fixtures/requests/1706607120--api_jobs.json +0 -176
  56. data/fixtures/requests/1706607123--api_jobs.json +0 -119
  57. data/fixtures/requests/1706607133--demo_slow_page.json +0 -130
  58. data/fixtures/requests/1706607136--demo_post.json +0 -164
  59. data/fixtures/requests/1706607136--demo_random_post.json +0 -106
  60. data/fixtures/requests/1706607141--api_errors.json +0 -73
  61. data/package-lock.json +0 -50
  62. 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: 31f1df6612f12e5a7ca4f5fd00021a18f8a2ebb5e0b9e5b8e434878ec41e8735
4
+ data.tar.gz: a486e63f60ebb6804d0568cd88e4dcf28badf6cb8302dffa468529b0d3e281ba
5
5
  SHA512:
6
- metadata.gz: 7c523067bb97bef7778d79b1f2aa31fc5ef3cbed4f632f21113fdb18edfe27b156633d9ca25943d5d387814c442e7c1c38b963fb85428fd852b57bb6f5a139e3
7
- data.tar.gz: ffed0ea44e41025455732edde026d1319fe30b0c4b5603dc4c019171105f53419ca623f0629d0f08ee3125cf14256ef7a9ff77147b35dff00dc51bba3a4f4819
6
+ metadata.gz: f1cd002725aa26c6950b540a7e8ba1d54c4637c20902b5d7c860992b4ac4d2d8f1784069db94159eac419b0812112a0e92b1a685fbcab393e89490bf08c34be5
7
+ data.tar.gz: aa1335481e32baec601e745953ea5f7a88618e4477f866b1e5209fe51ae5d6b274b2b612be95d13393b21e4bb54134d94d1a47c94a2c04f503aa120e1d0f0fda
@@ -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,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?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
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"]
@@ -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.2"
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