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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5143a55197f330fa87b88710e79bf63344aad4779aecae7ef186a81dd27aba19
4
- data.tar.gz: 0cb16d6b7b4df65c9c5ac6a88c7dec6e10405e1a15eea853c8bf1c6b34433927
3
+ metadata.gz: 05df720264c4dabcd31cb6957904853bc928cfe2e8cb49eec614dfa8d658eafd
4
+ data.tar.gz: 0da436fb95370e1a7d0fa4241a65086d00eb2a6496d314460bc54499d9a0fa1c
5
5
  SHA512:
6
- metadata.gz: 2c25460c133c03e54cfbd846185e995320cc6ecef16826ab926da7fd2d319b440a06549354bf34fe5937fee1d0316bfaac9ca60ebb4f7ae0aa8b48ac9311b99f
7
- data.tar.gz: db23e5a0d74dbe6b40e4cdd88bdf2f3918dc652e7187ef5c7dcfae19add6865d6c8f65281a70d7c3475014c3d0af442fde716d229d15e1d6f493f316be5f8d9c
6
+ metadata.gz: '028f5021f95d108c7c55efba46e5a8bad6558690593b636c71d244bf7896ad639d10176853551127256b0d0206993ebf8587700786de846dacbad547ce066c39'
7
+ data.tar.gz: c7136a9bd3a6937583aaa6f04e03e3867fbbb9cc18b1715cf91ce369329badd4a7ea0e602b5c1ae3d4303a5f14b9838786ee2d605d821ed70bc22401de15ce2e
@@ -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
- XMI_SPEC_FILES = %w[
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 = FileList["spec/**/*_spec.rb"] - XMI_SPEC_FILES
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
- task default: :spec
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
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.52".freeze
4
+ VERSION = "0.7.53".freeze
5
5
  end
6
6
  end
7
7
  end
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.52
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-25 00:00:00.000000000 Z
11
+ date: 2026-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor