rails_performance 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/views/rails_performance/javascripts/_javascripts.html.erb +1 -0
- data/app/views/rails_performance/javascripts/navbar.js +8 -0
- data/app/views/rails_performance/shared/_header.html.erb +2 -2
- data/lib/generators/rails_performance/install/templates/initializer.rb +4 -1
- data/lib/rails_performance/version.rb +1 -1
- data/lib/rails_performance.rb +4 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d7ef7cc9ce348212f4857dd78032c84766dec51b7fa78fd0ab3206f08bb0b8c
|
4
|
+
data.tar.gz: 380ae54a89db6e34827459e768333a39cfe5de6e3cffb8104b70ef8af8fc11cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3265a68a5f3c9a29d6ff0db5e65094f036b9f58fb082a03d177ac4d105bdd532824fb7e757919f512edf103dfc75156f920c70b65ef134005bc3f0447e2c46a6
|
7
|
+
data.tar.gz: 544fec0f5be1aa315e8185dd3abac2e2055f069c6290a0b68ed95e09b387d59bd3f82a5965c6175bc9e0c611e80890ae0d88e4acedffeae09324d34a6262935e
|
data/README.md
CHANGED
@@ -68,6 +68,9 @@ RailsPerformance.setup do |config|
|
|
68
68
|
config.verify_access_proc = proc { |controller| true }
|
69
69
|
# for example when you have `current_user`
|
70
70
|
# config.verify_access_proc = proc { |controller| controller.current_user && controller.current_user.admin? }
|
71
|
+
|
72
|
+
# config home button link
|
73
|
+
config.home_link = '/'
|
71
74
|
end if defined?(RailsPerformance)
|
72
75
|
```
|
73
76
|
|
@@ -204,6 +207,7 @@ If "schema" how records are stored i Redis is changed, and this is a breacking c
|
|
204
207
|
- https://github.com/jules2689
|
205
208
|
- https://github.com/PedroAugustoRamalhoDuarte
|
206
209
|
- https://github.com/haffla
|
210
|
+
- https://github.com/D1ceWard
|
207
211
|
|
208
212
|
## License
|
209
213
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
$(document).ready(function() {
|
2
|
+
// Check for click events on the navbar burger icon
|
3
|
+
$(".navbar-burger").click(function() {
|
4
|
+
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
|
5
|
+
$(".navbar-burger").toggleClass("is-active");
|
6
|
+
$(".navbar-menu").toggleClass("is-active");
|
7
|
+
});
|
8
|
+
});
|
@@ -35,11 +35,11 @@
|
|
35
35
|
<div class="navbar-item">
|
36
36
|
<div class="buttons">
|
37
37
|
<%#= link_to 'Export to CSV', '#', target: '_blank', class: "button is-primary" %>
|
38
|
-
<%= link_to
|
38
|
+
<%= link_to RailsPerformance.home_link, target: '_blank', class: "button is-light home_icon" do %>
|
39
39
|
<%= icon('home') %>
|
40
40
|
<% end %>
|
41
41
|
</div>
|
42
42
|
</div>
|
43
43
|
</div>
|
44
44
|
</div>
|
45
|
-
</nav>
|
45
|
+
</nav>
|
@@ -17,7 +17,10 @@ RailsPerformance.setup do |config|
|
|
17
17
|
config.verify_access_proc = proc { |controller| true }
|
18
18
|
# for example when you have `current_user`
|
19
19
|
# config.verify_access_proc = proc { |controller| controller.current_user && controller.current_user.admin? }
|
20
|
-
|
20
|
+
|
21
21
|
# You can ignore endpoints with Rails standard notation controller#action
|
22
22
|
# config.ignored_endpoints = ['HomeController#contact']
|
23
|
+
|
24
|
+
# config home button link
|
25
|
+
config.home_link = '/'
|
23
26
|
end if defined?(RailsPerformance)
|
data/lib/rails_performance.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_performance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kasyanchuk
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- app/views/rails_performance/javascripts/_javascripts.html.erb
|
193
193
|
- app/views/rails_performance/javascripts/app.js
|
194
194
|
- app/views/rails_performance/javascripts/jquery-3.4.1.min.js
|
195
|
+
- app/views/rails_performance/javascripts/navbar.js
|
195
196
|
- app/views/rails_performance/javascripts/panel.js
|
196
197
|
- app/views/rails_performance/javascripts/rails.js
|
197
198
|
- app/views/rails_performance/javascripts/stupidtable.min.js
|
@@ -255,7 +256,7 @@ homepage: https://github.com/igorkasyanchuk/rails_performance
|
|
255
256
|
licenses:
|
256
257
|
- MIT
|
257
258
|
metadata: {}
|
258
|
-
post_install_message:
|
259
|
+
post_install_message:
|
259
260
|
rdoc_options: []
|
260
261
|
require_paths:
|
261
262
|
- lib
|
@@ -270,8 +271,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
271
|
- !ruby/object:Gem::Version
|
271
272
|
version: '0'
|
272
273
|
requirements: []
|
273
|
-
rubygems_version: 3.
|
274
|
-
signing_key:
|
274
|
+
rubygems_version: 3.2.3
|
275
|
+
signing_key:
|
275
276
|
specification_version: 4
|
276
277
|
summary: Simple Rails Performance tracker. Alternative to the NewRelic, Datadog or
|
277
278
|
other services.
|