metanorma-plugin-lutaml 0.7.30 → 0.7.31
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/Gemfile +10 -8
- data/README.adoc +16 -1030
- data/docs/usages/enterprise_architect.adoc +583 -0
- data/docs/usages/express.adoc +299 -0
- data/docs/usages/json_yaml.adoc +1034 -0
- data/docs/usages/lutaml-gml.adoc +73 -0
- data/docs/usages/lutaml-uml.adoc +73 -0
- data/lib/metanorma/plugin/lutaml/asciidoctor/preprocessor.rb +1 -1
- data/lib/metanorma/plugin/lutaml/base_structured_text_preprocessor.rb +192 -0
- data/lib/metanorma/plugin/lutaml/content.rb +89 -0
- data/lib/metanorma/plugin/lutaml/data2_text_preprocessor.rb +45 -0
- data/lib/metanorma/plugin/lutaml/express_remarks_decorator.rb +19 -6
- data/lib/metanorma/plugin/lutaml/json2_text_preprocessor.rb +43 -0
- data/lib/metanorma/plugin/lutaml/liquid/custom_blocks/key_iterator.rb +31 -0
- data/lib/metanorma/plugin/lutaml/liquid/custom_filters/loadfile.rb +18 -0
- data/lib/metanorma/plugin/lutaml/liquid/custom_filters/replace_regex.rb +14 -0
- data/lib/metanorma/plugin/lutaml/liquid/custom_filters/values.rb +13 -0
- data/lib/metanorma/plugin/lutaml/liquid/multiply_local_file_system.rb +29 -22
- data/lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_drop.rb +1 -1
- data/lib/metanorma/plugin/lutaml/lutaml_diagram_base.rb +1 -1
- data/lib/metanorma/plugin/lutaml/lutaml_diagram_block_macro.rb +2 -1
- data/lib/metanorma/plugin/lutaml/lutaml_ea_diagram_block_macro.rb +2 -1
- data/lib/metanorma/plugin/lutaml/lutaml_ea_xmi_base.rb +48 -36
- data/lib/metanorma/plugin/lutaml/lutaml_figure_inline_macro.rb +2 -1
- data/lib/metanorma/plugin/lutaml/lutaml_gml_dictionary_block_macro.rb +3 -1
- data/lib/metanorma/plugin/lutaml/lutaml_klass_table_block_macro.rb +2 -1
- data/lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb +15 -2
- data/lib/metanorma/plugin/lutaml/lutaml_table_inline_macro.rb +2 -1
- data/lib/metanorma/plugin/lutaml/source_extractor.rb +97 -0
- data/lib/metanorma/plugin/lutaml/utils.rb +59 -26
- data/lib/metanorma/plugin/lutaml/version.rb +1 -1
- data/lib/metanorma/plugin/lutaml/yaml2_text_preprocessor.rb +41 -0
- data/lib/metanorma-plugin-lutaml.rb +3 -0
- data/metanorma-plugin-lutaml.gemspec +7 -1
- metadata +35 -6
- data/lib/metanorma/plugin/lutaml/liquid_templates/test.rb +0 -1
- /data/lib/metanorma/plugin/lutaml/liquid/{custom_filters.rb → custom_filters/html2adoc.rb} +0 -0
@@ -15,7 +15,8 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.license = "BSD-2-Clause"
|
16
16
|
|
17
17
|
# Specify which files should be added to the gem when it is released.
|
18
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been
|
19
|
+
# added into git.
|
19
20
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
20
21
|
`git ls-files -z`.split("\x0").reject do |f|
|
21
22
|
f.match(%r{^(test|spec|features)/})
|
@@ -25,11 +26,16 @@ Gem::Specification.new do |spec|
|
|
25
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
27
|
spec.require_paths = ["lib"]
|
27
28
|
|
29
|
+
spec.required_ruby_version = ">= 2.7.0" # rubocop:disable Gemspec/RequiredRubyVersion
|
30
|
+
|
28
31
|
spec.add_dependency "asciidoctor"
|
29
32
|
spec.add_dependency "coradoc", "~> 1.1.1"
|
30
33
|
spec.add_dependency "expressir", "~> 2.1.13"
|
34
|
+
spec.add_dependency "isodoc"
|
31
35
|
spec.add_dependency "liquid"
|
32
36
|
spec.add_dependency "lutaml", "~> 0.9.32"
|
33
37
|
spec.add_dependency "ogc-gml", "~>1.0.0"
|
34
38
|
spec.add_dependency "relaton-cli"
|
39
|
+
|
40
|
+
spec.metadata["rubygems_mfa_required"] = "false"
|
35
41
|
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.
|
4
|
+
version: 0.7.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 2.1.13
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: isodoc
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: liquid
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,16 +141,29 @@ files:
|
|
127
141
|
- Rakefile
|
128
142
|
- bin/console
|
129
143
|
- bin/setup
|
144
|
+
- docs/usages/enterprise_architect.adoc
|
145
|
+
- docs/usages/express.adoc
|
146
|
+
- docs/usages/json_yaml.adoc
|
147
|
+
- docs/usages/lutaml-gml.adoc
|
148
|
+
- docs/usages/lutaml-uml.adoc
|
130
149
|
- lib/metanorma-plugin-lutaml.rb
|
131
150
|
- lib/metanorma/plugin/lutaml/asciidoctor/preprocessor.rb
|
151
|
+
- lib/metanorma/plugin/lutaml/base_structured_text_preprocessor.rb
|
132
152
|
- lib/metanorma/plugin/lutaml/config.rb
|
133
153
|
- lib/metanorma/plugin/lutaml/config/guidance.rb
|
134
154
|
- lib/metanorma/plugin/lutaml/config/guidance_attribute.rb
|
135
155
|
- lib/metanorma/plugin/lutaml/config/guidance_klass.rb
|
136
156
|
- lib/metanorma/plugin/lutaml/config/package.rb
|
137
157
|
- lib/metanorma/plugin/lutaml/config/root.rb
|
158
|
+
- lib/metanorma/plugin/lutaml/content.rb
|
159
|
+
- lib/metanorma/plugin/lutaml/data2_text_preprocessor.rb
|
138
160
|
- lib/metanorma/plugin/lutaml/express_remarks_decorator.rb
|
139
|
-
- lib/metanorma/plugin/lutaml/
|
161
|
+
- lib/metanorma/plugin/lutaml/json2_text_preprocessor.rb
|
162
|
+
- lib/metanorma/plugin/lutaml/liquid/custom_blocks/key_iterator.rb
|
163
|
+
- lib/metanorma/plugin/lutaml/liquid/custom_filters/html2adoc.rb
|
164
|
+
- lib/metanorma/plugin/lutaml/liquid/custom_filters/loadfile.rb
|
165
|
+
- lib/metanorma/plugin/lutaml/liquid/custom_filters/replace_regex.rb
|
166
|
+
- lib/metanorma/plugin/lutaml/liquid/custom_filters/values.rb
|
140
167
|
- lib/metanorma/plugin/lutaml/liquid/multiply_local_file_system.rb
|
141
168
|
- lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_drop.rb
|
142
169
|
- lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_entry_drop.rb
|
@@ -152,7 +179,6 @@ files:
|
|
152
179
|
- lib/metanorma/plugin/lutaml/liquid_templates/_packages_entity_list_class.liquid
|
153
180
|
- lib/metanorma/plugin/lutaml/liquid_templates/_packages_entity_list_classes.liquid
|
154
181
|
- lib/metanorma/plugin/lutaml/liquid_templates/_packages_enum.liquid
|
155
|
-
- lib/metanorma/plugin/lutaml/liquid_templates/test.rb
|
156
182
|
- lib/metanorma/plugin/lutaml/lutaml_diagram_base.rb
|
157
183
|
- lib/metanorma/plugin/lutaml/lutaml_diagram_block.rb
|
158
184
|
- lib/metanorma/plugin/lutaml/lutaml_diagram_block_macro.rb
|
@@ -167,13 +193,16 @@ files:
|
|
167
193
|
- lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb
|
168
194
|
- lib/metanorma/plugin/lutaml/lutaml_table_inline_macro.rb
|
169
195
|
- lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb
|
196
|
+
- lib/metanorma/plugin/lutaml/source_extractor.rb
|
170
197
|
- lib/metanorma/plugin/lutaml/utils.rb
|
171
198
|
- lib/metanorma/plugin/lutaml/version.rb
|
199
|
+
- lib/metanorma/plugin/lutaml/yaml2_text_preprocessor.rb
|
172
200
|
- metanorma-plugin-lutaml.gemspec
|
173
201
|
homepage: https://github.com/metanorma/metanorma-plugin-lutaml
|
174
202
|
licenses:
|
175
203
|
- BSD-2-Clause
|
176
|
-
metadata:
|
204
|
+
metadata:
|
205
|
+
rubygems_mfa_required: 'false'
|
177
206
|
post_install_message:
|
178
207
|
rdoc_options: []
|
179
208
|
require_paths:
|
@@ -182,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
211
|
requirements:
|
183
212
|
- - ">="
|
184
213
|
- !ruby/object:Gem::Version
|
185
|
-
version:
|
214
|
+
version: 2.7.0
|
186
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
216
|
requirements:
|
188
217
|
- - ">="
|
@@ -1 +0,0 @@
|
|
1
|
-
k = {"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_0BD8DEDF_F024_453d_AA7D_6EBC873FDBB6", "member_end"=>"AbstractFeatureWithLifespan", "member_end_type"=>"inheritance", "member_end_cardinality"=>{"min"=>nil, "max"=>""},"}, "member_end_attribute_name"=>nil, "owner_end"=>"AbstractCityObject", "definition"=>""}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_1C91D9CF_14CB_400c_A818_7C74428AE5B7", "member_end"=>"AbstractAppearance", "member_end_type"=>"aggregation", "member_end_cardinality"=>{"min"=>"M", "max"=>" "member_end_attribute_name"=>"appearance", "owner_end"=>"AbstractCityObject", "definition"=>"Relates appearances to the city object."}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_BDD0FCAB_72F7_499b_AC4D_2391D4DE7CAC", "member_end"=>"AbstractGenericAttribute", "member_end_type"=>"aggregation", "member_end_cardinality"=>{"min"=>"M", "max"=>""},"}, "member_end_attribute_name"=>"genericAttribute", "owner_end"=>"AbstractCityObject", "definition"=>"Relates generic attributes to the city object."}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_C22B8769_C2E7_4e9b_9C0D_138631E90002", "member_end"=>"AbstractCityObject", "member_end_type"=>"aggregation", "member_end_cardinality"=>{"min"=>"M", "max"=>" "member_end_attribute_name"=>"generalizesTo", "owner_end"=>"AbstractCityObject", "definition"=>"Relates generalized representations of the same real-world object in different Levels of Detail to the city object. The direction of this relation is from the city object to the corresponding generalized city objects."}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_CF0045E1_6BF1_40a7_B08D_9B7B30ECA025", "member_end"=>"ExternalReference", "member_end_type"=>"aggregation", "member_end_cardinality"=>{"min"=>"M", "max"=>""},"}, "member_end_attribute_name"=>"externalReference", "owner_end"=>"AbstractCityObject", "definition"=>"References external objects in other information systems that have a relation to the city object."}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_D45045CA_AAD6_418a_AF10_F4BC95DE923A", "member_end"=>"AbstractCityObject", "member_end_type"=>"aggregation", "member_end_cardinality"=>{"min"=>"M", "max"=>" "member_end_attribute_name"=>"relatedTo", "owner_end"=>"AbstractCityObject", "definition"=>"Relates other city objects to the city object. It also describes how the city objects are related to each other."}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_E3BB8700_143D_4dbd_A7EC_49D33C66D430", "member_end"=>"AbstractDynamizer", "member_end_type"=>"aggregation", "member_end_cardinality"=>{"min"=>"M", "max"=>""},"}, "member_end_attribute_name"=>"dynamizer", "owner_end"=>"AbstractCityObject", "definition"=>"Relates Dynamizer objects to the city object. These allow timeseries data to override static attribute values of the city object."}{"visibility"=>"public", "name"=>nil, "owner_end"=>"AbstractCityObject"}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_BE026036_E811_494c_9776_D1A309393D6D", "member_end"=>"AbstractSpace", "member_end_type"=>"generalization", "member_end_cardinality"=>nil, "member_end_attribute_name"=>nil, "owner_end"=>"AbstractCityObject", "definition"=>""}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_C2189DFF_0F24_475b_AB55_070CD09A3186", "member_end"=>"AbstractSpaceBoundary", "member_end_type"=>"generalization", "member_end_cardinality"=>{"min"=>nil, "max"=>" "member_end_attribute_name"=>nil, "owner_end"=>"AbstractCityObject", "definition"=>""}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_C22B8769_C2E7_4e9b_9C0D_138631E90002", "member_end"=>"AbstractCityObject", "member_end_type"=>"aggregation", "member_end_cardinality"=>{"min"=>"M", "max"=>""},"}, "member_end_attribute_name"=>"generalizesTo", "owner_end"=>"AbstractCityObject", "definition"=>"Relates generalized representations of the same real-world object in different Levels of Detail to the city object. The direction of this relation is from the city object to the corresponding generalized city objects."}{"visibility"=>"public", "name"=>nil, "xmi_id"=>"EAID_D45045CA_AAD6_418a_AF10_F4BC95DE923A", "member_end"=>"AbstractCityObject", "member_end_type"=>"aggregation", "member_end_cardinality"=>{"min"=>"M", "max"=>" "member_end_attribute_name"=>"relatedTo", "owner_end"=>"AbstractCityObject", "definition"=>"Relates other city objects to the city object. It also describes how the city objects are related to each other."}{"visibility"=>"public", "name"=>nil, "owner_end"=>"AbstractCityObject"}{"visibility"=>"public", "name"=>nil, "owner_end"=>"AbstractCityObject"}
|
File without changes
|