metanorma-plugin-lutaml 0.7.82 → 0.7.84

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: b1efa6443af45e749f5578728610b36ddbedda93a095d9073d97b1a548c92f02
4
- data.tar.gz: 104d464781a93e4a1fa451bfbfaae51d326952dd4fe01e36a286bf2901fa2891
3
+ metadata.gz: 5bb7f7b3a8707045d949d4b907e3d3034a564282e63e7ef2706c2465603ffb83
4
+ data.tar.gz: 1a59f94497331adb9c593f0410a8f3f4c70da2cf08e5287f19a22f8715a2c321
5
5
  SHA512:
6
- metadata.gz: 1f0b801c559b4f4d05bf51d9c0c1055e206a2d600b86bd989d562addbb207bace2eb3b8bd97c9a7302dbadd6a6afe1271b15ac57d13cfb182668c95bb4c8e368
7
- data.tar.gz: cebe8b6d029acbe9cb08f25f73718dfb5a52dc220003ccf8b3c2a87da95a11fd6931fd3fa0719a7fa45e64aada47ea3c3040a29277f8df075305ed6d0201cdd9
6
+ metadata.gz: 9bde2f3171d854725ec92efb7d28084eb92594621c053c32ddc5557724d719aa2e636588ae3da8fdf430a238fca8d5bb9a62f753ec556aa4bea76d5daded364c
7
+ data.tar.gz: b9333bb75b9f4a43c761597b7338637cc84048b1ea61ae30f1a8bc4e469734094248fd9759acf8f64baed3d0a211c6303c198eb80f983f57cb9e90c71dc0ae58
@@ -13,26 +13,31 @@ on:
13
13
  default: 'skip'
14
14
  repository_dispatch:
15
15
  types: [ do-release ]
16
- # The publish leg: when the release PR (head branch release/v*) merges,
17
- # metanorma/ci tags the merge commit and publishes (metanorma/ci#515).
18
- # Ordinary PR closes are skipped inside the reusable.
16
+ # The publish leg: when the release PR (head branch `release/v*`) merges,
17
+ # the reusable tags the merge commit and publishes (ci#515). Ordinary PR
18
+ # closes are skipped inside the reusable — no noise on regular merges.
19
19
  pull_request:
20
20
  types:
21
21
  - closed
22
22
 
23
+ # Least-privilege ceiling for the called rubygems-release.yml: its release job
24
+ # needs contents:write (git tag push), id-token:write (OIDC Trusted Publishing),
25
+ # and pull-requests:write (the release-PR leg opens and auto-merges the release
26
+ # PR — ci#515; reusable workflows are capped by the caller's permissions).
27
+ permissions:
28
+ contents: write
29
+ id-token: write
30
+ pull-requests: write
31
+
23
32
  jobs:
24
33
  release:
25
34
  uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
26
- permissions:
27
- id-token: write
28
- contents: write
29
- pull-requests: write
30
35
  with:
31
36
  next_version: ${{ github.event.inputs.next_version }}
32
- # release_command removed (metanorma/ci#515): the reusable's generic
33
- # build+push handles the gem on both legs; bundler's git machinery
34
- # cannot run on the publish leg's detached merge-commit checkout.
35
37
  secrets:
36
- rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
38
+ # Trusted Publishing (OIDC) is the only publish path: the org
39
+ # METANORMA_CI_RUBYGEMS_API_KEY secret was deleted (metanorma/ci#373),
40
+ # and rubygems-release.yml falls through to the OIDC/TP flow when the
41
+ # rubygems-api-key secret is absent (metanorma/ci#416).
37
42
  pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
38
43
 
data/.rubocop.yml CHANGED
@@ -2,18 +2,30 @@
2
2
  # See https://github.com/metanorma/cimas
3
3
  inherit_from:
4
4
  - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
5
+ # .rubocop_todo.yml MUST be the last entry. inherit_from is last-wins:
6
+ # if listed before oss-guides, the shared config's stricter Metrics/
7
+ # (MethodLength, BlockLength, etc.) rules override the todo's per-file
8
+ # grandfathering, and the todo becomes inert on those cops. Empirically
9
+ # verified on suma 2026-07-06: with todo listed first, 34 Metrics/* offenses
10
+ # remained; moved last, cleared. Every gem in the metanorma-org fleet
11
+ # already ships a `.rubocop_todo.yml` on its live tree (audited 2026-07-06,
12
+ # 54/54 have it), so this reference is safe to emit unconditionally.
5
13
  - .rubocop_todo.yml
6
14
 
7
- inherit_mode:
8
- merge:
9
- - Exclude
10
-
11
- # local repo-specific modifications
12
- # ...
15
+ # Rubocop plugins enabled centrally so every metanorma-org gem picks them up
16
+ # on cimas sync — best practice belongs at the shared-template layer, not
17
+ # per-repo. Per ronaldtse feedback on metanorma/ci#332.
13
18
  plugins:
14
19
  - rubocop-rspec
15
20
  - rubocop-performance
16
21
  - rubocop-rake
17
22
 
23
+ # local repo-specific modifications
24
+ # ...
25
+
18
26
  AllCops:
19
- TargetRubyVersion: 3.0
27
+ # 3.3 matches the org-wide minimum being pushed via #274 (Raise minimum
28
+ # Ruby version to 3.3 due to EOL of 3.2 on 2026-03-31). Was 3.4 before
29
+ # this commit — 3.4 was above the org's stated minimum and would have
30
+ # applied Rubocop rules that fail-close on gems still targeting 3.3.
31
+ TargetRubyVersion: 3.3
@@ -1,4 +1,6 @@
1
- require "coradoc"
1
+ require "ceradoc"
2
+ require "ceradoc/html"
3
+ require "ceradoc/asciidoc"
2
4
 
3
5
  module Metanorma
4
6
  module Plugin
@@ -6,8 +8,7 @@ module Metanorma
6
8
  module Liquid
7
9
  module CustomFilters
8
10
  def html2adoc(input)
9
- # Coradoc::ReverseAdoc.convert(input)
10
- Coradoc::Input::Html.convert(input)
11
+ Ceradoc.convert(input, from: :html, to: :asciidoc)
11
12
  end
12
13
 
13
14
  def interpolate(input)
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.82".freeze
4
+ VERSION = "0.7.84".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -26,11 +26,20 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.required_ruby_version = ">= 3.0.0" # rubocop:disable Gemspec/RequiredRubyVersion
29
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.3.0")
30
30
 
31
31
  spec.add_dependency "asciidoctor"
32
- spec.add_dependency "coradoc", "~> 1.1.8"
33
- spec.add_dependency "ea", ">= 0.6.41" # Ea::Xmi.load/load_graph (lutaml/ea#86): the partial-load API this gem calls
32
+ # ceradoc-adoc >= 2.0.38 widened its parsanol floor to >= 1.3.123, < 2
33
+ # (ceradoc#365), so the expressir 2.4.x chain co-resolves again.
34
+ # Floors at the published latest lines of the family.
35
+ spec.add_dependency "ceradoc", "~> 3.0.1"
36
+ spec.add_dependency "ceradoc-adoc", "~> 2.0.38"
37
+ spec.add_dependency "ceradoc-html", "~> 1.1.24"
38
+ # >= 0.6.157: first release with the Qea::Rules layer and the shipped
39
+ # ea/qea/rules/generalization.rb (0.6.149-0.6.156 are broken for the
40
+ # diagram/Liquid-drops path — lutaml/ea#234, #246). Ea::Xmi.load/load_graph
41
+ # (lutaml/ea#86): the partial-load API this gem calls.
42
+ spec.add_dependency "ea", "~> 0.6.157"
34
43
  spec.add_dependency "expressir", "~> 2.3", ">= 2.3.5"
35
44
  spec.add_dependency "isodoc", ">= 3.5.0"
36
45
  spec.add_dependency "liquid", "~> 5"
@@ -38,7 +47,9 @@ Gem::Specification.new do |spec|
38
47
  spec.add_dependency "lutaml-graphviz"
39
48
  spec.add_dependency "lutaml-lml"
40
49
  spec.add_dependency "lutaml-model", "~> 0.8.156"
41
- spec.add_dependency "lutaml-uml", ">= 0.5", "< 2"
50
+ # >= 1.0.4: Lutaml::Uml::Value#initial (enum literal codes) — required by
51
+ # ea >= 0.6.151+ which writes initial values during XMI parsing.
52
+ spec.add_dependency "lutaml-uml", "~> 1.0", ">= 1.0.4"
42
53
  spec.add_dependency "ogc-gml", "~> 1.1"
43
54
  spec.metadata["rubygems_mfa_required"] = "true"
44
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.82
4
+ version: 0.7.84
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -25,33 +25,61 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: coradoc
28
+ name: ceradoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.8
33
+ version: 3.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.8
40
+ version: 3.0.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: ceradoc-adoc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.0.38
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.0.38
55
+ - !ruby/object:Gem::Dependency
56
+ name: ceradoc-html
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.24
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.1.24
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: ea
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
- - - ">="
73
+ - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: 0.6.41
75
+ version: 0.6.157
48
76
  type: :runtime
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
- - - ">="
80
+ - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: 0.6.41
82
+ version: 0.6.157
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: expressir
57
85
  requirement: !ruby/object:Gem::Requirement
@@ -166,22 +194,22 @@ dependencies:
166
194
  name: lutaml-uml
167
195
  requirement: !ruby/object:Gem::Requirement
168
196
  requirements:
169
- - - ">="
197
+ - - "~>"
170
198
  - !ruby/object:Gem::Version
171
- version: '0.5'
172
- - - "<"
199
+ version: '1.0'
200
+ - - ">="
173
201
  - !ruby/object:Gem::Version
174
- version: '2'
202
+ version: 1.0.4
175
203
  type: :runtime
176
204
  prerelease: false
177
205
  version_requirements: !ruby/object:Gem::Requirement
178
206
  requirements:
179
- - - ">="
207
+ - - "~>"
180
208
  - !ruby/object:Gem::Version
181
- version: '0.5'
182
- - - "<"
209
+ version: '1.0'
210
+ - - ">="
183
211
  - !ruby/object:Gem::Version
184
- version: '2'
212
+ version: 1.0.4
185
213
  - !ruby/object:Gem::Dependency
186
214
  name: ogc-gml
187
215
  requirement: !ruby/object:Gem::Requirement
@@ -590,7 +618,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
590
618
  requirements:
591
619
  - - ">="
592
620
  - !ruby/object:Gem::Version
593
- version: 3.0.0
621
+ version: 3.3.0
594
622
  required_rubygems_version: !ruby/object:Gem::Requirement
595
623
  requirements:
596
624
  - - ">="