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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b27b8bf73e30b04e7ae40afca4598b348457dcd09bbf30a2ca124e16caa2cf17
4
- data.tar.gz: 36afe9bec764881de9cb6a29510903d7036ae80c8af072ea31018f8a85abbab9
3
+ metadata.gz: da39e641dcac93526efb39f08e39cff972b5c09c04956b48bf1a30a6988fc24f
4
+ data.tar.gz: b7b0615aab822ec3742cc43ee74f45b63f1141cb79c246e4bc58c1d1b30b01f0
5
5
  SHA512:
6
- metadata.gz: f974e6a2ee2ed369a9e73bccd64ae62c150ec2e6dd9324a41f880eaefc7063d309cc597a3a78db9f10d51214cf3949d6a7e784cc5b77b74082dc583913ab6cfd
7
- data.tar.gz: 495d009f627564c2474dfecbd8b50d5b80f4b327fb5e18868443147a7327e1ca2d0ff078b5b8973583ab4aff52989a75213c6aa59d10e99a13b6562f2fd6f09a
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)
@@ -181,7 +181,7 @@ if(recent) {
181
181
  return;
182
182
  }
183
183
 
184
- fetch(`/rails/performance/recent.js?from_timei=${from_timei}`, {
184
+ fetch(`recent.js?from_timei=${from_timei}`, {
185
185
  headers: {
186
186
  "X-CSRF-Token": document.querySelector("[name='csrf-token']").content,
187
187
  },
@@ -81,6 +81,9 @@
81
81
  border-bottom: 1px solid red;
82
82
  }
83
83
 
84
+ .card-content {
85
+ overflow-x: scroll;
86
+ }
84
87
 
85
88
  table th[data-sort] {
86
89
  cursor: pointer;
@@ -92,4 +95,4 @@ table th[data-sort] {
92
95
 
93
96
  #autoupdate_label {
94
97
  cursor: pointer;
95
- }
98
+ }
@@ -13,13 +13,15 @@ module RailsPerformance
13
13
  status = 'error'
14
14
  raise(ex)
15
15
  ensure
16
- RailsPerformance::Models::RakeRecord.new(
17
- task: RailsPerformance::Gems::RakeExt.find_task_name(*args),
18
- datetime: now.strftime(RailsPerformance::FORMAT),
19
- datetimei: now.to_i,
20
- duration: (Time.now - now) * 1000,
21
- status: status,
22
- ).save
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
 
@@ -1,4 +1,4 @@
1
1
  module RailsPerformance
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  SCHEMA = '1.0.1'
4
- end
4
+ end
@@ -73,6 +73,10 @@ module RailsPerformance
73
73
  mattr_accessor :home_link
74
74
  @@home_link = '/'
75
75
 
76
+ # skip performance tracking for these rake tasks
77
+ mattr_accessor :skipable_rake_tasks
78
+ @@skipable_rake_tasks = []
79
+
76
80
  def RailsPerformance.setup
77
81
  yield(self)
78
82
  end
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.3
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-05-14 00:00:00.000000000 Z
11
+ date: 2022-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails