elasticgraph-admin 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: 39ab07de704f918c20eef8cee23ced4eb19fc3cf292c628669dfbeec82f3cbf3
4
- data.tar.gz: 7f713f2c6bf036c133f1f90ba37369dd965c60f35ea27f8d76f58324bbaf7910
3
+ metadata.gz: 1ab358919860aa13e31ac97ab90f43335990ffd89c085b8068e6744373bb185e
4
+ data.tar.gz: 16cc6f958ab4059b174c4355c594a5afb86c82878c256d98f6df9e0c236c93cc
5
5
  SHA512:
6
- metadata.gz: ddf97ca83a490a84f48add7892bdd19781ca17da034a0c0a178bafcd93cc385c6fdfd95d01f633d43af50384c8e167fd889757a5eb2dc824f2f295fd413bdd2f
7
- data.tar.gz: 4c5f1026df6b239874df6b67a76d9776b1325cbf2c55e440cc276bd1ec72c2526c091ff3fe51103110140a2d2deb871ecded26cb8945121dd658393aa67771e3
6
+ metadata.gz: 9c3d34279480d4a7d84ce23fc94a7ce46ca3c0c0fdba14d981122e08d5a06016a13e72f2927ecd6f818aaf4881d252f1f6aca3e67a3ad61c455ac5b618aef028
7
+ data.tar.gz: f5e62f859ec42670148e4dbe9f5a11bc4d6eb9e8b1dbf8164903baf5e3237d8aa8c2128d7c4e456c3a2eafaf0531157e9862feaf4201e5ed22cc6b55cb1fa761
@@ -6,7 +6,7 @@
6
6
  #
7
7
  # frozen_string_literal: true
8
8
 
9
- require "elastic_graph/error"
9
+ require "elastic_graph/errors"
10
10
 
11
11
  module ElasticGraph
12
12
  class Admin
@@ -82,7 +82,7 @@ module ElasticGraph
82
82
 
83
83
  def datastore_client_named(cluster_name)
84
84
  @datastore_clients_by_name.fetch(cluster_name) do
85
- raise ClusterOperationError,
85
+ raise Errors::ClusterOperationError,
86
86
  "Unknown datastore cluster name: `#{cluster_name}`. Valid cluster names: #{@datastore_clients_by_name.keys}"
87
87
  end
88
88
  end
@@ -7,7 +7,7 @@
7
7
  # frozen_string_literal: true
8
8
 
9
9
  require "elastic_graph/admin/cluster_configurator/action_reporter"
10
- require "elastic_graph/error"
10
+ require "elastic_graph/errors"
11
11
 
12
12
  module ElasticGraph
13
13
  class Admin
@@ -8,7 +8,7 @@
8
8
 
9
9
  require "elastic_graph/admin/cluster_configurator/script_configurator"
10
10
  require "elastic_graph/admin/index_definition_configurator"
11
- require "elastic_graph/error"
11
+ require "elastic_graph/errors"
12
12
  require "stringio"
13
13
 
14
14
  module ElasticGraph
@@ -55,7 +55,7 @@ module ElasticGraph
55
55
  "#{index + 1}): #{error}"
56
56
  end.join("\n#{"=" * 80}\n\n")
57
57
 
58
- raise ClusterOperationError, "Got #{errors.size} validation error(s):\n\n#{error_descriptions}"
58
+ raise Errors::ClusterOperationError, "Got #{errors.size} validation error(s):\n\n#{error_descriptions}"
59
59
  end
60
60
 
61
61
  script_configurators.each(&:configure!)
@@ -77,12 +77,12 @@ module ElasticGraph
77
77
  index_def_name = args.fetch(:index_def_name)
78
78
  cluster_name = args.fetch(:cluster_name)
79
79
  datastore_client = admin.datastore_core.clients_by_name.fetch(cluster_name) do |key|
80
- raise IndexOperationError, "Cluster named `#{key}` does not exist. Valid clusters: #{admin.datastore_core.clients_by_name.keys}."
80
+ raise Errors::IndexOperationError, "Cluster named `#{key}` does not exist. Valid clusters: #{admin.datastore_core.clients_by_name.keys}."
81
81
  end
82
82
 
83
83
  index_def = admin.datastore_core.index_definitions_by_name.fetch(index_def_name)
84
84
  unless prototype_index_names.include?(index_def.name)
85
- raise IndexOperationError, "Unable to drop live index #{index_def_name}. Deleting a live index is extremely dangerous. " \
85
+ raise Errors::IndexOperationError, "Unable to drop live index #{index_def_name}. Deleting a live index is extremely dangerous. " \
86
86
  "Please ensure this is indeed intended, add the index name to the `prototype_index_names` list and retry."
87
87
  end
88
88
 
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticgraph-admin
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
@@ -266,56 +268,56 @@ dependencies:
266
268
  requirements:
267
269
  - - '='
268
270
  - !ruby/object:Gem::Version
269
- version: 0.18.0.3
271
+ version: 0.18.0.5
270
272
  type: :runtime
271
273
  prerelease: false
272
274
  version_requirements: !ruby/object:Gem::Requirement
273
275
  requirements:
274
276
  - - '='
275
277
  - !ruby/object:Gem::Version
276
- version: 0.18.0.3
278
+ version: 0.18.0.5
277
279
  - !ruby/object:Gem::Dependency
278
280
  name: elasticgraph-indexer
279
281
  requirement: !ruby/object:Gem::Requirement
280
282
  requirements:
281
283
  - - '='
282
284
  - !ruby/object:Gem::Version
283
- version: 0.18.0.3
285
+ version: 0.18.0.5
284
286
  type: :runtime
285
287
  prerelease: false
286
288
  version_requirements: !ruby/object:Gem::Requirement
287
289
  requirements:
288
290
  - - '='
289
291
  - !ruby/object:Gem::Version
290
- version: 0.18.0.3
292
+ version: 0.18.0.5
291
293
  - !ruby/object:Gem::Dependency
292
294
  name: elasticgraph-schema_artifacts
293
295
  requirement: !ruby/object:Gem::Requirement
294
296
  requirements:
295
297
  - - '='
296
298
  - !ruby/object:Gem::Version
297
- version: 0.18.0.3
299
+ version: 0.18.0.5
298
300
  type: :runtime
299
301
  prerelease: false
300
302
  version_requirements: !ruby/object:Gem::Requirement
301
303
  requirements:
302
304
  - - '='
303
305
  - !ruby/object:Gem::Version
304
- version: 0.18.0.3
306
+ version: 0.18.0.5
305
307
  - !ruby/object:Gem::Dependency
306
308
  name: elasticgraph-support
307
309
  requirement: !ruby/object:Gem::Requirement
308
310
  requirements:
309
311
  - - '='
310
312
  - !ruby/object:Gem::Version
311
- version: 0.18.0.3
313
+ version: 0.18.0.5
312
314
  type: :runtime
313
315
  prerelease: false
314
316
  version_requirements: !ruby/object:Gem::Requirement
315
317
  requirements:
316
318
  - - '='
317
319
  - !ruby/object:Gem::Version
318
- version: 0.18.0.3
320
+ version: 0.18.0.5
319
321
  - !ruby/object:Gem::Dependency
320
322
  name: rake
321
323
  requirement: !ruby/object:Gem::Requirement
@@ -336,42 +338,42 @@ dependencies:
336
338
  requirements:
337
339
  - - '='
338
340
  - !ruby/object:Gem::Version
339
- version: 0.18.0.3
341
+ version: 0.18.0.5
340
342
  type: :development
341
343
  prerelease: false
342
344
  version_requirements: !ruby/object:Gem::Requirement
343
345
  requirements:
344
346
  - - '='
345
347
  - !ruby/object:Gem::Version
346
- version: 0.18.0.3
348
+ version: 0.18.0.5
347
349
  - !ruby/object:Gem::Dependency
348
350
  name: elasticgraph-opensearch
349
351
  requirement: !ruby/object:Gem::Requirement
350
352
  requirements:
351
353
  - - '='
352
354
  - !ruby/object:Gem::Version
353
- version: 0.18.0.3
355
+ version: 0.18.0.5
354
356
  type: :development
355
357
  prerelease: false
356
358
  version_requirements: !ruby/object:Gem::Requirement
357
359
  requirements:
358
360
  - - '='
359
361
  - !ruby/object:Gem::Version
360
- version: 0.18.0.3
362
+ version: 0.18.0.5
361
363
  - !ruby/object:Gem::Dependency
362
364
  name: elasticgraph-schema_definition
363
365
  requirement: !ruby/object:Gem::Requirement
364
366
  requirements:
365
367
  - - '='
366
368
  - !ruby/object:Gem::Version
367
- version: 0.18.0.3
369
+ version: 0.18.0.5
368
370
  type: :development
369
371
  prerelease: false
370
372
  version_requirements: !ruby/object:Gem::Requirement
371
373
  requirements:
372
374
  - - '='
373
375
  - !ruby/object:Gem::Version
374
- version: 0.18.0.3
376
+ version: 0.18.0.5
375
377
  description:
376
378
  email:
377
379
  - myron@squareup.com