elasticgraph-opensearch 0.18.0.4 → 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: d6c6a74cc74e99d6d2ae29e0e7f57f3e9e449df8c6d6fba7eed2eb8248a380fa
4
- data.tar.gz: 35ecd1e37cf7f03c65b824d16b3e1b2aa11f9c54842f8fb19b794edb85a119cc
3
+ metadata.gz: 13017a6ffe982b7dc321c96d8cdc5c5aae00ec03948cb454f5055e43e2fd1137
4
+ data.tar.gz: ae05420393d43e9828d3253c6a9af6b56ddd59e35fb5e1059fec4ab148072897
5
5
  SHA512:
6
- metadata.gz: eb9bccacfae4fa89211c91bd1fe2a4407d071894186268ba84aab5f67fe9b362ed26b195b94d9be2b3d4264b9d4fe638dc7c98c4fa3f7722245ab471939c2209
7
- data.tar.gz: f408741513a9862af3178feb8a37f7eef1b8d7a9a8d488e8abe4b9cf1a083357aa83a4d76430845016a1882dbdea31200fb95488fa68bb0cb7e3dc1c8c3ffa29
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.4
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-06 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.4
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.4
188
+ version: 0.18.0.5
187
189
  - !ruby/object:Gem::Dependency
188
190
  name: faraday
189
191
  requirement: !ruby/object:Gem::Requirement