jay_api 27.3.0 → 27.4.0

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: 7bf95eb5af7069c36512de16c021bbd88e338bdd3edc80bd195ba2f06d780d84
4
- data.tar.gz: 73c1fd90f8fafbad98bb24a0afce1024f17114ab720c3c94bdb11d484ca686fb
3
+ metadata.gz: 5a6edc53b541759520ecc03ea41bd03119d4c89aca3967d6a108d7b4329d31ac
4
+ data.tar.gz: 576525ff4b4a470f1b81839990344837f6907bd3d0e54acd9dab7ccff7090dce
5
5
  SHA512:
6
- metadata.gz: c47ee03a8915dd5a328d6717ef90bd32a0cef9a588b428801e542271814fffa497ce0f6b037b8a30a3729156446aac0c01e8696bab269fb49fa54c90aaa6cb32
7
- data.tar.gz: 3e1fdfbdff8c7318c0632b49ebc77575a859e263ea0ccaa800bdfbc397f7ff6498ec899052b8270f58e660137b1cb57dae0c71422ade417cd64dd24a765ef50d
6
+ metadata.gz: 54bf37bfd8b82a8337645a8064b2cc82707d8c985816646ae23774b917676b7a79642710420dba680cb163491fb8035eaed603ac22c86410c63e43907805a14d
7
+ data.tar.gz: 4525bc1fb75c38f6e741e245757e3261c9bf4a0981d1e65da3756c65f24610ac66d25480a6d842f54c5c9097fad6612e05736310226466ddd783df13b142266f
data/CHANGELOG.md CHANGED
@@ -8,6 +8,11 @@ Please mark backwards incompatible changes with an exclamation mark at the start
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [27.4.0] - 2025-04-10
12
+
13
+ ### Added
14
+ - The `#ping` method to `Elasticsearch::Client`
15
+
11
16
  ## [27.3.0] - 2025-04-04
12
17
 
13
18
  ### Added
@@ -3,6 +3,7 @@
3
3
  require 'elasticsearch/api/namespace/tasks'
4
4
  require 'elasticsearch/transport/transport/errors'
5
5
  require 'faraday/error'
6
+ require 'forwardable'
6
7
 
7
8
  require_relative '../abstract/connection'
8
9
 
@@ -13,6 +14,8 @@ module JayAPI
13
14
  # rescue the error up to a few times and re-try the connection. This way the
14
15
  # connection to Elasticsearch will be more robust.
15
16
  class Client
17
+ extend Forwardable
18
+
16
19
  # The errors that, if raised, must cause a retry of the connection.
17
20
  ERRORS = [
18
21
  ::Elasticsearch::Transport::Transport::ServerError,
@@ -33,6 +36,11 @@ module JayAPI
33
36
 
34
37
  attr_reader :transport_client, :logger, :max_attempts, :wait_strategy
35
38
 
39
+ # @return [Boolean] True if there is connectivity to the cluster, false otherwise.
40
+ # @raise [Transport::Errors::Forbidden] If the user has no permissions to
41
+ # ping the cluster.
42
+ def_delegator :transport_client, :ping
43
+
36
44
  # @param [Elasticsearch::Transport::Client] transport_client The Client
37
45
  # object that will be wrapped.
38
46
  # @param [Logging::Logger] logger
@@ -2,5 +2,5 @@
2
2
 
3
3
  module JayAPI
4
4
  # JayAPI gem's semantic version
5
- VERSION = '27.3.0'
5
+ VERSION = '27.4.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jay_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 27.3.0
4
+ version: 27.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Accenture-Industry X
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-04-04 00:00:00.000000000 Z
12
+ date: 2025-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport