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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38819433ac1ee118a96caab4f7ca4a539b2d995357df0a4bc04333ae55d3beb7
4
- data.tar.gz: 207a4b1e375df67b0af5b3f446fe59cb50e608da207510fa64ad28e1f8366039
3
+ metadata.gz: 9afc6193bf2676b9f41dc9954309b7333c3457df425347cb76b38a32cfd6d086
4
+ data.tar.gz: 633ddf2ed224f0e11d6dc437209a668dbf1ab4be573033e1527d1dd5adc67e22
5
5
  SHA512:
6
- metadata.gz: efa206d30d71c4b5721bbc8fad0df581b56a7ad0642b99f0d91c9e1ff1e5ff394951f68ddcd0ba498d5f60f2de8714bd9163a5f7912abdb548bd0d1bb8b2fce5
7
- data.tar.gz: 9f4810ef1db85454e2ffefee36f2cedb43dd1d9495ef7ce993ecf4da364234fe04b0d644db7be9270fc2011f66bad47c6ebcdf73ed561e0711a07f88941c36aa
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
- app.middleware.insert_after ActionDispatch::Static, RailsPerformance::Rails::Middleware
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
@@ -1,4 +1,4 @@
1
1
  module RailsPerformance
2
- VERSION = '1.0.0.beta4'
2
+ VERSION = '1.0.0.beta5'
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.beta4
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-22 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails