rails_performance 0.9.6 → 0.9.7

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: b7057afb1ba78e88e9c7cd43609f5b42592be9a63aea28038389634afe8c6563
4
- data.tar.gz: 469e0a13402fbaff70387902b28d4d0a7441d42403df6f3bd4f89aa8a3124bf3
3
+ metadata.gz: ecd06e180b5b5619c81180f22a852a74fe0a69fab43bb04b3d3d29b18b2c72fd
4
+ data.tar.gz: 48c8335202f70441f1f252df55e8a8c5bebd750c491539d3a0f295c19a042e77
5
5
  SHA512:
6
- metadata.gz: b1f93f46640ef509be5ea38f624f916689fe5f61bb3413428673c1ca14d41f30bdfc22111e97f0e5b0629e4421e68400cb75437d65dc3616c9fef55af7f521fb
7
- data.tar.gz: 539bb052282c277077f68b37230ae121b84d4eb7a5a87cb679a38ce03d7bc4df7fc8b38cd1f72f8f235819c53edacb24b256ca18be2e2e51bd9b282e5895faaf
6
+ metadata.gz: 256ca7fcb9d7dca9b33f4ee29b71644b112bdb29329b863a0aa04697ec528e96196660ded8eea3efafd8c473a23668140bb682368c0add0ec3ed428b09b4139f
7
+ data.tar.gz: fb861466ac7f8b0a19eff40b9432856470537abd5c9f005585357f423ede2d6214beef2815ef9876bd881db0baa666eb790c559a3c558292432636381ef86a1a
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Rails Performance
2
2
 
3
3
  [![Build Status](https://travis-ci.org/igorkasyanchuk/rails_performance.svg?branch=master)](https://travis-ci.org/igorkasyanchuk/rails_performance)
4
+ [![RailsJazz](https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/my_other.svg?raw=true)](https://www.railsjazz.com)
4
5
 
5
6
  A self-hosted tool to monitor the performance of your Ruby on Rails application.
6
7
 
@@ -154,7 +155,11 @@ You are welcome to contribute. I've a big list of TODO.
154
155
  - https://github.com/synth
155
156
  - https://github.com/alagos
156
157
  - https://github.com/klondaiker
158
+ - https://github.com/jules2689
157
159
 
158
160
  ## License
159
161
 
160
162
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
163
+
164
+ [<img src="https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/more_gems.png?raw=true"
165
+ />](https://www.railsjazz.com/)
@@ -22,6 +22,7 @@ module RailsPerformance
22
22
  rescue Exception => ex
23
23
  data[:status] = "exception"
24
24
  data[:message] = ex.message
25
+ raise ex
25
26
  ensure
26
27
  # store in ms instead of seconds
27
28
  data[:duration] = (Time.now - now) * 1000
@@ -18,7 +18,8 @@ module RailsPerformance
18
18
  def call(event_name, started, finished, event_id, payload)
19
19
  event = ActiveSupport::Notifications::Event.new(event_name, started, finished, event_id, payload)
20
20
 
21
- return if event.payload[:path] =~ /^\/rails\/performance/
21
+ mount_url = RailsPerformance.mount_at || "/rails/performance/"
22
+ return if event.payload[:path] =~ /^#{Regexp.escape(mount_url)}/
22
23
 
23
24
  record = {
24
25
  controller: event.payload[:controller],
@@ -38,4 +39,4 @@ module RailsPerformance
38
39
  end
39
40
  end
40
41
  end
41
- end
42
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsPerformance
2
- VERSION = '0.9.6'
2
+ VERSION = '0.9.7'
3
3
  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: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-09 00:00:00.000000000 Z
11
+ date: 2021-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  - !ruby/object:Gem::Version
185
185
  version: '0'
186
186
  requirements: []
187
- rubygems_version: 3.0.3
187
+ rubygems_version: 3.1.4
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: Simple Rails Performance tracker. Alternative to the NewRelic, Datadog or