railscope 0.1.0
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 +7 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +227 -0
- data/Rakefile +12 -0
- data/app/assets/stylesheets/railscope/application.css +504 -0
- data/app/controllers/railscope/api/entries_controller.rb +103 -0
- data/app/controllers/railscope/application_controller.rb +12 -0
- data/app/controllers/railscope/dashboard_controller.rb +33 -0
- data/app/controllers/railscope/entries_controller.rb +29 -0
- data/app/helpers/railscope/dashboard_helper.rb +157 -0
- data/app/jobs/railscope/application_job.rb +6 -0
- data/app/jobs/railscope/purge_job.rb +15 -0
- data/app/models/railscope/application_record.rb +12 -0
- data/app/models/railscope/entry.rb +51 -0
- data/app/views/layouts/railscope/application.html.erb +14 -0
- data/app/views/railscope/application/index.html.erb +1 -0
- data/app/views/railscope/dashboard/index.html.erb +70 -0
- data/app/views/railscope/entries/show.html.erb +93 -0
- data/client/.gitignore +1 -0
- data/client/index.html +12 -0
- data/client/package-lock.json +2735 -0
- data/client/package.json +28 -0
- data/client/postcss.config.js +6 -0
- data/client/src/App.tsx +60 -0
- data/client/src/api/client.ts +25 -0
- data/client/src/api/entries.ts +36 -0
- data/client/src/components/Layout.tsx +17 -0
- data/client/src/components/PlaceholderPage.tsx +32 -0
- data/client/src/components/Sidebar.tsx +198 -0
- data/client/src/components/ui/Badge.tsx +67 -0
- data/client/src/components/ui/Card.tsx +38 -0
- data/client/src/components/ui/JsonViewer.tsx +80 -0
- data/client/src/components/ui/Pagination.tsx +45 -0
- data/client/src/components/ui/SearchInput.tsx +70 -0
- data/client/src/components/ui/Table.tsx +68 -0
- data/client/src/index.css +28 -0
- data/client/src/lib/hooks.ts +37 -0
- data/client/src/lib/types.ts +61 -0
- data/client/src/lib/utils.ts +38 -0
- data/client/src/main.tsx +13 -0
- data/client/src/screens/cache/Index.tsx +15 -0
- data/client/src/screens/client-requests/Index.tsx +15 -0
- data/client/src/screens/commands/Index.tsx +133 -0
- data/client/src/screens/commands/Show.tsx +395 -0
- data/client/src/screens/dumps/Index.tsx +15 -0
- data/client/src/screens/events/Index.tsx +15 -0
- data/client/src/screens/exceptions/Index.tsx +155 -0
- data/client/src/screens/exceptions/Show.tsx +480 -0
- data/client/src/screens/gates/Index.tsx +15 -0
- data/client/src/screens/jobs/Index.tsx +153 -0
- data/client/src/screens/jobs/Show.tsx +529 -0
- data/client/src/screens/logs/Index.tsx +15 -0
- data/client/src/screens/mail/Index.tsx +15 -0
- data/client/src/screens/models/Index.tsx +15 -0
- data/client/src/screens/notifications/Index.tsx +15 -0
- data/client/src/screens/queries/Index.tsx +159 -0
- data/client/src/screens/queries/Show.tsx +346 -0
- data/client/src/screens/redis/Index.tsx +15 -0
- data/client/src/screens/requests/Index.tsx +123 -0
- data/client/src/screens/requests/Show.tsx +395 -0
- data/client/src/screens/schedule/Index.tsx +15 -0
- data/client/src/screens/views/Index.tsx +141 -0
- data/client/src/screens/views/Show.tsx +337 -0
- data/client/tailwind.config.js +22 -0
- data/client/tsconfig.json +25 -0
- data/client/tsconfig.node.json +10 -0
- data/client/vite.config.ts +37 -0
- data/config/routes.rb +17 -0
- data/db/migrate/20260131023242_create_railscope_entries.rb +41 -0
- data/lib/generators/railscope/install_generator.rb +33 -0
- data/lib/generators/railscope/templates/initializer.rb +34 -0
- data/lib/railscope/context.rb +91 -0
- data/lib/railscope/engine.rb +85 -0
- data/lib/railscope/entry_data.rb +112 -0
- data/lib/railscope/filter.rb +113 -0
- data/lib/railscope/middleware.rb +162 -0
- data/lib/railscope/storage/base.rb +90 -0
- data/lib/railscope/storage/database.rb +83 -0
- data/lib/railscope/storage/redis_storage.rb +314 -0
- data/lib/railscope/subscribers/base_subscriber.rb +52 -0
- data/lib/railscope/subscribers/command_subscriber.rb +237 -0
- data/lib/railscope/subscribers/exception_subscriber.rb +113 -0
- data/lib/railscope/subscribers/job_subscriber.rb +249 -0
- data/lib/railscope/subscribers/query_subscriber.rb +130 -0
- data/lib/railscope/subscribers/request_subscriber.rb +121 -0
- data/lib/railscope/subscribers/view_subscriber.rb +201 -0
- data/lib/railscope/version.rb +5 -0
- data/lib/railscope.rb +145 -0
- data/lib/tasks/railscope_sample.rake +30 -0
- data/public/railscope/assets/app.css +1 -0
- data/public/railscope/assets/app.js +70 -0
- data/public/railscope/assets/index.html +13 -0
- data/sig/railscope.rbs +4 -0
- metadata +157 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" class="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Railscope</title>
|
|
7
|
+
<script type="module" crossorigin src="/railscope/assets/app.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/railscope/assets/app.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body class="bg-dark-bg text-dark-text">
|
|
11
|
+
<div id="root"></div>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
data/sig/railscope.rbs
ADDED
metadata
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: railscope
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Phelipe Tussolini
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rails
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '7.0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '7.0'
|
|
26
|
+
description: 'Railscope provides deep insight into requests, exceptions, database
|
|
27
|
+
queries, background jobs, view rendering, and Rake tasks in your Rails application.
|
|
28
|
+
It features a React-based dark-themed dashboard, automatic sensitive data filtering,
|
|
29
|
+
flexible storage backends (PostgreSQL and Redis), batch correlation of related events,
|
|
30
|
+
and zero external gem dependencies beyond Rails itself.
|
|
31
|
+
|
|
32
|
+
'
|
|
33
|
+
email:
|
|
34
|
+
- phelipe@taller.net.br
|
|
35
|
+
executables: []
|
|
36
|
+
extensions: []
|
|
37
|
+
extra_rdoc_files: []
|
|
38
|
+
files:
|
|
39
|
+
- CHANGELOG.md
|
|
40
|
+
- LICENSE.txt
|
|
41
|
+
- README.md
|
|
42
|
+
- Rakefile
|
|
43
|
+
- app/assets/stylesheets/railscope/application.css
|
|
44
|
+
- app/controllers/railscope/api/entries_controller.rb
|
|
45
|
+
- app/controllers/railscope/application_controller.rb
|
|
46
|
+
- app/controllers/railscope/dashboard_controller.rb
|
|
47
|
+
- app/controllers/railscope/entries_controller.rb
|
|
48
|
+
- app/helpers/railscope/dashboard_helper.rb
|
|
49
|
+
- app/jobs/railscope/application_job.rb
|
|
50
|
+
- app/jobs/railscope/purge_job.rb
|
|
51
|
+
- app/models/railscope/application_record.rb
|
|
52
|
+
- app/models/railscope/entry.rb
|
|
53
|
+
- app/views/layouts/railscope/application.html.erb
|
|
54
|
+
- app/views/railscope/application/index.html.erb
|
|
55
|
+
- app/views/railscope/dashboard/index.html.erb
|
|
56
|
+
- app/views/railscope/entries/show.html.erb
|
|
57
|
+
- client/.gitignore
|
|
58
|
+
- client/index.html
|
|
59
|
+
- client/package-lock.json
|
|
60
|
+
- client/package.json
|
|
61
|
+
- client/postcss.config.js
|
|
62
|
+
- client/src/App.tsx
|
|
63
|
+
- client/src/api/client.ts
|
|
64
|
+
- client/src/api/entries.ts
|
|
65
|
+
- client/src/components/Layout.tsx
|
|
66
|
+
- client/src/components/PlaceholderPage.tsx
|
|
67
|
+
- client/src/components/Sidebar.tsx
|
|
68
|
+
- client/src/components/ui/Badge.tsx
|
|
69
|
+
- client/src/components/ui/Card.tsx
|
|
70
|
+
- client/src/components/ui/JsonViewer.tsx
|
|
71
|
+
- client/src/components/ui/Pagination.tsx
|
|
72
|
+
- client/src/components/ui/SearchInput.tsx
|
|
73
|
+
- client/src/components/ui/Table.tsx
|
|
74
|
+
- client/src/index.css
|
|
75
|
+
- client/src/lib/hooks.ts
|
|
76
|
+
- client/src/lib/types.ts
|
|
77
|
+
- client/src/lib/utils.ts
|
|
78
|
+
- client/src/main.tsx
|
|
79
|
+
- client/src/screens/cache/Index.tsx
|
|
80
|
+
- client/src/screens/client-requests/Index.tsx
|
|
81
|
+
- client/src/screens/commands/Index.tsx
|
|
82
|
+
- client/src/screens/commands/Show.tsx
|
|
83
|
+
- client/src/screens/dumps/Index.tsx
|
|
84
|
+
- client/src/screens/events/Index.tsx
|
|
85
|
+
- client/src/screens/exceptions/Index.tsx
|
|
86
|
+
- client/src/screens/exceptions/Show.tsx
|
|
87
|
+
- client/src/screens/gates/Index.tsx
|
|
88
|
+
- client/src/screens/jobs/Index.tsx
|
|
89
|
+
- client/src/screens/jobs/Show.tsx
|
|
90
|
+
- client/src/screens/logs/Index.tsx
|
|
91
|
+
- client/src/screens/mail/Index.tsx
|
|
92
|
+
- client/src/screens/models/Index.tsx
|
|
93
|
+
- client/src/screens/notifications/Index.tsx
|
|
94
|
+
- client/src/screens/queries/Index.tsx
|
|
95
|
+
- client/src/screens/queries/Show.tsx
|
|
96
|
+
- client/src/screens/redis/Index.tsx
|
|
97
|
+
- client/src/screens/requests/Index.tsx
|
|
98
|
+
- client/src/screens/requests/Show.tsx
|
|
99
|
+
- client/src/screens/schedule/Index.tsx
|
|
100
|
+
- client/src/screens/views/Index.tsx
|
|
101
|
+
- client/src/screens/views/Show.tsx
|
|
102
|
+
- client/tailwind.config.js
|
|
103
|
+
- client/tsconfig.json
|
|
104
|
+
- client/tsconfig.node.json
|
|
105
|
+
- client/vite.config.ts
|
|
106
|
+
- config/routes.rb
|
|
107
|
+
- db/migrate/20260131023242_create_railscope_entries.rb
|
|
108
|
+
- lib/generators/railscope/install_generator.rb
|
|
109
|
+
- lib/generators/railscope/templates/initializer.rb
|
|
110
|
+
- lib/railscope.rb
|
|
111
|
+
- lib/railscope/context.rb
|
|
112
|
+
- lib/railscope/engine.rb
|
|
113
|
+
- lib/railscope/entry_data.rb
|
|
114
|
+
- lib/railscope/filter.rb
|
|
115
|
+
- lib/railscope/middleware.rb
|
|
116
|
+
- lib/railscope/storage/base.rb
|
|
117
|
+
- lib/railscope/storage/database.rb
|
|
118
|
+
- lib/railscope/storage/redis_storage.rb
|
|
119
|
+
- lib/railscope/subscribers/base_subscriber.rb
|
|
120
|
+
- lib/railscope/subscribers/command_subscriber.rb
|
|
121
|
+
- lib/railscope/subscribers/exception_subscriber.rb
|
|
122
|
+
- lib/railscope/subscribers/job_subscriber.rb
|
|
123
|
+
- lib/railscope/subscribers/query_subscriber.rb
|
|
124
|
+
- lib/railscope/subscribers/request_subscriber.rb
|
|
125
|
+
- lib/railscope/subscribers/view_subscriber.rb
|
|
126
|
+
- lib/railscope/version.rb
|
|
127
|
+
- lib/tasks/railscope_sample.rake
|
|
128
|
+
- public/railscope/assets/app.css
|
|
129
|
+
- public/railscope/assets/app.js
|
|
130
|
+
- public/railscope/assets/index.html
|
|
131
|
+
- sig/railscope.rbs
|
|
132
|
+
homepage: https://github.com/wptussolini/rails-telescope
|
|
133
|
+
licenses:
|
|
134
|
+
- MIT
|
|
135
|
+
metadata:
|
|
136
|
+
allowed_push_host: https://rubygems.org
|
|
137
|
+
homepage_uri: https://github.com/wptussolini/rails-telescope
|
|
138
|
+
source_code_uri: https://github.com/wptussolini/rails-telescope
|
|
139
|
+
changelog_uri: https://github.com/wptussolini/rails-telescope/blob/main/railscope/CHANGELOG.md
|
|
140
|
+
rdoc_options: []
|
|
141
|
+
require_paths:
|
|
142
|
+
- lib
|
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
|
+
requirements:
|
|
145
|
+
- - ">="
|
|
146
|
+
- !ruby/object:Gem::Version
|
|
147
|
+
version: 3.2.0
|
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - ">="
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0'
|
|
153
|
+
requirements: []
|
|
154
|
+
rubygems_version: 3.6.9
|
|
155
|
+
specification_version: 4
|
|
156
|
+
summary: A debug assistant for Rails applications inspired by Laravel Telescope
|
|
157
|
+
test_files: []
|