skylight 5.3.0 → 5.3.1

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: ab247cb921b7d63dec0fc2fd7c6987a862986953f06765ae3472f59fb3c5ccbd
4
- data.tar.gz: da9348e64a843ee5547808ead23c14b904d61c18431eebbf60e8aa36f41db2ef
3
+ metadata.gz: 25e5b7ab0cc3d787b7192d6ec29ea90ce7c1088f13660d58601cc00d30a88b27
4
+ data.tar.gz: a171ca96752f9e2f6cf02a6fc18a3a64b7fa4c280d9d2c2428d489c6a3b46d85
5
5
  SHA512:
6
- metadata.gz: db622c8b9bcada4c1806d4891632587510e4ee06bee1ddc265d29bbf816aef404e403a8b5e1aa584342f1867089aba945de6de3dd3d8c13d38c97e3fce526be9
7
- data.tar.gz: 79445c8d91cda531854c1e7ae9799be4b78e921fe7c4588a1bc4e1c5292546d34ac237c35d973759e9a6bc071bbe7fcd567079c71d8c462d76e93ba0becdf684
6
+ metadata.gz: a388dd96bd6253ae8db5b5dae947be514888714bdcd0d4a91d0a3e4d15b33c826da018637ce24e2341eeaab917ab6b84671eae481d872a99dc1bc7c8c2dbc400
7
+ data.tar.gz: 41bcd860d6ae637670cc0b0abde0a4b9e4970cecfc19fab781fa15cdee24d73bcc2fec62dfa984f24568fc27d1b7379ff2791a5f49a4e7107992f620ab7a45cb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 5.3.1 (February 28, 2022)
2
+
3
+ - [BUGFIX] Fix Elasticsearch integration for gem versions >= 8.
4
+
1
5
  ## 5.3.0 (February, 9, 2022)
2
6
 
3
7
  - [FEATURE] Support for Rails 7's `load_async`.
@@ -3,8 +3,17 @@ module Skylight
3
3
  module Elasticsearch
4
4
  class Probe
5
5
  def install
6
+ const =
7
+ if defined?(::Elasticsearch::Transport::Transport::Base)
8
+ ::Elasticsearch::Transport::Transport::Base
9
+ elsif defined?(::Elastic::Transport::Transport::Base)
10
+ ::Elastic::Transport::Transport::Base
11
+ else
12
+ return false
13
+ end
14
+
6
15
  # Prepending doesn't work here since this a module that's already been included
7
- ::Elasticsearch::Transport::Transport::Base.class_eval do
16
+ const.class_eval do
8
17
  alias_method :perform_request_without_sk, :perform_request
9
18
  def perform_request(method, path, *args, &block)
10
19
  ActiveSupport::Notifications.instrument(
@@ -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.0".freeze
6
+ VERSION = "5.3.1".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.0
4
+ version: 5.3.1
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-02-09 00:00:00.000000000 Z
11
+ date: 2022-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport