metanorma-plugin-lutaml 0.4.18.2 → 0.4.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metanorma/plugin/lutaml/liquid_templates/_packages.liquid +1 -1
- data/lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_dictionary.liquid +10 -10
- data/lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_dictionary_class.liquid +20 -6
- data/lib/metanorma/plugin/lutaml/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 630f5c9adbb662d5f2aea46dd1deb40cd4e6a935133214e10e1cf298dedd9f3b
|
4
|
+
data.tar.gz: 733f2e388c638d3ca3081a220b47624abc505bbef3ad6e414b9d1b12adc508ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6dd4a103fff25ec175bd07da453eabfe7e767f0ef6663e22116dc98a85d62549432ad7348c05828cb51ae111293cc308269bfb07465a5d60ed874dc6a8407ae
|
7
|
+
data.tar.gz: cf196784ea5a546c82e560b4dae9234a74a877aa64155f6d7e8a55d6b80acae00f125b6968d90eb18bf9bf3ed977a7bdecd4e2beb92f3de4f7f591fc9860a2fa
|
@@ -1,5 +1,5 @@
|
|
1
1
|
{% for package in context.packages %}
|
2
|
-
{% assign package_name = package.name | downcase | replace: ":", "" | replace: " ", "_" %}
|
2
|
+
{% assign package_name = package.name | downcase | replace: ":", "" | replace: " ", "_" | replace: "-", "_" %}
|
3
3
|
{% if additional_context.before and additional_context.before.size > 0 %}
|
4
4
|
{% for before in additional_context.before %}
|
5
5
|
{% if before.text %}
|
@@ -67,13 +67,13 @@
|
|
67
67
|
{% endfor %}
|
68
68
|
{% endif %}
|
69
69
|
|
70
|
-
.Metadata of {{ package.name }}
|
70
|
+
.Metadata of {{ package.name }} {% if package.stereotype %}(«{{package.stereotype}}»){% endif %}
|
71
71
|
[cols="1a,4a"]
|
72
72
|
|===
|
73
73
|
|
74
|
-
h|Description: | {{ package.definition | replace: '|', '\|' }}
|
74
|
+
h|Description: | {{ package.definition | replace: '|', '\|' | html2adoc }}
|
75
75
|
h|Parent package: | {{ context.name }}
|
76
|
-
h|Stereotype: | «{{
|
76
|
+
h|Stereotype: | {% if package.stereotype %}«{{package.stereotype}}»{% else %}None{% endif %}
|
77
77
|
|
78
78
|
|===
|
79
79
|
|
@@ -139,12 +139,12 @@ None.
|
|
139
139
|
[[section-{{ data_type.xmi_id }}]]
|
140
140
|
{{equalsigns}}== {{ data_type.name }}
|
141
141
|
|
142
|
-
.Metadata of {{ data_type.name }}
|
142
|
+
.Metadata of {{ data_type.name }} {% if data_type.stereotype %}(«{{data_type.stereotype}}»){% endif %}
|
143
143
|
[cols="1a,4a"]
|
144
144
|
|===
|
145
|
-
h|Definition: | {{ data_type.definition | replace: '|', '\|' }}
|
145
|
+
h|Definition: | {{ data_type.definition | replace: '|', '\|' | html2adoc }}
|
146
146
|
h|Subclass of: | {% if generalizations.size > 0 %}{{ generalizations }}{% else %}None{% endif %}
|
147
|
-
h|Stereotype: | «{{
|
147
|
+
h|Stereotype: | {% if data_type.stereotype %}«{{data_type.stereotype}}»{% else %}None{% endif %}
|
148
148
|
|
149
149
|
{% if data_type.constraints.size > 0 %}
|
150
150
|
{% for constraint in data_type.constraints %}
|
@@ -167,7 +167,7 @@ h| Constraint:
|
|
167
167
|
{% capture cardinality %}[{% case assoc.member_end_cardinality.min %}{% when "C" %}0{% when "M" %}1{% else %}{{assoc.member_end_cardinality.min}}{% endcase %}..{{ assoc.member_end_cardinality.max }}]{% endcapture %}
|
168
168
|
| {{ assoc.member_end_attribute_name }}
|
169
169
|
{% if additional_context.external_classes[assoc.member_end] %}| <<{{ additional_context.external_classes[assoc.member_end] }},{{assoc.member_end}}>> {{ cardinality }}{% else %}| <<section-{{ assoc.member_end_xmi_id }},{{assoc.member_end}}>> {{ cardinality }}{% endif %}
|
170
|
-
| {{ assoc.definition | replace: '|', '\|' }}
|
170
|
+
| {{ assoc.definition | replace: '|', '\|' | html2adoc }}
|
171
171
|
{% endif %}
|
172
172
|
{% endfor %}
|
173
173
|
{% endcapture %}
|
@@ -196,7 +196,7 @@ h| Constraint:
|
|
196
196
|
{% capture cardinality %}[{% case attr.cardinality.min %}{% when 'C' %}0{% when 'M' %}1{% else %}{{ attr.cardinality.min }}{% endcase %}..{{ attr.cardinality.max }}]{% endcapture %}
|
197
197
|
| {{ attr.name }}
|
198
198
|
{% if additional_context.external_classes[attr.type] %}| <<{{ additional_context.external_classes[attr.type] }},{{ attr.type }}>> {{ cardinality }}{% else %}| <<section-{{ attr.xmi_id }},{{ attr.type }}>> {{ cardinality }}{% endif %}
|
199
|
-
| {{ attr.definition | replace: '|', '\|' }}
|
199
|
+
| {{ attr.definition | replace: '|', '\|' | html2adoc }}
|
200
200
|
|
201
201
|
{% endfor %}
|
202
202
|
|===
|
@@ -223,7 +223,7 @@ None.
|
|
223
223
|
.Metadata of {{ enum.name }} (Enumeration)
|
224
224
|
[cols="1a,4a"]
|
225
225
|
|===
|
226
|
-
h|Definition: | {{ enum.definition | replace: '|', '\|' }}
|
226
|
+
h|Definition: | {{ enum.definition | replace: '|', '\|' | html2adoc }}
|
227
227
|
h|Stereotype: | «Enumeration»
|
228
228
|
|===
|
229
229
|
|
@@ -235,7 +235,7 @@ h|Stereotype: | «Enumeration»
|
|
235
235
|
|
236
236
|
{% for val in enum.values %}
|
237
237
|
| {{ val.name }}
|
238
|
-
| {{ val.definition | replace: '|', '\|' }}
|
238
|
+
| {{ val.definition | replace: '|', '\|' | html2adoc }}
|
239
239
|
|
240
240
|
{% endfor %}
|
241
241
|
|
@@ -4,12 +4,26 @@
|
|
4
4
|
{{equalsigns}} {{ klass.name }}
|
5
5
|
{%comment%}(inside class: depth is {{ depth }}, equalsigns {{equalsigns}}){%endcomment%}
|
6
6
|
|
7
|
-
.Metadata of {{ klass.name }} ({{klass.stereotype}})
|
7
|
+
.Metadata of {{ klass.name }} {% if klass.stereotype %}(«{{klass.stereotype}}»){% endif %}
|
8
8
|
[cols="1a,4a"]
|
9
9
|
|===
|
10
|
-
h| Definition:
|
11
|
-
|
12
|
-
|
10
|
+
h| Definition:
|
11
|
+
|
|
12
|
+
{% if klass.definition %}
|
13
|
+
{{ klass.definition | replace: '|', '\|' | html2adoc }}
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
h| Subclass of:
|
17
|
+
|
|
18
|
+
{% if generalizations.size > 0 %}{{ generalizations }}{% else %}None{% endif %}
|
19
|
+
|
20
|
+
h| Stereotype:
|
21
|
+
|
|
22
|
+
{% if klass.stereotype %}
|
23
|
+
«{{ klass.stereotype }}»
|
24
|
+
{% else %}
|
25
|
+
None
|
26
|
+
{% endif %}
|
13
27
|
|
14
28
|
{% if klass.constraints.size > 0 %}
|
15
29
|
{% for constraint in klass.constraints %}
|
@@ -32,7 +46,7 @@ h| Constraint:
|
|
32
46
|
{% capture cardinality %}[{% case assoc.member_end_cardinality.min %}{% when "C" %}0{% when "M" %}1{% else %}{{assoc.member_end_cardinality.min}}{% endcase %}..{{ assoc.member_end_cardinality.max }}]{% endcapture %}
|
33
47
|
| {{ assoc.member_end_attribute_name }}
|
34
48
|
{% if additional_context.external_classes[assoc.member_end] %}| <<{{ additional_context.external_classes[assoc.member_end] }},{{assoc.member_end}}>> {{ cardinality }}{% else %}| <<section-{{ assoc.member_end_xmi_id }},{{ assoc.member_end }}>> {{ cardinality }}{% endif %}
|
35
|
-
| {{ assoc.definition | replace: '|', '\|' }}
|
49
|
+
| {{ assoc.definition | replace: '|', '\|' | html2adoc }}
|
36
50
|
{% endif %}
|
37
51
|
{% endfor %}
|
38
52
|
{% endcapture %}
|
@@ -60,7 +74,7 @@ h| Constraint:
|
|
60
74
|
{% capture cardinality %}[{% case attr.cardinality.min %}{% when 'C' %}0{% when 'M' %}1{% else %}{{ attr.cardinality.min }}{% endcase %}..{{ attr.cardinality.max }}]{% endcapture %}
|
61
75
|
| {{ attr.name }}
|
62
76
|
{% if additional_context.external_classes[attr.type] %}| <<{{ additional_context.external_classes[attr.type] }},{{ attr.type }}>> {{ cardinality }}{% else %}| <<section-{{ attr.xmi_id }},{{ attr.type }}>> {{ cardinality }}{% endif %}
|
63
|
-
| {{ attr.definition | replace: '|', '\|' }}
|
77
|
+
| {{ attr.definition | replace: '|', '\|' | html2adoc }}
|
64
78
|
|
65
79
|
{% endfor %}
|
66
80
|
|===
|
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.4.
|
4
|
+
version: 0.4.19
|
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:
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -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.7
|
320
|
+
signing_key:
|
321
321
|
specification_version: 4
|
322
322
|
summary: Metanorma plugin for LutaML
|
323
323
|
test_files: []
|