jay_api 29.2.0 → 29.3.1

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: d730f73b47853cc0604558da470c22fe1818b492dadf61c4c3a0dd6cb567f00d
4
- data.tar.gz: a5a7476fd2d5c402d00580e2f5420a201e395076b15659e70b3aa225002c0dfb
3
+ metadata.gz: c4dc3e0a1c55fc4d24d117a2c24f415dfcd4d481c41bcc698ab22b9680b2c1ff
4
+ data.tar.gz: b8402e498357724ad86f0516d82e937049176cdb54476c49dab03bf7a941ce15
5
5
  SHA512:
6
- metadata.gz: 38eecb188ae827dd18ad9aaf03ef9466f0cb09d6732e559d042ccdb299bf27f9333527553658b6722c1e932cd2de238df8df63519a03c41e9e74dbc61a70361c
7
- data.tar.gz: 419aa1470d24e060b25250655e515b6c2a72c0f558015406b17ea5a571fb33c978e9f624821441f9756fd8922f45315bfd2960c2bd8cb4ece4dbc825201a248f
6
+ metadata.gz: 77770aca2b7203de9a0e76c5293b21db21ff4f6fb13c4f02f19b3cd3740af58033aacf82f24131b2ed2aa20a1bfec22c9d29d837735fd5ad40081a5642e82e95
7
+ data.tar.gz: fbe4d05866d4b6f8b41a3b1ca1a458c22f59352d748619b459b20518a476fc4811ff11253b456c00b13787d8a47f38f4868b914a786ef8a3033f0bef6ca413a0
data/CHANGELOG.md CHANGED
@@ -8,6 +8,18 @@ Please mark backwards incompatible changes with an exclamation mark at the start
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [29.3.1] - 2025-12-15
12
+
13
+ ### Fixed
14
+ - `PropertiesFetcher#last` now correctly returns the last set of properties
15
+ (ordered chronologically).
16
+
17
+ ## [29.3.0] - 2025-12-11
18
+
19
+ ### Added
20
+ - The `timeout` parameter to `Elasticsearch::ClientFactory#create`. The parameter
21
+ allows the user to specify the timeout in seconds for Elasticsearch requests.
22
+
11
23
  ## [29.2.0] - 2025-12-09
12
24
 
13
25
  ### Added
@@ -62,13 +62,17 @@ module JayAPI
62
62
  # each connection will be:
63
63
  # * wait_interval with :constant wait strategy
64
64
  # * wait_interval**i with :geometric wait strategy (where i is the i'th re-try)
65
+ # @param [Integer] timeout The number of seconds to wait for Elasticsearch's
66
+ # response. For big queries that fetch large amounts of data the default
67
+ # timeout may be too low.
65
68
  # @return [JayAPI::Elasticsearch::Client] The Elasticsearch client.
66
- def create(max_attempts: MAX_ATTEMPTS, wait_strategy: :geometric, wait_interval: WAIT_INTERVAL)
69
+ def create(max_attempts: MAX_ATTEMPTS, wait_strategy: :geometric, wait_interval: WAIT_INTERVAL, timeout: nil)
67
70
  JayAPI::Elasticsearch::Client.new(
68
- ::Elasticsearch::Client.new(
71
+ ::Elasticsearch::Client.new({
69
72
  hosts: [host],
70
- log: false
71
- ),
73
+ log: false,
74
+ request_timeout: timeout
75
+ }.compact),
72
76
  logger,
73
77
  max_attempts: max_attempts,
74
78
  wait_strategy: WAIT_STRATEGIES[wait_strategy].new(wait_interval: wait_interval, logger: logger)
@@ -129,7 +129,7 @@ module JayAPI
129
129
  # @return [Hash, nil] The last set of properties (ordered chronologically)
130
130
  # or +nil+ if no properties are found.
131
131
  def last
132
- sort_records('asc').size(1)
132
+ sort_records('desc').size(1)
133
133
  fetch_properties.last
134
134
  end
135
135
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module JayAPI
4
4
  # JayAPI gem's semantic version
5
- VERSION = '29.2.0'
5
+ VERSION = '29.3.1'
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: 29.2.0
4
+ version: 29.3.1
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-12-09 00:00:00.000000000 Z
12
+ date: 2025-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport