expressir 2.4.54-aarch64-linux → 2.4.55-aarch64-linux
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/lib/expressir/3.2/expressir_core.so +0 -0
- data/lib/expressir/3.3/expressir_core.so +0 -0
- data/lib/expressir/3.4/expressir_core.so +0 -0
- data/lib/expressir/4.0/expressir_core.so +0 -0
- data/lib/expressir/express/checker.rb +35 -0
- data/lib/expressir/express/core.rb +17 -0
- data/lib/expressir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eaab094e6c26aee76e16ee0e7f496076258c49478365ce594e038488a5f928e3
|
|
4
|
+
data.tar.gz: 1347770cf013e87478e8e8d01fe263969d8b41d194889cee6ee6fd2121f1e33c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b14b96b55ebef306ed464ef119e98e56e8f2e69d9913cca4e32ab85130a5baf745deb81608192d026f81685f30151256c77c2605a69e0eabf788a8ee1f22622
|
|
7
|
+
data.tar.gz: f72ab3b23c5b67dec70784bc899c96dfdd92dc211446ed979ab662ff05299cdc715739a2ab1b4f18586b4d6512191c51233b0e0e991484738220085ccd77b340
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -47,12 +47,47 @@ module Expressir
|
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Runs the checks. When the native extension exposes the core
|
|
51
|
+
# checker (issue #21), each file's model wire is checked in Rust;
|
|
52
|
+
# the findings are identical to this class's Ruby walk (gated by
|
|
53
|
+
# the checker parity suites). The Ruby walk stays as the
|
|
54
|
+
# fallback for non-native environments.
|
|
50
55
|
def check
|
|
56
|
+
return check_via_core if core_check_available?
|
|
57
|
+
|
|
51
58
|
@notes = []
|
|
52
59
|
@repository.schemas.compact.each { |schema| check_schema(schema) }
|
|
53
60
|
self
|
|
54
61
|
end
|
|
55
62
|
|
|
63
|
+
def core_check_available?
|
|
64
|
+
Expressir::Express::Core::NATIVE_AVAILABLE &&
|
|
65
|
+
Expressir::Express::Core.respond_to?(:check_model_hash)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def check_via_core
|
|
69
|
+
# The Ruby Checker sees the whole repository (cross-file
|
|
70
|
+
# interfaces, self-schema defining schemas), so the wire keeps
|
|
71
|
+
# the repository shape when the model has one.
|
|
72
|
+
wire =
|
|
73
|
+
if @repository.respond_to?(:files)
|
|
74
|
+
{
|
|
75
|
+
"_class" => "Expressir::Model::Repository",
|
|
76
|
+
"files" => @repository.files.compact.map(&:to_hash),
|
|
77
|
+
}
|
|
78
|
+
else
|
|
79
|
+
@repository.to_hash
|
|
80
|
+
end
|
|
81
|
+
@notes = Expressir::Express::Core.check_model_hash(wire, @dialect)
|
|
82
|
+
.map do |note|
|
|
83
|
+
Note.new(
|
|
84
|
+
id: note[:id].to_sym, severity: note[:severity].to_sym,
|
|
85
|
+
schema: note[:schema], message: note[:message]
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
self
|
|
89
|
+
end
|
|
90
|
+
|
|
56
91
|
def errors
|
|
57
92
|
notes.select { |n| n.severity == :error }
|
|
58
93
|
end
|
|
@@ -55,6 +55,23 @@ module Expressir
|
|
|
55
55
|
::Expressir::Core.scan_remarks(source)
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
# Semantic checks (issue #21): the Checker's findings over one
|
|
59
|
+
# file's model-hash wire, as an Array of Hashes with
|
|
60
|
+
# id/severity/schema/message in the checker's canonical order.
|
|
61
|
+
# `dialect` is nil or a Dialect value; the 1994 edition is
|
|
62
|
+
# translated to the short form the core expects.
|
|
63
|
+
def self.check_model_hash(wire, dialect = nil)
|
|
64
|
+
raise NotImplementedError, "the native extension is unavailable" unless NATIVE_AVAILABLE
|
|
65
|
+
|
|
66
|
+
wire_json = JSON.generate(wire)
|
|
67
|
+
core_dialect = case dialect
|
|
68
|
+
when nil then nil
|
|
69
|
+
when Dialect::EDITION_1994, "10303-11:1994" then "1994"
|
|
70
|
+
else dialect.to_s
|
|
71
|
+
end
|
|
72
|
+
::Expressir::Core.check_model_hash(wire_json, core_dialect)
|
|
73
|
+
end
|
|
74
|
+
|
|
58
75
|
# Parse EXPRESS source into the hydrated model directly: the
|
|
59
76
|
# extension walks the wire definition once and constructs every
|
|
60
77
|
# node through Serializable.instantiate (lutaml-model's fast
|
data/lib/expressir/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: expressir
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.55
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|