rails_performance 0.9.2 → 0.9.3

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: 016c0a4dada04d91fb392c7be96962f28bd65d7a55ca436379eff445ac6f2c76
4
- data.tar.gz: c14155acbc63d8c043f60ddf719e33da0f9dc1d6809fb279c34dc4ba39ea6afe
3
+ metadata.gz: 7083cafce2bc5cd518d4569636fbf29b6f3b9d6988b29934f9b20fd78409ab2b
4
+ data.tar.gz: afa5ae508905a5ecd70a61502aae297f7b54e9657055e04de5aae3175a670fef
5
5
  SHA512:
6
- metadata.gz: 14be1cffee56e247f968e1001788c2c716d3d4e622b2c584bb8cfb60399bcca20f4665324cd7b15f4bcaf3102af331cba0b20950b67de005b48cb1faa3533374
7
- data.tar.gz: e982081222f459103fc3d801f2fb18add3f2e93b2efc1073c33ed6501138ca5b536cce7ba6e763849724ab3673e0c3ca3f2a9aa4583665d6c0397b4652c04aad
6
+ metadata.gz: 2a3e8737e2dcf02ee5816e26c518d160b76e4eeb24ba029be79a2a8070df327cd1f18051ce2310a6d2888de17f2b8b1e6186664994217d13c87ccfce8b6d5b58
7
+ data.tar.gz: 761c2d6f4f4be425f7c59acb5eed4b7df31d42c0deebf6320e9893b4b97fbfba3f46405ad21e04591896503809ce998d5042e2ce6a8f9302141e30517c264c39
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <title>Rails Performance</title>
7
7
  <%= csrf_meta_tags %>
8
- <%= csp_meta_tag %>
8
+ <%= csp_meta_tag if ::Rails::VERSION::MAJOR.to_i >= 5 %>
9
9
  <%= render '/rails_performance/stylesheets/stylesheets' %>
10
10
  <link rel="shortcut icon" href="/favicon.ico">
11
11
  </head>
@@ -7,7 +7,11 @@ module RailsPerformance
7
7
 
8
8
  if RailsPerformance.try(:enabled) # for rails c
9
9
 
10
- config.app_middleware.insert_after ActionDispatch::Executor, RailsPerformance::Rails::Middleware
10
+ if ::Rails::VERSION::MAJOR.to_i >= 5
11
+ config.app_middleware.insert_after ActionDispatch::Executor, RailsPerformance::Rails::Middleware
12
+ else
13
+ config.app_middleware.insert_after ActionDispatch::Static, RailsPerformance::Rails::Middleware
14
+ end
11
15
 
12
16
  initializer :configure_metrics, after: :initialize_logger do
13
17
  ActiveSupport::Notifications.subscribe(
@@ -1,3 +1,3 @@
1
1
  module RailsPerformance
2
- VERSION = '0.9.2'
2
+ VERSION = '0.9.3'
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.2
4
+ version: 0.9.3
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-06-01 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails