expressir 2.5.0 → 2.5.1
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/ENGINE-COMPAT.json +4 -4
- data/ext/expressir_core/Cargo.toml +1 -1
- data/ext/expressir_core/src/lib.rs +15 -0
- data/lib/expressir/express/core.rb +14 -0
- data/lib/expressir/version.rb +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: 7ea1eaacda4eab894ffd4ce9a6b92c933346f95db836414ec381864a9115c3e9
|
|
4
|
+
data.tar.gz: 3a8e9358f40b61397dfe9b5d9c561d581a26d03d9f4e6b1b0e7799bffe183256
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1e1526301ba9235aa41b7fe9382c95396910fe9b3bb35a25fd611b71aff65d4dfec869f31dcacb87e075dd543d2200171b3f9046066e99479b423f407e37d0a
|
|
7
|
+
data.tar.gz: 4c91c35201003b14c99b0766e0955c4315076f347c6b0421b2312ab7dbfcb321268249e1416236776d65f9b253f19b0ace08f8733713b330f02da7654c2ac212
|
data/ENGINE-COMPAT.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"engine_commit": "
|
|
3
|
-
"rubygems": "2.
|
|
4
|
-
"ext": "v0.1.
|
|
2
|
+
"engine_commit": "4c6a5f0900086bed60356f23dbcd257001c5f1fc",
|
|
3
|
+
"rubygems": "2.5.0",
|
|
4
|
+
"ext": "v0.1.67",
|
|
5
5
|
"crates": "1.5.1",
|
|
6
6
|
"npm": null,
|
|
7
7
|
"pypi": null,
|
|
8
|
-
"released_at": "2026-11-
|
|
8
|
+
"released_at": "2026-11-27T00:00:00Z",
|
|
9
9
|
"_comment": "expressir#618 \u2014 the engine-compat manifest, mirroring parsanol-rs#423. Maps the expressir gem train to the expressir-rs ext tag and its engine commit; the null fields fill as the crates/npm/pypi tiers land (expressir#619/#622/#621). tools/check_engine_compat.rb verifies the pairings in CI; every release train updates this file."
|
|
10
10
|
}
|
|
@@ -13,7 +13,7 @@ magnus = { version = "0.9" }
|
|
|
13
13
|
# Pinned core release (M1, TODO.parity-ee/19): the ext never floats
|
|
14
14
|
# main — bump the tag per expressir release, alongside the validation
|
|
15
15
|
# run that pins it.
|
|
16
|
-
expressir = { git = "https://github.com/lutaml/expressir-rs", tag = "v0.1.
|
|
16
|
+
expressir = { git = "https://github.com/lutaml/expressir-rs", tag = "v0.1.67" }
|
|
17
17
|
serde_json = "1.0"
|
|
18
18
|
|
|
19
19
|
|
|
@@ -783,6 +783,7 @@ fn init(ruby: &Ruby) -> Result<(), Error> {
|
|
|
783
783
|
module.define_singleton_method("lsp_rename_edits", function!(lsp_rename_edits, 2))?;
|
|
784
784
|
module.define_singleton_method("write_set", function!(set_write, 3))?;
|
|
785
785
|
module.define_singleton_method("concat_schema", function!(concat_schema, 2))?;
|
|
786
|
+
module.define_singleton_method("parse_population_recovering", function!(parse_population_recovering, 1))?;
|
|
786
787
|
module.define_singleton_method("flatten_schema", function!(flatten_schema, 3))?;
|
|
787
788
|
let batch_class = module.define_class("BatchStream", ruby.class_object())?;
|
|
788
789
|
batch_class.define_singleton_method("start", function!(batch_start, 2))?;
|
|
@@ -842,3 +843,17 @@ fn flatten_schema(
|
|
|
842
843
|
Error::new(ruby.exception_runtime_error(), format!("serialize: {e}"))
|
|
843
844
|
})
|
|
844
845
|
}
|
|
846
|
+
|
|
847
|
+
/// The P21 recovery envelope over raw exchange-structure text (#627):
|
|
848
|
+
/// the population on well-formed input, the failure forensics on
|
|
849
|
+
/// malformed input. Returns the envelope as JSON.
|
|
850
|
+
fn parse_population_recovering(
|
|
851
|
+
ruby: &Ruby,
|
|
852
|
+
source: String,
|
|
853
|
+
) -> Result<String, Error> {
|
|
854
|
+
let recovered = expressir::population::parse_population_recovering(&source)
|
|
855
|
+
.map_err(|e| Error::new(ruby.exception_runtime_error(), format!("p21 recovery: {e}")))?;
|
|
856
|
+
serde_json::to_string(&recovered).map_err(|e| {
|
|
857
|
+
Error::new(ruby.exception_runtime_error(), format!("serialize: {e}"))
|
|
858
|
+
})
|
|
859
|
+
}
|
|
@@ -276,6 +276,20 @@ module Expressir
|
|
|
276
276
|
[ids, artifact]
|
|
277
277
|
end
|
|
278
278
|
|
|
279
|
+
# The P21 recovery envelope over raw exchange-structure text
|
|
280
|
+
# (#627): the population on well-formed input, the failure
|
|
281
|
+
# forensics (failure wire, consumed extent, resync spans,
|
|
282
|
+
# partial records) on malformed input. Returns the envelope as
|
|
283
|
+
# a Hash; recovery is Rust-only — there is no Ruby fallback
|
|
284
|
+
# parser to fall back to.
|
|
285
|
+
def self.parse_population_recovering(source)
|
|
286
|
+
unless NATIVE_AVAILABLE && ::Expressir::Core.respond_to?(:parse_population_recovering)
|
|
287
|
+
raise NotImplementedError, "core p21 recovery unavailable"
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
JSON.parse(::Expressir::Core.parse_population_recovering(source))
|
|
291
|
+
end
|
|
292
|
+
|
|
279
293
|
# The SHTOLO longform over a resolved repository (#636): the
|
|
280
294
|
# full stage order runs in Rust over the repository's flat wire.
|
|
281
295
|
# Returns the longform schema's wire JSON string.
|
data/lib/expressir/version.rb
CHANGED