elasticgraph-opensearch 0.18.0.3 → 0.18.0.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: 797bc74469aa4a71b3b80306dabdf89f79ba8317f45596acc15fb64660bb771a
4
- data.tar.gz: de255680d40845a7cdefcdfebd8332a0debd92504462a1c0dd2af43fdf6d384f
3
+ metadata.gz: 13017a6ffe982b7dc321c96d8cdc5c5aae00ec03948cb454f5055e43e2fd1137
4
+ data.tar.gz: ae05420393d43e9828d3253c6a9af6b56ddd59e35fb5e1059fec4ab148072897
5
5
  SHA512:
6
- metadata.gz: aaf58765764fcc2edf1925d99c1d1ee3598ec18d6fcc7c13ff9002c97e30ec966724b15af59edce5ca523eaad4be152ed84e35b4eb59711470df6e69c94ccc19
7
- data.tar.gz: 4e2943e50230a33a78599ce997217fb0e068a0f28750086470734a0ffeb46883ac17336a07d9ee19f792ec0e9197564aef17a753ac6c39e127cf6fad77dcc9f3
6
+ metadata.gz: 35797866d4de3727ae45259179a014c227e33ce12a32f62cf8995b7fa86c28dfcea32925a729fbb99f1f267b3cd0100c4381a0451c4ac64b875351bef13e503f
7
+ data.tar.gz: '088994d9e0352d896b823f624e268b909848db6836fab33772e71b3e93778c95f12494d4b4b2a3da36cc97fc7d5916d0a0ccedd45a76ce23d5818bb034a34bc9'
@@ -7,7 +7,7 @@
7
7
  # frozen_string_literal: true
8
8
 
9
9
  require "elastic_graph/constants"
10
- require "elastic_graph/error"
10
+ require "elastic_graph/errors"
11
11
  require "elastic_graph/support/faraday_middleware/msearch_using_get_instead_of_post"
12
12
  require "elastic_graph/support/faraday_middleware/support_timeouts"
13
13
  require "elastic_graph/support/hash_util"
@@ -40,7 +40,7 @@ module ElasticGraph
40
40
 
41
41
  # Note: this overrides the default retry exceptions, which includes `Faraday::TimeoutError`.
42
42
  # That's important because we do NOT want a retry on timeout -- a timeout indicates a slow,
43
- # expensive query, and is transformed to a `RequestExceededDeadlineError` by `SupportTimeouts`,
43
+ # expensive query, and is transformed to a `Errors::RequestExceededDeadlineError` by `SupportTimeouts`,
44
44
  # anyway.
45
45
  #
46
46
  # In addition, it's worth noting that the retry middleware ONLY retries known idempotent HTTP
@@ -213,7 +213,7 @@ module ElasticGraph
213
213
  def transform_errors
214
214
  yield @raw_client
215
215
  rescue ::OpenSearch::Transport::Transport::Errors::BadRequest => ex
216
- raise BadDatastoreRequest, ex.message
216
+ raise Errors::BadDatastoreRequest, ex.message
217
217
  end
218
218
  end
219
219
  end
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticgraph-opensearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0.3
4
+ version: 0.18.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myron Marston
8
+ - Ben VandenBos
9
+ - Square Engineering
8
10
  autorequire:
9
11
  bindir: exe
10
12
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
13
+ date: 2024-09-20 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: rubocop-factory_bot
@@ -176,14 +178,14 @@ dependencies:
176
178
  requirements:
177
179
  - - '='
178
180
  - !ruby/object:Gem::Version
179
- version: 0.18.0.3
181
+ version: 0.18.0.5
180
182
  type: :runtime
181
183
  prerelease: false
182
184
  version_requirements: !ruby/object:Gem::Requirement
183
185
  requirements:
184
186
  - - '='
185
187
  - !ruby/object:Gem::Version
186
- version: 0.18.0.3
188
+ version: 0.18.0.5
187
189
  - !ruby/object:Gem::Dependency
188
190
  name: faraday
189
191
  requirement: !ruby/object:Gem::Requirement