skylight-core 4.3.1 → 4.3.2

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: 2443077b98bc42af5683f82aac17e192670026cbd6bdfa9a940caff2237860a0
4
- data.tar.gz: e0dc413f3f0d0827f4b064b8fdfbac13f607357113ed50a223f9522e5775b5e0
3
+ metadata.gz: 2030258255754028163967778c9b3ca8ab63a2971e7037c29d99d1cc34ae4b36
4
+ data.tar.gz: 746fd493621405f7f443a40150722a1b018b0a6ace05421bff3c9ce5069d9bad
5
5
  SHA512:
6
- metadata.gz: e3ae4c018808967cf5b0cec1fb9056c037f37c2cd60b1790759755d1d9e05cba3f400a790502110fa5723541ad03f0fcf50eeb0d3ebc546d9ff19eb3c8d00309
7
- data.tar.gz: ca5ca4747d2ec5a578f830dc5ee1ef818a651ca9a9f95ad069cfd26849014279f9aa4f9d3f2040eaf6de8ea64501959fbab005800c96107d17fe9f92b572517c
6
+ metadata.gz: 4acc9a1b9d9f299fd609a75f2f0f51608e4f26d7aa30ef5748db41c04177aa5c399ea384085218781ceb85f023542a05617009e2c70c0de7fb2a2106163f2299
7
+ data.tar.gz: c9ac1d3ac95a970827bd1a3e9a4264ef78be0bb39af9754e380de82ac7e8839e9ec4cecc2bcbc0e3d06397e9c09c6d1567caa51bfb5612f53ae2195e5434044e
@@ -98,6 +98,7 @@ module Skylight::Core
98
98
  action_view/render_collection
99
99
  action_view/render_partial
100
100
  action_view/render_template
101
+ action_view/render_layout
101
102
  active_job/perform
102
103
  active_model_serializers/render
103
104
  active_record/instantiation
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Skylight
4
+ module Core
5
+ module Normalizers
6
+ module ActionView
7
+ # Normalizer for Rails layout rendering
8
+ class RenderLayout < RenderNormalizer
9
+ register "render_layout.action_view"
10
+
11
+ CAT = "view.render.layout"
12
+
13
+ # @param trace [Skylight::Messages::Trace::Builder] ignored, only present to match API
14
+ # @param name [String] ignored, only present to match API
15
+ # @param payload (see RenderNormalizer#normalize_render)
16
+ # @option payload (see RenderNormalizer#normalize_render)
17
+ # @return (see RenderNormalizer#normalize_render)
18
+ def normalize(_trace, _name, payload)
19
+ normalize_render(CAT, payload)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,8 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Skylight::Core
2
4
  module Probes
3
5
  module ActionView
4
6
  class Probe
5
7
  def install
8
+ return if ::ActionView.gem_version >= Gem::Version.new("6.1.0.alpha")
9
+
6
10
  ::ActionView::TemplateRenderer.class_eval do
7
11
  alias_method :render_with_layout_without_sk, :render_with_layout
8
12
 
@@ -1,5 +1,5 @@
1
1
  module Skylight
2
2
  module Core
3
- VERSION = "4.3.1".freeze
3
+ VERSION = "4.3.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -150,7 +150,7 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- description:
153
+ description:
154
154
  email:
155
155
  - engineering@tilde.io
156
156
  executables: []
@@ -172,6 +172,7 @@ files:
172
172
  - lib/skylight/core/normalizers/action_controller/send_file.rb
173
173
  - lib/skylight/core/normalizers/action_dispatch/process_middleware.rb
174
174
  - lib/skylight/core/normalizers/action_view/render_collection.rb
175
+ - lib/skylight/core/normalizers/action_view/render_layout.rb
175
176
  - lib/skylight/core/normalizers/action_view/render_partial.rb
176
177
  - lib/skylight/core/normalizers/action_view/render_template.rb
177
178
  - lib/skylight/core/normalizers/active_job/perform.rb
@@ -254,7 +255,7 @@ homepage: https://www.skylight.io
254
255
  licenses:
255
256
  - Nonstandard
256
257
  metadata: {}
257
- post_install_message:
258
+ post_install_message:
258
259
  rdoc_options: []
259
260
  require_paths:
260
261
  - lib
@@ -269,8 +270,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
270
  - !ruby/object:Gem::Version
270
271
  version: '0'
271
272
  requirements: []
272
- rubygems_version: 3.1.2
273
- signing_key:
273
+ rubygems_version: 3.1.4
274
+ signing_key:
274
275
  specification_version: 4
275
276
  summary: The core methods of the Skylight profiler.
276
277
  test_files: []