elasticgraph-indexer 0.19.0.0.rc2 → 0.19.0.0

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: 607e957cae9b12819dbefc0a43df5a3eccc5e1ce0410473a8d43936342bedecb
4
- data.tar.gz: bf2c05c39256440e7d64e4a6f7ee8b9b12696f8534a922e550aedbb5b928e349
3
+ metadata.gz: 3692c87103496ea8c620fffd82a484748cd1f297d6dd6beccd781c553b6c826b
4
+ data.tar.gz: 6431bd1cf22f4643ec046bc0182d5e80608da9e92cfd1a4fd04926c00041800e
5
5
  SHA512:
6
- metadata.gz: 3f0a6c06ea8e153eab1f8e5ff2a1e69437f624906ac34fa7a8895fd9bf493e5fd7268bbc90200079ca54effcc650644502abce3adb25481dbf0a2f728b79ccb6
7
- data.tar.gz: 062cf001ce3b9903de4c32818dbb2e1f629db3c13309b4a06b82e7db9922b1b1bb49618d31d83c8628bb429117df1da9a392ed11ec8810fc9a78875b9646abdc
6
+ metadata.gz: 5b70de62a53059cc106dc165854704a54c95cb0ddcda09a12b8241434561494bb7ce8c987bb958b0e56c5cb558ae25412312ffbaec55ced3b69ba631bb4fe850
7
+ data.tar.gz: 53bc6a80ff61a44992499b5207f28f298b8a27dbb647a7e7413021c051bb5e63be435f02709a802bec868ea8419b942f23f18a6fc0130d918f842ff2487766f5
@@ -77,10 +77,8 @@ module ElasticGraph
77
77
  # Before writing these operations, verify their destination index mapping are consistent.
78
78
  validate_mapping_completeness_of!(:accessible_cluster_names_to_index_into, *operations.map(&:destination_index_def).uniq)
79
79
 
80
- # @type var ops_by_client: ::Hash[DatastoreCore::_Client, ::Array[_Operation]]
81
- ops_by_client = ::Hash.new { |h, k| h[k] = [] }
82
- # @type var unsupported_ops: ::Set[_Operation]
83
- unsupported_ops = ::Set.new
80
+ ops_by_client = ::Hash.new { |h, k| h[k] = [] } # : ::Hash[DatastoreCore::_Client, ::Array[_Operation]]
81
+ unsupported_ops = ::Set.new # : ::Set[_Operation]
84
82
 
85
83
  operations.reject { |op| op.to_datastore_bulk.empty? }.each do |op|
86
84
  # Note: this intentionally does not use `accessible_cluster_names_to_index_into`.
@@ -90,7 +88,8 @@ module ElasticGraph
90
88
 
91
89
  cluster_names.each do |cluster_name|
92
90
  if (client = @datastore_clients_by_name[cluster_name])
93
- ops_by_client[client] << op
91
+ ops = ops_by_client[client] # : ::Array[::ElasticGraph::Indexer::_Operation]
92
+ ops << op
94
93
  else
95
94
  unsupported_ops << op
96
95
  end
@@ -293,8 +292,7 @@ module ElasticGraph
293
292
  if failures.empty?
294
293
  client_names_and_results.each_with_object(_ = {}) do |(client_name, _success_or_failure, results), accum|
295
294
  results.each do |op, version|
296
- accum[op] ||= _ = {}
297
- accum[op][client_name] = version
295
+ (accum[op] ||= {})[client_name] = version
298
296
  end
299
297
  end
300
298
  else
@@ -96,7 +96,7 @@ module ElasticGraph
96
96
  end
97
97
 
98
98
  def validator(type, selected_json_schema_version)
99
- factory = validator_factories_by_version[selected_json_schema_version]
99
+ factory = validator_factories_by_version[selected_json_schema_version] # : JSONSchema::ValidatorFactory
100
100
  factory.validator_for(type)
101
101
  end
102
102
 
@@ -31,7 +31,7 @@ module ElasticGraph
31
31
 
32
32
  # Gets the `RecordPreparer` for the given JSON schema version.
33
33
  def for_json_schema_version(json_schema_version)
34
- @preparers_by_json_schema_version[json_schema_version]
34
+ @preparers_by_json_schema_version[json_schema_version] # : RecordPreparer
35
35
  end
36
36
 
37
37
  # Gets the `RecordPreparer` for the latest JSON schema version. Intended primarily
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticgraph-indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0.0.rc2
4
+ version: 0.19.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myron Marston
8
8
  - Ben VandenBos
9
9
  - Block Engineering
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-12-03 00:00:00.000000000 Z
13
+ date: 2024-12-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop-factory_bot
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '1.8'
77
+ version: 1.9.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '1.8'
84
+ version: 1.9.0
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: coderay
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -268,56 +268,56 @@ dependencies:
268
268
  requirements:
269
269
  - - '='
270
270
  - !ruby/object:Gem::Version
271
- version: 0.19.0.0.rc2
271
+ version: 0.19.0.0
272
272
  type: :runtime
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
276
  - - '='
277
277
  - !ruby/object:Gem::Version
278
- version: 0.19.0.0.rc2
278
+ version: 0.19.0.0
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: elasticgraph-json_schema
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
283
  - - '='
284
284
  - !ruby/object:Gem::Version
285
- version: 0.19.0.0.rc2
285
+ version: 0.19.0.0
286
286
  type: :runtime
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - '='
291
291
  - !ruby/object:Gem::Version
292
- version: 0.19.0.0.rc2
292
+ version: 0.19.0.0
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: elasticgraph-schema_artifacts
295
295
  requirement: !ruby/object:Gem::Requirement
296
296
  requirements:
297
297
  - - '='
298
298
  - !ruby/object:Gem::Version
299
- version: 0.19.0.0.rc2
299
+ version: 0.19.0.0
300
300
  type: :runtime
301
301
  prerelease: false
302
302
  version_requirements: !ruby/object:Gem::Requirement
303
303
  requirements:
304
304
  - - '='
305
305
  - !ruby/object:Gem::Version
306
- version: 0.19.0.0.rc2
306
+ version: 0.19.0.0
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: elasticgraph-support
309
309
  requirement: !ruby/object:Gem::Requirement
310
310
  requirements:
311
311
  - - '='
312
312
  - !ruby/object:Gem::Version
313
- version: 0.19.0.0.rc2
313
+ version: 0.19.0.0
314
314
  type: :runtime
315
315
  prerelease: false
316
316
  version_requirements: !ruby/object:Gem::Requirement
317
317
  requirements:
318
318
  - - '='
319
319
  - !ruby/object:Gem::Version
320
- version: 0.19.0.0.rc2
320
+ version: 0.19.0.0
321
321
  - !ruby/object:Gem::Dependency
322
322
  name: hashdiff
323
323
  requirement: !ruby/object:Gem::Requirement
@@ -338,57 +338,57 @@ dependencies:
338
338
  requirements:
339
339
  - - '='
340
340
  - !ruby/object:Gem::Version
341
- version: 0.19.0.0.rc2
341
+ version: 0.19.0.0
342
342
  type: :development
343
343
  prerelease: false
344
344
  version_requirements: !ruby/object:Gem::Requirement
345
345
  requirements:
346
346
  - - '='
347
347
  - !ruby/object:Gem::Version
348
- version: 0.19.0.0.rc2
348
+ version: 0.19.0.0
349
349
  - !ruby/object:Gem::Dependency
350
350
  name: elasticgraph-elasticsearch
351
351
  requirement: !ruby/object:Gem::Requirement
352
352
  requirements:
353
353
  - - '='
354
354
  - !ruby/object:Gem::Version
355
- version: 0.19.0.0.rc2
355
+ version: 0.19.0.0
356
356
  type: :development
357
357
  prerelease: false
358
358
  version_requirements: !ruby/object:Gem::Requirement
359
359
  requirements:
360
360
  - - '='
361
361
  - !ruby/object:Gem::Version
362
- version: 0.19.0.0.rc2
362
+ version: 0.19.0.0
363
363
  - !ruby/object:Gem::Dependency
364
364
  name: elasticgraph-opensearch
365
365
  requirement: !ruby/object:Gem::Requirement
366
366
  requirements:
367
367
  - - '='
368
368
  - !ruby/object:Gem::Version
369
- version: 0.19.0.0.rc2
369
+ version: 0.19.0.0
370
370
  type: :development
371
371
  prerelease: false
372
372
  version_requirements: !ruby/object:Gem::Requirement
373
373
  requirements:
374
374
  - - '='
375
375
  - !ruby/object:Gem::Version
376
- version: 0.19.0.0.rc2
376
+ version: 0.19.0.0
377
377
  - !ruby/object:Gem::Dependency
378
378
  name: elasticgraph-schema_definition
379
379
  requirement: !ruby/object:Gem::Requirement
380
380
  requirements:
381
381
  - - '='
382
382
  - !ruby/object:Gem::Version
383
- version: 0.19.0.0.rc2
383
+ version: 0.19.0.0
384
384
  type: :development
385
385
  prerelease: false
386
386
  version_requirements: !ruby/object:Gem::Requirement
387
387
  requirements:
388
388
  - - '='
389
389
  - !ruby/object:Gem::Version
390
- version: 0.19.0.0.rc2
391
- description:
390
+ version: 0.19.0.0
391
+ description:
392
392
  email:
393
393
  - myron@squareup.com
394
394
  executables: []
@@ -422,12 +422,12 @@ licenses:
422
422
  - MIT
423
423
  metadata:
424
424
  bug_tracker_uri: https://github.com/block/elasticgraph/issues
425
- changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.0.0.rc2
425
+ changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.0.0
426
426
  documentation_uri: https://block.github.io/elasticgraph/docs/main/
427
427
  homepage_uri: https://block.github.io/elasticgraph/
428
- source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.0.0.rc2/elasticgraph-indexer
428
+ source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.0.0/elasticgraph-indexer
429
429
  gem_category: core
430
- post_install_message:
430
+ post_install_message:
431
431
  rdoc_options: []
432
432
  require_paths:
433
433
  - lib
@@ -442,8 +442,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
442
442
  - !ruby/object:Gem::Version
443
443
  version: '0'
444
444
  requirements: []
445
- rubygems_version: 3.5.9
446
- signing_key:
445
+ rubygems_version: 3.5.22
446
+ signing_key:
447
447
  specification_version: 4
448
448
  summary: ElasticGraph gem that provides APIs to robustly index data into a datastore.
449
449
  test_files: []