skylight 5.3.3 → 5.3.5

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: f3b769eb5f54b2400e4e2ba1678a5e45e1bdf3aff9dc205274387317035e606b
4
- data.tar.gz: 1bf4191e377224dfb2c5e064dc6391462c2005a6bf3c8cc658feaa6b6d67e002
3
+ metadata.gz: 319c04b50f1841b5b827b005c0300ce4425eff37d51a8b66d77836bdc8d98e39
4
+ data.tar.gz: 734769ec52b8268c2a4716d21d3317d481054eb3cedbff1eeac7dec5d7060bcd
5
5
  SHA512:
6
- metadata.gz: 830f58c5a32ffaf48584fe0769508451e2b0719fb0fc3ed9c3c13a031fff5706e94485a9bf11dacbf0c9b48e95cfd4df07d875eb097c54e90fcf018858eca133
7
- data.tar.gz: 1bcdb766cbb4040a9f0734ebeb2a727ddc665bef8c58842b69a48dc33a965b0985ae4dd38cea714f2acca4ab12b79a55c37b5c1bba43985541c68ff80687d7f9
6
+ metadata.gz: 772e2f4532ffef77509e05974f9139716c10f31aa825cba7cd941a8fae4c6ff68ead8963dc4b99ccb906d13d32a0c615f2f161a2bca058de27ba30e42e7c8645
7
+ data.tar.gz: 21e57545141e437a295ae36cda4e2fd87dc6657cf32201285781547d7b27ad8410d11d095a91f58319543b5c561c59cc70d4c77ad2013762d1e26d62adecd281
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 5.3.5 (January 18, 2024)
2
+ - [IMPROVEMENT] Remove an outdated 'abbrev' requirement
3
+
4
+ ## 5.3.4 (October 17, 2022)
5
+
6
+ - [BUGFIX] Fix a middleware response method that was incompatible with Puma >= 6.
7
+ - [IMPROVEMENT] Improved support for Redis v5
8
+
1
9
  ## 5.3.3 (July 13, 2022)
2
10
 
3
11
  - [IMPROVEMENT] Track the original class/method name for Sidekiq delayed object proxies
@@ -13,7 +13,7 @@ module Skylight
13
13
  end
14
14
 
15
15
  def respond_to_missing?(name, include_all = false)
16
- return false if name.to_s !~ /^to_ary$/
16
+ return false if name.to_s =~ /^to_ary$/
17
17
 
18
18
  @body.respond_to?(name, include_all)
19
19
  end
@@ -20,6 +20,18 @@ module Skylight
20
20
  end
21
21
  end
22
22
 
23
+ module ClientInstrumentationV5
24
+ def call_v(command)
25
+ command_name = command[0]
26
+
27
+ return super if command_name == :auth
28
+
29
+ opts = { category: "db.redis.command", title: command_name.upcase.to_s, internal: true }
30
+
31
+ Skylight.instrument(opts) { super }
32
+ end
33
+ end
34
+
23
35
  module Instrumentation
24
36
  def pipelined(*)
25
37
  Skylight.instrument(PIPELINED_OPTS) { super }
@@ -40,7 +52,12 @@ module Skylight
40
52
  return
41
53
  end
42
54
 
43
- ::Redis::Client.prepend(ClientInstrumentation)
55
+ if ::Redis::Client.method_defined?(:call_v)
56
+ ::Redis::Client.prepend(ClientInstrumentationV5)
57
+ else
58
+ ::Redis::Client.prepend(ClientInstrumentation)
59
+ end
60
+
44
61
  ::Redis.prepend(Instrumentation)
45
62
  end
46
63
  end
@@ -10,7 +10,6 @@
10
10
  require "erb"
11
11
  require "optparse"
12
12
  require "stringio"
13
- require "abbrev"
14
13
  require "highline/system_extensions"
15
14
  require "highline/question"
16
15
  require "highline/menu"
@@ -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 = "5.3.3".freeze
6
+ VERSION = "5.3.5".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: 5.3.3
4
+ version: 5.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-13 00:00:00.000000000 Z
11
+ date: 2024-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -385,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
385
385
  - !ruby/object:Gem::Version
386
386
  version: '0'
387
387
  requirements: []
388
- rubygems_version: 3.2.15
388
+ rubygems_version: 3.5.3
389
389
  signing_key:
390
390
  specification_version: 4
391
391
  summary: Skylight is a smart profiler for Rails, Sinatra, and other Ruby apps.