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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '009befd87925790282113127d1a30415b9cd8095e367fbe97ad4c5854ab3dc1d'
4
- data.tar.gz: 14c636357ae0b41cfbdd5abadbe035144b75b79f59ffae700ec82a1a8bdfe3cf
3
+ metadata.gz: 7ea1eaacda4eab894ffd4ce9a6b92c933346f95db836414ec381864a9115c3e9
4
+ data.tar.gz: 3a8e9358f40b61397dfe9b5d9c561d581a26d03d9f4e6b1b0e7799bffe183256
5
5
  SHA512:
6
- metadata.gz: 1cc20133015455a290073c4537e496e4eb196d8d30b12b6a62c6106c301906ce67795dffb2c57d52afe6ca1f05e04c8ce5bd77ee76ca256bc2d94b3d97faa093
7
- data.tar.gz: 60482526fe201c2e954081f0cb82bbbdfb7814ec43e20e6f28e93abf2cae72505a6fd3a33e515ed69c6123d41f3325d228a694cab69cf05574e192fe4479722d
6
+ metadata.gz: f1e1526301ba9235aa41b7fe9382c95396910fe9b3bb35a25fd611b71aff65d4dfec869f31dcacb87e075dd543d2200171b3f9046066e99479b423f407e37d0a
7
+ data.tar.gz: 4c91c35201003b14c99b0766e0955c4315076f347c6b0421b2312ab7dbfcb321268249e1416236776d65f9b253f19b0ace08f8733713b330f02da7654c2ac212
data/ENGINE-COMPAT.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "engine_commit": "4d45ce7dc2cef17e5d7abf3ed7afb6c35a28388f",
3
- "rubygems": "2.4.88",
4
- "ext": "v0.1.66",
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-26T00:00:00Z",
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.66" }
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.
@@ -3,6 +3,6 @@ module Expressir
3
3
  # autoload it (Ruby autoload only works for module/class constants, not
4
4
  # for string constants like `Expressir::VERSION`).
5
5
  module Version
6
- VERSION = "2.5.0".freeze
6
+ VERSION = "2.5.1".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressir
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.