rails_performance 1.0.0 → 1.0.1

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: 5da13053dd45132a995aa83cd0a1514bf44bd0ca9acdac19898f2d23674171c8
4
- data.tar.gz: de1e1dee044deed998dcaf3cc863301f7c3f4c732adb06efa98427f6797a79db
3
+ metadata.gz: 372161a3472691a4bf4c51d4625fbdc743d3c307af1e98779af2838f8523418a
4
+ data.tar.gz: 7d3e7f3adc3b3fd55f80173796271f85c238f4a8a2c6fe69fa89791295b45b1b
5
5
  SHA512:
6
- metadata.gz: 4ed1e54a27941fba93ec958dce9eee09c926350e2906be2e91ff1458f751ed6bd37b29732f8ca0629137bd189796c3dc5e9f0eddab332e06512f76db1b6235a6
7
- data.tar.gz: 49e036a7f777488c4c8cd90e0927b3969d2d5dd0d057ebdb8aa2b9e759a233ba0cd4652a2bcc0374517d101fa2f0ccbf12d6d856546b09f7ebfe9db51404a6f2
6
+ metadata.gz: b3212e91b066f04165c9dc8dd77c15c77ba38709ceda23056c11e4fc7a2b1bc4238f64a6bc819c84d83f487ff73d70a8b876ce0c2af252b1e8777a40df4bb48f
7
+ data.tar.gz: a5146bfc66664841d89e8e0e51c7d3f3a47207e00f821504cd97a635d503cd263d7f2b33d34ebdf5827a764f10d0ad74c7140481aff91f1ec01297704ce304ce
data/README.md CHANGED
@@ -119,7 +119,13 @@ Rails.application.routes.draw do
119
119
  end
120
120
  ```
121
121
 
122
+ ### Custom events
122
123
 
124
+ ```ruby
125
+ RailsPerformance.measure("some label", "some namespace") do
126
+ # your code
127
+ end
128
+ ```
123
129
 
124
130
  ## How it works
125
131
 
@@ -56,11 +56,11 @@ module RailsPerformance
56
56
 
57
57
  ActionView::LogSubscriber.send :prepend, RailsPerformance::Extensions::View
58
58
  ActiveRecord::LogSubscriber.send :prepend, RailsPerformance::Extensions::Db
59
- end
60
59
 
61
- if defined?(::Rake::Task)
62
- require_relative './gems/rake_ext.rb'
63
- RailsPerformance::Gems::RakeExt.init
60
+ if defined?(::Rake::Task)
61
+ require_relative './gems/rake_ext.rb'
62
+ RailsPerformance::Gems::RakeExt.init
63
+ end
64
64
  end
65
65
  end
66
66
  end
@@ -1,4 +1,4 @@
1
1
  module RailsPerformance
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  SCHEMA = '1.0.1'
4
4
  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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-26 00:00:00.000000000 Z
11
+ date: 2021-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails