metanorma-plugin-lutaml 0.4.17 → 0.4.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +1 -1
- data/.github/workflows/release.yml +2 -2
- data/.gitignore +3 -1
- data/Gemfile +1 -0
- data/lib/metanorma/plugin/lutaml/lutaml_uml_class_preprocessor.rb +21 -21
- data/lib/metanorma/plugin/lutaml/version.rb +1 -1
- data/metanorma-plugin-lutaml.gemspec +2 -2
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c9422de6e2f133c37c7cae0195312bf6ca63f763a544535fbe21f62f4c1b7ef
|
4
|
+
data.tar.gz: 4a88c4264ab7f8f6bca636902d3e06c17b0aa2ca349fb7c7f1ee9240eb4c13c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08e44fa7e98636dcabccc17c1f43bd7abec874328c5e8db2f6005bb9804e75e6b427aad4a2c41157f8fdb54a846014c3041b8aded4b4071f1802351ad2add5ae'
|
7
|
+
data.tar.gz: 32aa9bd9de63aa8c07517ed72425685f565c600f4f9e8996fcebbc5fbe8afdfcb77e130f4f499b0ba5dce36e85f9dfa6c33f5e8b52f103175d6ab8700e69ed6e
|
data/.github/workflows/rake.yml
CHANGED
@@ -15,10 +15,10 @@ on:
|
|
15
15
|
|
16
16
|
jobs:
|
17
17
|
release:
|
18
|
-
uses: metanorma/
|
18
|
+
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
19
19
|
with:
|
20
20
|
next_version: ${{ github.event.inputs.next_version }}
|
21
|
-
event_name: ${{ github.event_name }}
|
22
21
|
secrets:
|
23
22
|
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
23
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
24
24
|
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -103,52 +103,52 @@ module Metanorma
|
|
103
103
|
depth = options[:depth]
|
104
104
|
|
105
105
|
<<~TEMPLATE
|
106
|
-
|
106
|
+
{% if definition.keyword == 'enumeration' %}
|
107
|
+
#{equalsigns(depth) + " Enumeration: {{ definition.name }}" unless skip_headers}
|
108
|
+
{% else %}
|
109
|
+
#{equalsigns(depth) + " Class: {{ definition.name }}" unless skip_headers}
|
110
|
+
{% endif %}
|
111
|
+
|
112
|
+
#{equalsigns(depth+1)} Description
|
113
|
+
|
107
114
|
{{ definition.definition }}
|
108
115
|
|
109
116
|
{% if definition.attributes %}
|
110
117
|
{% if definition.keyword == 'enumeration' %}
|
111
|
-
.{{ definition.name }} values
|
112
|
-
|===
|
113
|
-
|Name |Definition
|
114
|
-
|
115
118
|
{% for item in definition.attributes %}
|
116
|
-
|
119
|
+
#{equalsigns(depth+1)} Enumeration value: {{item.name}}
|
120
|
+
|
121
|
+
{% if item.definition %}
|
122
|
+
{{ item.definition }}
|
123
|
+
{% endif %}
|
124
|
+
|
117
125
|
{% endfor %}
|
118
|
-
|
126
|
+
|
119
127
|
{% else %}
|
120
|
-
#{equalsigns(depth+1)} Attributes
|
121
128
|
|
122
129
|
{% for item in definition.attributes %}
|
123
|
-
#{equalsigns(depth+
|
130
|
+
#{equalsigns(depth+1)} Attribute: {{item.name}}
|
124
131
|
|
125
132
|
{% if item.definition %}
|
126
133
|
{{ item.definition }}
|
127
134
|
{% endif %}
|
128
135
|
|
129
|
-
|
130
|
-
|
131
|
-
|===
|
132
|
-
|
133
|
-
h|Value type and multiplicity
|
134
|
-
|
|
135
|
-
`{{ item.type }}`
|
136
|
+
Value type and multiplicity:
|
137
|
+
{% if item.type -%}{{ item.type }}{% else -%}(no type specified){% endif %}
|
136
138
|
{% if item.cardinality.min -%}
|
137
139
|
{% if item.cardinality.max -%}
|
138
|
-
|
140
|
+
{blank}[{{item.cardinality.min}}..{{item.cardinality.max}}]
|
139
141
|
{% else -%}
|
140
|
-
|
142
|
+
{blank}[{{item.cardinality.min}}]
|
141
143
|
{% endif -%}
|
142
144
|
{% else -%}
|
143
145
|
(multiplicity unspecified)
|
144
146
|
{% endif %}
|
145
147
|
|
146
148
|
{% if item.origin %}
|
147
|
-
|
148
|
-
|<<{{ item.origin }}>>
|
149
|
+
Origin: <<{{ item.origin }}>>
|
149
150
|
{% endif %}
|
150
151
|
|
151
|
-
|===
|
152
152
|
{% endfor %}
|
153
153
|
|
154
154
|
{% endif %}
|
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
|
+
spec.add_dependency "asciidoctor"
|
27
|
+
spec.add_dependency "expressir"
|
26
28
|
spec.add_dependency "liquid"
|
27
29
|
spec.add_dependency "lutaml"
|
28
|
-
spec.add_dependency "metanorma"
|
29
30
|
spec.add_dependency "relaton-cli"
|
30
31
|
spec.add_dependency "reverse_adoc"
|
31
|
-
spec.add_dependency "expressir"
|
32
32
|
|
33
33
|
spec.add_development_dependency "byebug"
|
34
34
|
spec.add_development_dependency "equivalent-xml"
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-plugin-lutaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: asciidoctor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: expressir
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: liquid
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: lutaml
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: relaton-cli
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: reverse_adoc
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -301,7 +301,7 @@ homepage: https://github.com/metanorma/metanorma-plugin-lutaml
|
|
301
301
|
licenses:
|
302
302
|
- BSD-2-Clause
|
303
303
|
metadata: {}
|
304
|
-
post_install_message:
|
304
|
+
post_install_message:
|
305
305
|
rdoc_options: []
|
306
306
|
require_paths:
|
307
307
|
- lib
|
@@ -316,8 +316,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
316
|
- !ruby/object:Gem::Version
|
317
317
|
version: '0'
|
318
318
|
requirements: []
|
319
|
-
rubygems_version: 3.
|
320
|
-
signing_key:
|
319
|
+
rubygems_version: 3.3.16
|
320
|
+
signing_key:
|
321
321
|
specification_version: 4
|
322
322
|
summary: Metanorma plugin for LutaML
|
323
323
|
test_files: []
|