fulgur_chart 0.8.0 → 0.9.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 +4 -4
- data/ext/fulgur_chart/Cargo.toml +3 -3
- data/ext/fulgur_chart/src/lib.rs +3 -4
- 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: 06d802ba139417a89422869f273ca4006b43acab13337bf45be42494ea02444f
|
|
4
|
+
data.tar.gz: 5301f5ac659389f8c334960e7239c1de6fa21e269c6929f690ab36a4e0232532
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6963cd4c72110e3cf2e112414a3b130e5a68fcc3af6cea3f59bf71bb95967d5bc850dc10228b6a81ee3054f126c13c0bcbf76257e5a341c969525459e03359d7
|
|
7
|
+
data.tar.gz: c377c3c2ea5ab1fe325d2775cc3d9867cbfbb1847b94c867331bf4feeafa0ca51fa5d53aef63af8b6c30731472de64721ed63c6f350c6e45e1e005f0fd493ffd
|
data/ext/fulgur_chart/Cargo.toml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "fulgur_chart"
|
|
3
|
-
version = "0.
|
|
4
|
-
edition = "
|
|
3
|
+
version = "0.9.0"
|
|
4
|
+
edition = "2024"
|
|
5
5
|
publish = false
|
|
6
6
|
|
|
7
7
|
[lib]
|
|
@@ -13,7 +13,7 @@ magnus = "0.7"
|
|
|
13
13
|
# Already pulled in transitively by magnus; declaring it directly unifies to the same
|
|
14
14
|
# version and makes the symbol importable.
|
|
15
15
|
rb-sys = "0.9"
|
|
16
|
-
fulgur-chart = "0.
|
|
16
|
+
fulgur-chart = "0.9.0"
|
|
17
17
|
serde = { version = "1", features = ["derive"] }
|
|
18
18
|
serde_json = "1"
|
|
19
19
|
schemars = { version = "1.2", features = ["preserve_order"] }
|
data/ext/fulgur_chart/src/lib.rs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
use fulgur_chart::guard::{
|
|
1
|
+
use fulgur_chart::guard::{InputLimits, validate_spec};
|
|
2
2
|
use magnus::{
|
|
3
|
-
function,
|
|
3
|
+
Error, ExceptionClass, RHash, RString, Ruby, Value, function,
|
|
4
4
|
prelude::*,
|
|
5
5
|
scan_args::{get_kwargs, scan_args},
|
|
6
|
-
Error, ExceptionClass, RHash, RString, Ruby, Value,
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
// --- error helpers (classification is by CALL SITE, never by parsing the message) ---
|
|
@@ -326,7 +325,7 @@ fn schema(ruby: &Ruby, dsl: Value) -> Result<String, Error> {
|
|
|
326
325
|
return Err(parse_err(
|
|
327
326
|
ruby,
|
|
328
327
|
format!("unsupported DSL '{other}' (supported: chartjs, vegalite)"),
|
|
329
|
-
))
|
|
328
|
+
));
|
|
330
329
|
}
|
|
331
330
|
};
|
|
332
331
|
serde_json::to_string(&s).map_err(|e| render_err(ruby, format!("schema serialization: {e}")))
|