spikard 0.15.6.pre.rc.10 → 0.15.6.pre.rc.12
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 +9 -9
- data/ext/spikard_rb/native/Cargo.toml +5 -5
- data/ext/spikard_rb/src/lib.rs +1 -1
- data/lib/spikard/native.rb +1 -1
- data/lib/spikard/service.rb +14 -1
- data/lib/spikard/version.rb +2 -2
- data/lib/spikard.rb +1 -1
- data/lib/spikard_rb.so +0 -0
- data/sig/types.rbs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74c212891f8e1b477e5fc59e0015ce1a624fb747b47e9e88d77aff425732f791
|
|
4
|
+
data.tar.gz: 8dc97514067dcfe7d897c66b3cbe6563af03785fbda966ba18b8e56c9c1b42ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec823351b8e28ede1ca5b4c63448980dade0d8ef521e88030008a2de87aa333653eeb7c43c0e2e4f9ea43d006eb734efce038b45a594bb59553f4a8ca2310fd9
|
|
7
|
+
data.tar.gz: 671c36e5a745cfff73d68485163ec323b6332b01624b30dbe03f9c6401881689cb411345b05f9e87236a6347a30ce428e2910beeb417f0d87488e5f2787b7d8f
|
|
@@ -3032,9 +3032,9 @@ dependencies = [
|
|
|
3032
3032
|
|
|
3033
3033
|
[[package]]
|
|
3034
3034
|
name = "spikard"
|
|
3035
|
-
version = "0.15.6-rc.
|
|
3035
|
+
version = "0.15.6-rc.12"
|
|
3036
3036
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3037
|
-
checksum = "
|
|
3037
|
+
checksum = "4828796d617b9248a5cfbb2b7ff0916ff430fed830b6adab70c69c7ba84abad4"
|
|
3038
3038
|
dependencies = [
|
|
3039
3039
|
"anyhow",
|
|
3040
3040
|
"axum",
|
|
@@ -3052,9 +3052,9 @@ dependencies = [
|
|
|
3052
3052
|
|
|
3053
3053
|
[[package]]
|
|
3054
3054
|
name = "spikard-core"
|
|
3055
|
-
version = "0.15.6-rc.
|
|
3055
|
+
version = "0.15.6-rc.12"
|
|
3056
3056
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3057
|
-
checksum = "
|
|
3057
|
+
checksum = "401eda0c18b51182b99a7792bd1f4e8600b53aed5ca6c69d7bfdf33bcac545a3"
|
|
3058
3058
|
dependencies = [
|
|
3059
3059
|
"anyhow",
|
|
3060
3060
|
"base64",
|
|
@@ -3078,9 +3078,9 @@ dependencies = [
|
|
|
3078
3078
|
|
|
3079
3079
|
[[package]]
|
|
3080
3080
|
name = "spikard-graphql"
|
|
3081
|
-
version = "0.15.6-rc.
|
|
3081
|
+
version = "0.15.6-rc.12"
|
|
3082
3082
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3083
|
-
checksum = "
|
|
3083
|
+
checksum = "f32d908ced9c3d58a572831ec4079353403b8cc0949782a2b1dcd59b3f59b707"
|
|
3084
3084
|
dependencies = [
|
|
3085
3085
|
"async-graphql",
|
|
3086
3086
|
"axum",
|
|
@@ -3099,9 +3099,9 @@ dependencies = [
|
|
|
3099
3099
|
|
|
3100
3100
|
[[package]]
|
|
3101
3101
|
name = "spikard-http"
|
|
3102
|
-
version = "0.15.6-rc.
|
|
3102
|
+
version = "0.15.6-rc.12"
|
|
3103
3103
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3104
|
-
checksum = "
|
|
3104
|
+
checksum = "638e59f81d8a6e812cc4e460300c4ee9eabf6794e48aff544d9942c4ea9256e3"
|
|
3105
3105
|
dependencies = [
|
|
3106
3106
|
"ahash",
|
|
3107
3107
|
"anyhow",
|
|
@@ -3154,7 +3154,7 @@ dependencies = [
|
|
|
3154
3154
|
|
|
3155
3155
|
[[package]]
|
|
3156
3156
|
name = "spikard-rb"
|
|
3157
|
-
version = "0.15.6-rc.
|
|
3157
|
+
version = "0.15.6-rc.12"
|
|
3158
3158
|
dependencies = [
|
|
3159
3159
|
"magnus",
|
|
3160
3160
|
"rb-sys",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "spikard-rb"
|
|
3
|
-
version = "0.15.6-rc.
|
|
3
|
+
version = "0.15.6-rc.12"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
description = "Rust-centric multi-language HTTP framework with polyglot bindings"
|
|
@@ -21,8 +21,8 @@ magnus = "0.8"
|
|
|
21
21
|
rb-sys = ">=0.9, <0.9.128"
|
|
22
22
|
serde = { version = "1", features = ["derive"] }
|
|
23
23
|
serde_json = "1"
|
|
24
|
-
spikard = { version = "0.15.6-rc.
|
|
25
|
-
spikard-core = { version = "0.15.6-rc.
|
|
26
|
-
spikard-graphql = { version = "0.15.6-rc.
|
|
27
|
-
spikard-http = { version = "0.15.6-rc.
|
|
24
|
+
spikard = { version = "0.15.6-rc.12", features = ["di"] }
|
|
25
|
+
spikard-core = { version = "0.15.6-rc.12" }
|
|
26
|
+
spikard-graphql = { version = "0.15.6-rc.12" }
|
|
27
|
+
spikard-http = { version = "0.15.6-rc.12" }
|
|
28
28
|
tokio = { version = "1", features = ["rt-multi-thread"] }
|
data/ext/spikard_rb/src/lib.rs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef. DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:f2c04bb99fd35788a6ffdc6a115217d6bf1b51843835dada2d360cbe67f496cf
|
|
3
3
|
// Re-generate with: alef generate
|
|
4
4
|
#![allow(dead_code, unused_imports, unused_variables)]
|
|
5
5
|
#![allow(
|
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:f2c04bb99fd35788a6ffdc6a115217d6bf1b51843835dada2d360cbe67f496cf
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
data/lib/spikard/service.rb
CHANGED
|
@@ -9,11 +9,13 @@ module Spikard
|
|
|
9
9
|
# Create a new application with the default server configuration.
|
|
10
10
|
@registrations = []
|
|
11
11
|
end
|
|
12
|
+
|
|
12
13
|
def config(config)
|
|
13
14
|
# Set the server configuration.
|
|
14
15
|
@config = config
|
|
15
16
|
self
|
|
16
17
|
end
|
|
18
|
+
|
|
17
19
|
def route(builder, &block)
|
|
18
20
|
# Register a route using the provided builder and handler function.
|
|
19
21
|
#
|
|
@@ -23,56 +25,67 @@ module Spikard
|
|
|
23
25
|
@registrations.push(["route", [builder], block])
|
|
24
26
|
self
|
|
25
27
|
end
|
|
28
|
+
|
|
26
29
|
def register_route(builder, handler)
|
|
27
30
|
# Register a route callback directly without block syntax.
|
|
28
31
|
@registrations.push(["route", [builder], handler])
|
|
29
32
|
self
|
|
30
33
|
end
|
|
34
|
+
|
|
31
35
|
def get(path: String, &block)
|
|
32
36
|
# Register a GET route at the given path.
|
|
33
37
|
@registrations.push(["get", [spikard::Method::Get, path], block])
|
|
34
38
|
self
|
|
35
39
|
end
|
|
40
|
+
|
|
36
41
|
def post(path: String, &block)
|
|
37
42
|
# Register a POST route at the given path.
|
|
38
43
|
@registrations.push(["post", [spikard::Method::Post, path], block])
|
|
39
44
|
self
|
|
40
45
|
end
|
|
46
|
+
|
|
41
47
|
def put(path: String, &block)
|
|
42
48
|
# Register a PUT route at the given path.
|
|
43
49
|
@registrations.push(["put", [spikard::Method::Put, path], block])
|
|
44
50
|
self
|
|
45
51
|
end
|
|
52
|
+
|
|
46
53
|
def patch(path: String, &block)
|
|
47
54
|
# Register a PATCH route at the given path.
|
|
48
55
|
@registrations.push(["patch", [spikard::Method::Patch, path], block])
|
|
49
56
|
self
|
|
50
57
|
end
|
|
58
|
+
|
|
51
59
|
def delete(path: String, &block)
|
|
52
60
|
# Register a DELETE route at the given path.
|
|
53
61
|
@registrations.push(["delete", [spikard::Method::Delete, path], block])
|
|
54
62
|
self
|
|
55
63
|
end
|
|
64
|
+
|
|
56
65
|
def head(path: String, &block)
|
|
57
66
|
# Register a HEAD route at the given path.
|
|
58
67
|
@registrations.push(["head", [spikard::Method::Head, path], block])
|
|
59
68
|
self
|
|
60
69
|
end
|
|
70
|
+
|
|
61
71
|
def options(path: String, &block)
|
|
62
72
|
# Register an OPTIONS route at the given path.
|
|
63
73
|
@registrations.push(["options", [spikard::Method::Options, path], block])
|
|
64
74
|
self
|
|
65
75
|
end
|
|
76
|
+
|
|
66
77
|
def connect(path: String, &block)
|
|
67
78
|
# Register a CONNECT route at the given path.
|
|
68
79
|
@registrations.push(["connect", [spikard::Method::Connect, path], block])
|
|
69
80
|
self
|
|
70
81
|
end
|
|
82
|
+
|
|
71
83
|
def trace(path: String, &block)
|
|
72
84
|
# Register a TRACE route at the given path.
|
|
73
85
|
@registrations.push(["trace", [spikard::Method::Trace, path], block])
|
|
74
86
|
self
|
|
75
87
|
end
|
|
88
|
+
|
|
76
89
|
def run
|
|
77
90
|
# Run the HTTP server using the configured routes.
|
|
78
91
|
#
|
|
@@ -81,6 +94,7 @@ module Spikard
|
|
|
81
94
|
# Returns an error if server construction or execution fails.
|
|
82
95
|
Spikard.app_run(@registrations)
|
|
83
96
|
end
|
|
97
|
+
|
|
84
98
|
def into_router
|
|
85
99
|
# Build the underlying Axum router.
|
|
86
100
|
#
|
|
@@ -90,5 +104,4 @@ module Spikard
|
|
|
90
104
|
Spikard.app_into_router(@registrations)
|
|
91
105
|
end
|
|
92
106
|
end
|
|
93
|
-
|
|
94
107
|
end
|
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:f2c04bb99fd35788a6ffdc6a115217d6bf1b51843835dada2d360cbe67f496cf
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module Spikard
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "0.15.6.pre.rc.
|
|
9
|
+
VERSION = "0.15.6.pre.rc.12"
|
|
10
10
|
end
|
data/lib/spikard.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:f2c04bb99fd35788a6ffdc6a115217d6bf1b51843835dada2d360cbe67f496cf
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
data/lib/spikard_rb.so
CHANGED
|
Binary file
|
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:f2c04bb99fd35788a6ffdc6a115217d6bf1b51843835dada2d360cbe67f496cf
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
|