rails_performance 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7083cafce2bc5cd518d4569636fbf29b6f3b9d6988b29934f9b20fd78409ab2b
|
|
4
|
+
data.tar.gz: afa5ae508905a5ecd70a61502aae297f7b54e9657055e04de5aae3175a670fef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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(
|
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.
|
|
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-
|
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|