rails_performance 1.0.0.beta4 → 1.0.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_performance/engine.rb +5 -1
- data/lib/rails_performance/version.rb +1 -1
- 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: 9afc6193bf2676b9f41dc9954309b7333c3457df425347cb76b38a32cfd6d086
|
4
|
+
data.tar.gz: 633ddf2ed224f0e11d6dc437209a668dbf1ab4be573033e1527d1dd5adc67e22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc2411c391204f60a8b978dea522990f1ea184d1d7139f1cdcf63887db8e590fa31a5681df681ab5b1204918055b8e8e4a8278cb678f57384c921c654cb6d753
|
7
|
+
data.tar.gz: 8f00bbae1da6d8813d6d682f85ff9a7c349b7786c700d99b5244bce87018dd5b1b76aa96e56fd78df9b5380cba2e871d45e161652684e86cd392c2c5e7149531
|
@@ -13,7 +13,11 @@ module RailsPerformance
|
|
13
13
|
if ::Rails::VERSION::MAJOR.to_i >= 5
|
14
14
|
app.middleware.insert_after ActionDispatch::Executor, RailsPerformance::Rails::Middleware
|
15
15
|
else
|
16
|
-
|
16
|
+
begin
|
17
|
+
app.middleware.insert_after ActionDispatch::Static, RailsPerformance::Rails::Middleware
|
18
|
+
rescue
|
19
|
+
app.middleware.insert_after Rack::SendFile, RailsPerformance::Rails::Middleware
|
20
|
+
end
|
17
21
|
end
|
18
22
|
# look like it works in reverse order?
|
19
23
|
app.middleware.insert_before RailsPerformance::Rails::Middleware, RailsPerformance::Rails::MiddlewareTraceStorerAndCleanup
|
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.0.beta5
|
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-
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|