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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/jay_api/elasticsearch/client.rb +8 -0
- data/lib/jay_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a6edc53b541759520ecc03ea41bd03119d4c89aca3967d6a108d7b4329d31ac
|
4
|
+
data.tar.gz: 576525ff4b4a470f1b81839990344837f6907bd3d0e54acd9dab7ccff7090dce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54bf37bfd8b82a8337645a8064b2cc82707d8c985816646ae23774b917676b7a79642710420dba680cb163491fb8035eaed603ac22c86410c63e43907805a14d
|
7
|
+
data.tar.gz: 4525bc1fb75c38f6e741e245757e3261c9bf4a0981d1e65da3756c65f24610ac66d25480a6d842f54c5c9097fad6612e05736310226466ddd783df13b142266f
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/jay_api/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|