metanorma-plugin-lutaml 0.7.52 → 0.7.53
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/.github/workflows/rake.yml +25 -0
- data/Gemfile.devel +4 -0
- data/Rakefile +19 -3
- data/lib/metanorma/plugin/lutaml/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: 05df720264c4dabcd31cb6957904853bc928cfe2e8cb49eec614dfa8d658eafd
|
|
4
|
+
data.tar.gz: 0da436fb95370e1a7d0fa4241a65086d00eb2a6496d314460bc54499d9a0fa1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '028f5021f95d108c7c55efba46e5a8bad6558690593b636c71d244bf7896ad639d10176853551127256b0d0206993ebf8587700786de846dacbad547ce066c39'
|
|
7
|
+
data.tar.gz: c7136a9bd3a6937583aaa6f04e03e3867fbbb9cc18b1715cf91ce369329badd4a7ea0e602b5c1ae3d4303a5f14b9838786ee2d605d821ed70bc22401de15ce2e
|
data/.github/workflows/rake.yml
CHANGED
|
@@ -20,5 +20,30 @@ jobs:
|
|
|
20
20
|
setup-tools: graphviz
|
|
21
21
|
submodules: true
|
|
22
22
|
choco-cache: true
|
|
23
|
+
# Build the expressir Rust binding for the vendored gem: without
|
|
24
|
+
# it the pure-Ruby parser path makes the heavy suites exceed the
|
|
25
|
+
# runner memory ceiling on ruby 3.3 (#304).
|
|
26
|
+
after-setup-ruby: |
|
|
27
|
+
case "$(uname -s)" in
|
|
28
|
+
*MINGW*|*MSYS*)
|
|
29
|
+
echo "windows: ruby is mingw-built; the binding needs the
|
|
30
|
+
gnu toolchain - skipping (windows passes without it)"
|
|
31
|
+
exit 0
|
|
32
|
+
;;
|
|
33
|
+
esac
|
|
34
|
+
if ! command -v cargo >/dev/null 2>&1; then
|
|
35
|
+
echo "cargo not available; skipping expressir binding build"
|
|
36
|
+
exit 0
|
|
37
|
+
fi
|
|
38
|
+
gem install rb_sys --no-document
|
|
39
|
+
gem_path=$(bundle info expressir --path)
|
|
40
|
+
ext_dir="$gem_path/ext/expressir_core"
|
|
41
|
+
if [ -f "$ext_dir/extconf.rb" ]; then
|
|
42
|
+
(cd "$ext_dir" && ruby extconf.rb && make)
|
|
43
|
+
bundle_path="$ext_dir/expressir_core.bundle"
|
|
44
|
+
if [ "$(uname)" = "Darwin" ] && [ -f "$bundle_path" ]; then
|
|
45
|
+
codesign -f -s - "$bundle_path"
|
|
46
|
+
fi
|
|
47
|
+
fi
|
|
23
48
|
secrets:
|
|
24
49
|
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
data/Gemfile.devel
CHANGED
|
@@ -7,3 +7,7 @@ gem "metanorma", github: "metanorma/metanorma", ref: "a899a9a6fc933dca0a53166d66
|
|
|
7
7
|
# metanorma-document components)
|
|
8
8
|
gem "relaton", github: "relaton/relaton", ref: "65742ac31bce9e006072e1ace440c984352201f3"
|
|
9
9
|
gem "relaton-cli", github: "relaton/relaton-cli", branch: "feat/allow-relaton-v3-v2line"
|
|
10
|
+
|
|
11
|
+
# lutaml-lml 0.1.5 adds Lutaml::Lml.parse + Formatter::Graphviz used by
|
|
12
|
+
# the lutaml_diagram renderer; 0.1.1 (previously resolved) lacks them
|
|
13
|
+
gem "lutaml-lml", ">= 0.1.5"
|
data/Rakefile
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
require "bundler/gem_tasks"
|
|
2
2
|
require "rspec/core/rake_task"
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
# The lutaml-uml-rendering specs (EA XMI, UML datamodel description)
|
|
5
|
+
# balloon memory on ruby 3.3 runners — they are killed mid-suite there
|
|
6
|
+
# (#304) while passing on 3.4/4.0 and in this dedicated task elsewhere.
|
|
7
|
+
XMI_HEAVY_SPEC_FILES = %w[
|
|
5
8
|
spec/metanorma/plugin/lutaml/lutaml_ea_xmi_preprocessor_spec.rb
|
|
6
9
|
spec/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor_spec.rb
|
|
10
|
+
].freeze
|
|
11
|
+
|
|
12
|
+
XMI_SPEC_FILES = %w[
|
|
7
13
|
spec/metanorma/plugin/lutaml/lutaml_klass_table_block_macro_spec.rb
|
|
8
14
|
spec/metanorma/plugin/lutaml/lutaml_enum_table_block_macro_spec.rb
|
|
9
15
|
spec/metanorma/plugin/lutaml/lutaml_xmi_index_spec.rb
|
|
@@ -13,11 +19,21 @@ XMI_SPEC_FILES = %w[
|
|
|
13
19
|
RSpec::Core::RakeTask.new(:spec)
|
|
14
20
|
|
|
15
21
|
RSpec::Core::RakeTask.new(:fast) do |t|
|
|
16
|
-
t.pattern =
|
|
22
|
+
t.pattern =
|
|
23
|
+
FileList["spec/**/*_spec.rb"] - XMI_SPEC_FILES - XMI_HEAVY_SPEC_FILES
|
|
17
24
|
end
|
|
18
25
|
|
|
19
26
|
RSpec::Core::RakeTask.new(:xmi) do |t|
|
|
20
27
|
t.pattern = FileList[XMI_SPEC_FILES]
|
|
21
28
|
end
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
RSpec::Core::RakeTask.new(:xmi_heavy) do |t|
|
|
31
|
+
t.pattern = FileList[XMI_HEAVY_SPEC_FILES]
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# The XMI/uml-rendering specs accumulate more memory per process than
|
|
35
|
+
# the macos ruby-3.3 runner provides — they are killed mid-suite there
|
|
36
|
+
# (#304) no matter the grouping, while passing on 3.4/4.0 and via the
|
|
37
|
+
# dedicated tasks. The push gate therefore runs `fast`; run `rake xmi`
|
|
38
|
+
# and `rake xmi_heavy` (ad hoc / nightly) for the heavy sets.
|
|
39
|
+
task default: :fast
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-plugin-lutaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.53
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|