elasticgraph-query_interceptor 0.19.1.0 → 0.19.2.0

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: '08a626528e33053c3d7f85253e9341624840d18505a52b9d6c5b1d7bc5c0c304'
4
- data.tar.gz: 7675be3f269d6b821b031e328d42d0b7de7aa6aea03b9586793e10f2fc06b9aa
3
+ metadata.gz: 03e82893ba4091dd3aa5d2d6a6ed9c40455d477aa6eaa098e35783c8e7dff7de
4
+ data.tar.gz: 91bb4a79f5d5f67ba4b116442c33d3fba342d6583f53009baa6bc1584c2024ef
5
5
  SHA512:
6
- metadata.gz: 404310dbefeed922367d694deb332e74655e1c8383f31b9416adb72a69a70a742af1afd89817170ff0e06e5cecadc4d53ddf04ca028341302b0dfd2273e06522
7
- data.tar.gz: db4d1ed814ce03393cab68abde5501f97cdda47fac7fdeab3d6b01c3573978584663a8d9aae3b6c741881ced9e2771c34ef83d529b6308bc22fab505fca470fb
6
+ metadata.gz: 17554e89b8c21706e016b2b2df7f2ebbd02296fc962ba473385a1e888dde00b9e55137920affda4bb888146cf4a63274e25f589789f7e351c3391a7f009380d4
7
+ data.tar.gz: 7b9b98323e966e109c71ec80ead7e791922ef95cc2c0b1cf30ac1f2416509ee94706b4deb2b3ce42c6d65e7d28224203734ceadfc0a90b64fb3d09e82ceb18b2
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2024 Block, Inc.
3
+ Copyright (c) 2024 - 2025 Block, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -19,11 +19,11 @@ your interceptor when it is initialized.
19
19
  ``` yaml
20
20
  extension_modules:
21
21
  - require_path: elastic_graph/query_interceptor/graphql_extension
22
- extension_name: ElasticGraph::QueryInterceptor::GraphQLExtension
22
+ name: ElasticGraph::QueryInterceptor::GraphQLExtension
23
23
  query_interceptor:
24
24
  interceptors:
25
25
  - require_path: ./my_app/example_interceptor
26
- extension_name: MyApp::ExampleInterceptor
26
+ name: MyApp::ExampleInterceptor
27
27
  config: # Optional
28
28
  foo: bar
29
29
  ```
@@ -1,4 +1,4 @@
1
- # Copyright 2024 Block, Inc.
1
+ # Copyright 2024 - 2025 Block, Inc.
2
2
  #
3
3
  # Use of this source code is governed by an MIT-style
4
4
  # license that can be found in the LICENSE file or at
@@ -16,21 +16,21 @@ module ElasticGraph
16
16
  def self.from_parsed_yaml(parsed_config_hash, parsed_runtime_metadata_hashes: [])
17
17
  interceptor_hashes = parsed_runtime_metadata_hashes.flat_map { |h| h["interceptors"] || [] }
18
18
 
19
- if (extension_config = parsed_config_hash["query_interceptor"])
20
- extra_keys = extension_config.keys - EXPECTED_KEYS
19
+ if (config = parsed_config_hash["query_interceptor"])
20
+ extra_keys = config.keys - EXPECTED_KEYS
21
21
 
22
22
  unless extra_keys.empty?
23
23
  raise Errors::ConfigError, "Unknown `query_interceptor` config settings: #{extra_keys.join(", ")}"
24
24
  end
25
25
 
26
- interceptor_hashes += extension_config.fetch("interceptors")
26
+ interceptor_hashes += config.fetch("interceptors")
27
27
  end
28
28
 
29
29
  loader = SchemaArtifacts::RuntimeMetadata::ExtensionLoader.new(InterceptorInterface)
30
30
 
31
31
  interceptors = interceptor_hashes.map do |hash|
32
32
  empty_config = {} # : ::Hash[::Symbol, untyped]
33
- ext = loader.load(hash.fetch("extension_name"), from: hash.fetch("require_path"), config: empty_config)
33
+ ext = loader.load(hash.fetch("name"), from: hash.fetch("require_path"), config: empty_config)
34
34
  config = hash["config"] || {} # : ::Hash[::String, untyped]
35
35
  InterceptorData.new(klass: ext.extension_class, config: config)
36
36
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2024 Block, Inc.
1
+ # Copyright 2024 - 2025 Block, Inc.
2
2
  #
3
3
  # Use of this source code is governed by an MIT-style
4
4
  # license that can be found in the LICENSE file or at
@@ -1,4 +1,4 @@
1
- # Copyright 2024 Block, Inc.
1
+ # Copyright 2024 - 2025 Block, Inc.
2
2
  #
3
3
  # Use of this source code is governed by an MIT-style
4
4
  # license that can be found in the LICENSE file or at
@@ -16,7 +16,7 @@ module ElasticGraph
16
16
  def datastore_query_adapters
17
17
  @datastore_query_adapters ||= begin
18
18
  runtime_metadata_configs = runtime_metadata.graphql_extension_modules.filter_map do |ext_mod|
19
- Support::HashUtil.stringify_keys(ext_mod.extension_config) if ext_mod.extension_class == GraphQLExtension
19
+ Support::HashUtil.stringify_keys(ext_mod.config) if ext_mod.extension_class == GraphQLExtension
20
20
  end
21
21
 
22
22
  interceptors = Config
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticgraph-query_interceptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1.0
4
+ version: 0.19.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myron Marston
8
8
  - Ben VandenBos
9
9
  - Block Engineering
10
- autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2025-02-06 00:00:00.000000000 Z
12
+ date: 2025-04-09 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: elasticgraph-graphql
@@ -18,71 +17,70 @@ dependencies:
18
17
  requirements:
19
18
  - - '='
20
19
  - !ruby/object:Gem::Version
21
- version: 0.19.1.0
20
+ version: 0.19.2.0
22
21
  type: :runtime
23
22
  prerelease: false
24
23
  version_requirements: !ruby/object:Gem::Requirement
25
24
  requirements:
26
25
  - - '='
27
26
  - !ruby/object:Gem::Version
28
- version: 0.19.1.0
27
+ version: 0.19.2.0
29
28
  - !ruby/object:Gem::Dependency
30
29
  name: elasticgraph-schema_artifacts
31
30
  requirement: !ruby/object:Gem::Requirement
32
31
  requirements:
33
32
  - - '='
34
33
  - !ruby/object:Gem::Version
35
- version: 0.19.1.0
34
+ version: 0.19.2.0
36
35
  type: :runtime
37
36
  prerelease: false
38
37
  version_requirements: !ruby/object:Gem::Requirement
39
38
  requirements:
40
39
  - - '='
41
40
  - !ruby/object:Gem::Version
42
- version: 0.19.1.0
41
+ version: 0.19.2.0
43
42
  - !ruby/object:Gem::Dependency
44
43
  name: elasticgraph-elasticsearch
45
44
  requirement: !ruby/object:Gem::Requirement
46
45
  requirements:
47
46
  - - '='
48
47
  - !ruby/object:Gem::Version
49
- version: 0.19.1.0
48
+ version: 0.19.2.0
50
49
  type: :development
51
50
  prerelease: false
52
51
  version_requirements: !ruby/object:Gem::Requirement
53
52
  requirements:
54
53
  - - '='
55
54
  - !ruby/object:Gem::Version
56
- version: 0.19.1.0
55
+ version: 0.19.2.0
57
56
  - !ruby/object:Gem::Dependency
58
57
  name: elasticgraph-opensearch
59
58
  requirement: !ruby/object:Gem::Requirement
60
59
  requirements:
61
60
  - - '='
62
61
  - !ruby/object:Gem::Version
63
- version: 0.19.1.0
62
+ version: 0.19.2.0
64
63
  type: :development
65
64
  prerelease: false
66
65
  version_requirements: !ruby/object:Gem::Requirement
67
66
  requirements:
68
67
  - - '='
69
68
  - !ruby/object:Gem::Version
70
- version: 0.19.1.0
69
+ version: 0.19.2.0
71
70
  - !ruby/object:Gem::Dependency
72
71
  name: elasticgraph-schema_definition
73
72
  requirement: !ruby/object:Gem::Requirement
74
73
  requirements:
75
74
  - - '='
76
75
  - !ruby/object:Gem::Version
77
- version: 0.19.1.0
76
+ version: 0.19.2.0
78
77
  type: :development
79
78
  prerelease: false
80
79
  version_requirements: !ruby/object:Gem::Requirement
81
80
  requirements:
82
81
  - - '='
83
82
  - !ruby/object:Gem::Version
84
- version: 0.19.1.0
85
- description:
83
+ version: 0.19.2.0
86
84
  email:
87
85
  - myron@squareup.com
88
86
  executables: []
@@ -99,12 +97,11 @@ licenses:
99
97
  - MIT
100
98
  metadata:
101
99
  bug_tracker_uri: https://github.com/block/elasticgraph/issues
102
- changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.1.0
103
- documentation_uri: https://block.github.io/elasticgraph/docs/main/
100
+ changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.2.0
101
+ documentation_uri: https://block.github.io/elasticgraph/api-docs/v0.19.2.0/
104
102
  homepage_uri: https://block.github.io/elasticgraph/
105
- source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.1.0/elasticgraph-query_interceptor
103
+ source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.2.0/elasticgraph-query_interceptor
106
104
  gem_category: extension
107
- post_install_message:
108
105
  rdoc_options: []
109
106
  require_paths:
110
107
  - lib
@@ -122,8 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
119
  - !ruby/object:Gem::Version
123
120
  version: '0'
124
121
  requirements: []
125
- rubygems_version: 3.5.22
126
- signing_key:
122
+ rubygems_version: 3.6.2
127
123
  specification_version: 4
128
124
  summary: An ElasticGraph extension for intercepting datastore queries.
129
125
  test_files: []