skylight 6.0.3 → 6.0.4

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: 85427756c535b3e22c04387a8e863760fcda84678ccf82e9687a2a9d7832c4ed
4
- data.tar.gz: 32cde2837a6abb2a8a45728274394eeddc12b3f9ad5502db17ff18830c76c659
3
+ metadata.gz: 4b0217b6b6828530f0fe344fbb3ca9ada78c96188e30ebe6556b74e9a152b1d2
4
+ data.tar.gz: 2b50af0d2954293733319ae585480329431a6000df515ba28f45e8a7cf9946e7
5
5
  SHA512:
6
- metadata.gz: 5e82dd423f07da2082568432b97460a711eb43f0e2a3e93e6d89cad1762555dd9ef5c813fa16c509f298fca97b1c6b366fc2f4adff4f26774dcbb93e475f0640
7
- data.tar.gz: 732c977eb3420e2c144655e4bdb3bcf863111773a39c56007df8a4472b9418c2ae939195037d6a9e5ff452296a8100bfad82fd42a2f22e6e54640dad673b379c
6
+ metadata.gz: 3bee5a6d0dcff8bcd132209bc48e726a25a3ecce65f4130c74bde52c9a4187cfcfe13358efd3ec8f8f4bbbca017204384e73be1ed71efbbf00a18f94fca3affb
7
+ data.tar.gz: 2d799ddf111d8bb4caae235b29010620aa90fa4618e3de7dc9fab2ff7a68e61b4a0f642d45f58761942df55effa1b8c6daf2bafc043259a6767395ed9c45d8f7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 6.0.4 (February 23, 2024)
2
+ - [IMPROVEMENT] Set "turbo-frame" in the request segment when making a Turbo-Frame request
3
+
1
4
  ## 6.0.3 (January 18, 2024)
2
5
  - [IMPROVEMENT] Remove an outdated "abbrev" requirement
3
6
 
@@ -11,7 +11,14 @@ module Skylight
11
11
  def append_info_to_payload(payload)
12
12
  append_info_to_payload_without_sk(payload)
13
13
 
14
- payload[:sk_rendered_format] = sk_rendered_mime.try(:ref)
14
+ mime = sk_rendered_mime.try(:ref)
15
+
16
+ payload[:sk_rendered_format] = if request&.headers&.[]("Turbo-Frame")
17
+ [mime, "turbo-frame"].compact.join("+")
18
+ else
19
+ mime
20
+ end
21
+
15
22
  payload[:sk_variant] = request.respond_to?(:variant) ? request.variant : nil
16
23
  end
17
24
 
@@ -3,5 +3,5 @@ module Skylight
3
3
  # for compatibility with semver when it is parsed by the rust agent.
4
4
  # This string will be transformed in the gemspec to "5.0.0.alpha"
5
5
  # to conform with rubygems.
6
- VERSION = "6.0.3".freeze
6
+ VERSION = "6.0.4".freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 6.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-18 00:00:00.000000000 Z
11
+ date: 2024-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -399,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
399
399
  - !ruby/object:Gem::Version
400
400
  version: '0'
401
401
  requirements: []
402
- rubygems_version: 3.5.3
402
+ rubygems_version: 3.4.10
403
403
  signing_key:
404
404
  specification_version: 4
405
405
  summary: Skylight is a smart profiler for Rails, Sinatra, and other Ruby apps.