spikard 0.17.0 → 0.17.2
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 +4 -4
- data/ext/spikard_rb/native/Cargo.lock +216 -366
- data/ext/spikard_rb/native/Cargo.toml +7 -7
- data/ext/spikard_rb/src/lib.rs +130 -89
- data/lib/spikard/native.rb +5 -9
- data/lib/spikard/version.rb +2 -2
- data/sig/types.rbs +13 -14
- metadata +1 -1
data/lib/spikard/native.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:2532173fc0980492cdce787d5c6eb6b03728b2875dcbe95bab84bdad75239535
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -66,12 +66,10 @@ module Spikard
|
|
|
66
66
|
|
|
67
67
|
# @return [String]
|
|
68
68
|
sig { returns(String) }
|
|
69
|
-
|
|
70
|
-
def scheme = super
|
|
69
|
+
def scheme = Data.instance_method(:to_h).bind_call(self).fetch(:scheme)
|
|
71
70
|
# @return [T.nilable(String)]
|
|
72
71
|
sig { returns(T.nilable(String)) }
|
|
73
|
-
|
|
74
|
-
def bearer_format = super
|
|
72
|
+
def bearer_format = Data.instance_method(:to_h).bind_call(self).fetch(:bearer_format)
|
|
75
73
|
sig { returns(T::Boolean) }
|
|
76
74
|
def http? = true
|
|
77
75
|
sig { returns(T::Boolean) }
|
|
@@ -90,12 +88,10 @@ module Spikard
|
|
|
90
88
|
|
|
91
89
|
# @return [String]
|
|
92
90
|
sig { returns(String) }
|
|
93
|
-
|
|
94
|
-
def location = super
|
|
91
|
+
def location = Data.instance_method(:to_h).bind_call(self).fetch(:location)
|
|
95
92
|
# @return [String]
|
|
96
93
|
sig { returns(String) }
|
|
97
|
-
|
|
98
|
-
def name = super
|
|
94
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
99
95
|
sig { returns(T::Boolean) }
|
|
100
96
|
def http? = false
|
|
101
97
|
sig { returns(T::Boolean) }
|
data/lib/spikard/version.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:f386c9cb541ad35e0ed41d33f9008fc4ea76ba41ce546c3f937f2a9992b09419
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module Spikard
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "0.17.
|
|
9
|
+
VERSION = "0.17.2"
|
|
10
10
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:c8e2652b8aa83d8bfb2f8a4a9f625690fe073527382237a1b4c993332c153228
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -30,8 +30,8 @@ def initialize: (keys: Array[String], header_name: String) -> void
|
|
|
30
30
|
def pre_handler: (String hook) -> App
|
|
31
31
|
def on_response: (String hook) -> App
|
|
32
32
|
def on_error: (String hook) -> App
|
|
33
|
-
def register_graphql_route: (String path,
|
|
34
|
-
def register_graphql_sdl_route: (String path,
|
|
33
|
+
def register_graphql_route: (String path, enum_Method method, String schema_type, SchemaConfig config) -> App
|
|
34
|
+
def register_graphql_sdl_route: (String path, enum_Method method, String sdl, json_value response_data, DynamicSchemaConfig config) -> App
|
|
35
35
|
def merge_axum_router: (String router) -> App
|
|
36
36
|
def attach_axum_router: (String router) -> App
|
|
37
37
|
def into_router: () -> String
|
|
@@ -164,6 +164,9 @@ def initialize: (?operation_id: String, ?acknowledged: bool, ?event: String, ?er
|
|
|
164
164
|
class HandlerResult
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
+
class HookRegistry
|
|
168
|
+
end
|
|
169
|
+
|
|
167
170
|
class JsonRpcConfig
|
|
168
171
|
attr_reader enabled: bool
|
|
169
172
|
attr_reader endpoint_path: String
|
|
@@ -381,7 +384,7 @@ def initialize: (status: Integer, headers: Hash[String, String], body: String) -
|
|
|
381
384
|
def openrpc_spec: (json_value spec) -> RouteBuilder
|
|
382
385
|
def sync: () -> RouteBuilder
|
|
383
386
|
def handler_dependencies: (Array[String] dependencies) -> RouteBuilder
|
|
384
|
-
def self.new: (
|
|
387
|
+
def self.new: (enum_Method method, String path) -> RouteBuilder
|
|
385
388
|
end
|
|
386
389
|
|
|
387
390
|
class SchemaConfig
|
|
@@ -444,10 +447,10 @@ def initialize: (?host: String, ?port: Integer, ?workers: Integer, ?enable_reque
|
|
|
444
447
|
end
|
|
445
448
|
|
|
446
449
|
class TestClient
|
|
447
|
-
def
|
|
448
|
-
def
|
|
449
|
-
def
|
|
450
|
-
def
|
|
450
|
+
def graphql_at_async: (String endpoint, String query, ?json_value variables, ?String operation_name) -> ResponseSnapshot
|
|
451
|
+
def graphql_async: (String query, ?json_value variables, ?String operation_name) -> ResponseSnapshot
|
|
452
|
+
def graphql_subscription_at_async: (String endpoint, String query, ?json_value variables, ?String operation_name) -> GraphQLSubscriptionSnapshot
|
|
453
|
+
def graphql_subscription_async: (String query, ?json_value variables, ?String operation_name) -> GraphQLSubscriptionSnapshot
|
|
451
454
|
end
|
|
452
455
|
|
|
453
456
|
class TestingSseEvent
|
|
@@ -485,13 +488,9 @@ def initialize: (?host: String, ?port: Integer, ?workers: Integer, ?enable_reque
|
|
|
485
488
|
def initialize: (valid: bool, errors: Array[String]) -> void
|
|
486
489
|
end
|
|
487
490
|
|
|
488
|
-
|
|
489
|
-
type value = :OnRequest | :PreValidation | :PreHandler | :OnResponse | :OnError
|
|
490
|
-
end
|
|
491
|
+
type enum_LifecycleHookPhase = :OnRequest | :PreValidation | :PreHandler | :OnResponse | :OnError
|
|
491
492
|
|
|
492
|
-
|
|
493
|
-
type value = :Get | :Post | :Put | :Patch | :Delete | :Head | :Options | :Connect | :Trace
|
|
494
|
-
end
|
|
493
|
+
type enum_Method = :Get | :Post | :Put | :Patch | :Delete | :Head | :Options | :Connect | :Trace
|
|
495
494
|
|
|
496
495
|
class SecuritySchemeInfo
|
|
497
496
|
end
|