rails_performance 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/app/views/rails_performance/javascripts/app.js +1 -1
- data/app/views/rails_performance/stylesheets/style.css +4 -1
- data/lib/rails_performance/gems/rake_ext.rb +9 -7
- data/lib/rails_performance/version.rb +2 -2
- data/lib/rails_performance.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da39e641dcac93526efb39f08e39cff972b5c09c04956b48bf1a30a6988fc24f
|
4
|
+
data.tar.gz: b7b0615aab822ec3742cc43ee74f45b63f1141cb79c246e4bc58c1d1b30b01f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ed2ae6cbd21422811df03088d04c036129ccf1bd527cf18964d6c1ff7c3781f7d5ab251041900a264ee89d7f0598b154f8426921f4cd3a5628a18b477580e6c
|
7
|
+
data.tar.gz: 55c864e62678514bf2b9c03cd648dfb8faa454d42061e8f454572c2d0083f367105540e0533c5b9efcd587e08dadabedc583fce842269aaa6b3659f26eb72d56
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
A self-hosted tool to monitor the performance of your Ruby on Rails application.
|
8
8
|
|
9
|
-
This is **simple and free alternative** to the New Relic APM, Datadog or other similar services.
|
9
|
+
This is a **simple and free alternative** to the New Relic APM, Datadog or other similar services.
|
10
10
|
|
11
11
|
![Demo](docs/rails_performance.gif)
|
12
12
|
|
@@ -72,6 +72,8 @@ RailsPerformance.setup do |config|
|
|
72
72
|
|
73
73
|
# config home button link
|
74
74
|
config.home_link = '/'
|
75
|
+
|
76
|
+
config.skipable_rake_tasks = ['webpacker:compile']
|
75
77
|
end if defined?(RailsPerformance)
|
76
78
|
```
|
77
79
|
|
@@ -209,10 +211,11 @@ If "schema" how records are stored i Redis is changed, and this is a breacking c
|
|
209
211
|
- https://github.com/PedroAugustoRamalhoDuarte
|
210
212
|
- https://github.com/haffla
|
211
213
|
- https://github.com/D1ceWard
|
214
|
+
- https://github.com/carl-printreleaf
|
212
215
|
|
213
216
|
## License
|
214
217
|
|
215
218
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
216
219
|
|
217
220
|
[<img src="https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/more_gems.png?raw=true"
|
218
|
-
/>](https://www.railsjazz.com
|
221
|
+
/>](https://www.railsjazz.com/?utm_source=github&utm_medium=bottom&utm_campaign=rails_performance)
|
@@ -13,13 +13,15 @@ module RailsPerformance
|
|
13
13
|
status = 'error'
|
14
14
|
raise(ex)
|
15
15
|
ensure
|
16
|
-
RailsPerformance
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
if !RailsPerformance.skipable_rake_tasks.include?(self.name)
|
17
|
+
RailsPerformance::Models::RakeRecord.new(
|
18
|
+
task: RailsPerformance::Gems::RakeExt.find_task_name(*args),
|
19
|
+
datetime: now.strftime(RailsPerformance::FORMAT),
|
20
|
+
datetimei: now.to_i,
|
21
|
+
duration: (Time.now - now) * 1000,
|
22
|
+
status: status,
|
23
|
+
).save
|
24
|
+
end
|
23
25
|
end
|
24
26
|
end
|
25
27
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kasyanchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|