lutaml 0.7.7 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +7 -6
  3. data/.rubocop.yml +1 -0
  4. data/LUTAML.adoc +372 -0
  5. data/Makefile +2 -0
  6. data/bin/console +5 -0
  7. data/bin/folder_yaml2lutaml.sh +6 -0
  8. data/bin/plantuml2lutaml +59 -0
  9. data/bin/yaml2lutaml +144 -0
  10. data/exe/lutaml-sysml +20 -0
  11. data/exe/lutaml-wsd2uml +59 -0
  12. data/exe/lutaml-yaml2uml +144 -0
  13. data/lib/lutaml/express/README.adoc +55 -0
  14. data/lib/lutaml/express/parsers/exp.rb +21 -0
  15. data/lib/lutaml/express/version.rb +7 -0
  16. data/lib/lutaml/express.rb +9 -0
  17. data/lib/lutaml/parser.rb +7 -0
  18. data/lib/lutaml/sysml/README.md +40 -0
  19. data/lib/lutaml/sysml/allocate.rb +8 -0
  20. data/lib/lutaml/sysml/allocated.rb +7 -0
  21. data/lib/lutaml/sysml/binding_connector.rb +7 -0
  22. data/lib/lutaml/sysml/block.rb +27 -0
  23. data/lib/lutaml/sysml/constraint_block.rb +12 -0
  24. data/lib/lutaml/sysml/copy.rb +6 -0
  25. data/lib/lutaml/sysml/derive_requirement.rb +7 -0
  26. data/lib/lutaml/sysml/nested_connector_end.rb +11 -0
  27. data/lib/lutaml/sysml/refine.rb +7 -0
  28. data/lib/lutaml/sysml/requirement.rb +34 -0
  29. data/lib/lutaml/sysml/requirement_related.rb +7 -0
  30. data/lib/lutaml/sysml/satisfy.rb +7 -0
  31. data/lib/lutaml/sysml/test_case.rb +22 -0
  32. data/lib/lutaml/sysml/trace.rb +7 -0
  33. data/lib/lutaml/sysml/verify.rb +6 -0
  34. data/lib/lutaml/sysml/version.rb +5 -0
  35. data/lib/lutaml/sysml/xmi_file.rb +417 -0
  36. data/lib/lutaml/sysml.rb +10 -0
  37. data/lib/lutaml/uml/README.adoc +44 -0
  38. data/lib/lutaml/uml/abstraction.rb +11 -0
  39. data/lib/lutaml/uml/activity.rb +11 -0
  40. data/lib/lutaml/uml/actor.rb +19 -0
  41. data/lib/lutaml/uml/association.rb +43 -0
  42. data/lib/lutaml/uml/behavior.rb +11 -0
  43. data/lib/lutaml/uml/class.rb +83 -0
  44. data/lib/lutaml/uml/classifier.rb +11 -0
  45. data/lib/lutaml/uml/connector.rb +21 -0
  46. data/lib/lutaml/uml/constraint.rb +12 -0
  47. data/lib/lutaml/uml/constructor_end.rb +16 -0
  48. data/lib/lutaml/uml/data_type.rb +75 -0
  49. data/lib/lutaml/uml/dependency.rb +21 -0
  50. data/lib/lutaml/uml/diagram.rb +8 -0
  51. data/lib/lutaml/uml/document.rb +81 -0
  52. data/lib/lutaml/uml/enum.rb +45 -0
  53. data/lib/lutaml/uml/event.rb +12 -0
  54. data/lib/lutaml/uml/final_state.rb +11 -0
  55. data/lib/lutaml/uml/formatter/base.rb +67 -0
  56. data/lib/lutaml/uml/formatter/graphviz.rb +334 -0
  57. data/lib/lutaml/uml/formatter.rb +21 -0
  58. data/lib/lutaml/uml/has_attributes.rb +14 -0
  59. data/lib/lutaml/uml/has_members.rb +30 -0
  60. data/lib/lutaml/uml/instance.rb +17 -0
  61. data/lib/lutaml/uml/model.rb +13 -0
  62. data/lib/lutaml/uml/node/base.rb +21 -0
  63. data/lib/lutaml/uml/node/class_node.rb +57 -0
  64. data/lib/lutaml/uml/node/class_relationship.rb +14 -0
  65. data/lib/lutaml/uml/node/document.rb +18 -0
  66. data/lib/lutaml/uml/node/field.rb +34 -0
  67. data/lib/lutaml/uml/node/has_name.rb +15 -0
  68. data/lib/lutaml/uml/node/has_type.rb +15 -0
  69. data/lib/lutaml/uml/node/method.rb +29 -0
  70. data/lib/lutaml/uml/node/method_argument.rb +16 -0
  71. data/lib/lutaml/uml/node/relationship.rb +28 -0
  72. data/lib/lutaml/uml/opaque_behavior.rb +11 -0
  73. data/lib/lutaml/uml/operation.rb +31 -0
  74. data/lib/lutaml/uml/package.rb +53 -0
  75. data/lib/lutaml/uml/parsers/attribute.rb +70 -0
  76. data/lib/lutaml/uml/parsers/dsl.rb +413 -0
  77. data/lib/lutaml/uml/parsers/dsl_preprocessor.rb +59 -0
  78. data/lib/lutaml/uml/parsers/dsl_transform.rb +27 -0
  79. data/lib/lutaml/uml/parsers/yaml.rb +46 -0
  80. data/lib/lutaml/uml/port.rb +8 -0
  81. data/lib/lutaml/uml/primitive_type.rb +14 -0
  82. data/lib/lutaml/uml/property.rb +27 -0
  83. data/lib/lutaml/uml/pseudostate.rb +11 -0
  84. data/lib/lutaml/uml/realization.rb +11 -0
  85. data/lib/lutaml/uml/region.rb +12 -0
  86. data/lib/lutaml/uml/serializers/association.rb +58 -0
  87. data/lib/lutaml/uml/serializers/base.rb +16 -0
  88. data/lib/lutaml/uml/serializers/class.rb +29 -0
  89. data/lib/lutaml/uml/serializers/top_element_attribute.rb +14 -0
  90. data/lib/lutaml/uml/serializers/yaml_view.rb +18 -0
  91. data/lib/lutaml/uml/state.rb +12 -0
  92. data/lib/lutaml/uml/state_machine.rb +12 -0
  93. data/lib/lutaml/uml/top_element.rb +58 -0
  94. data/lib/lutaml/uml/top_element_attribute.rb +39 -0
  95. data/lib/lutaml/uml/transition.rb +12 -0
  96. data/lib/lutaml/uml/trigger.rb +12 -0
  97. data/lib/lutaml/uml/value.rb +31 -0
  98. data/lib/lutaml/uml/version.rb +7 -0
  99. data/lib/lutaml/uml/vertex.rb +11 -0
  100. data/lib/lutaml/uml.rb +13 -0
  101. data/lib/lutaml/version.rb +1 -1
  102. data/lib/lutaml/xmi/README.adoc +24 -0
  103. data/lib/lutaml/xmi/parsers/xml.rb +600 -0
  104. data/lib/lutaml/xmi/version.rb +5 -0
  105. data/lib/lutaml/xmi.rb +7 -0
  106. data/lib/lutaml/xml/lutaml_path/document_wrapper.rb +45 -0
  107. data/lib/lutaml/xml/mapper.rb +448 -0
  108. data/lib/lutaml/xml/parsers/xml.rb +57 -0
  109. data/lib/lutaml/xml.rb +9 -0
  110. data/lutaml.gemspec +8 -3
  111. metadata +192 -16
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-08 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expressir
@@ -25,21 +25,21 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
- name: lutaml-express
28
+ name: hashie
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 4.1.0
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: '0'
40
+ version: 4.1.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: lutaml-uml
42
+ name: htmlentities
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,33 +53,47 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: lutaml-xmi
56
+ name: nokogiri
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.10'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1.10'
69
69
  - !ruby/object:Gem::Dependency
70
- name: nokogiri
70
+ name: parslet
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.10'
75
+ version: 2.0.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.10'
82
+ version: 2.0.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: ruby-graphviz
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.2'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.2'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: thor
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,48 @@ dependencies:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: xmi
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: byebug
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: equivalent-xml
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.6.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.6.0
97
153
  - !ruby/object:Gem::Dependency
98
154
  name: pry
99
155
  requirement: !ruby/object:Gem::Requirement
@@ -150,11 +206,28 @@ dependencies:
150
206
  - - "~>"
151
207
  - !ruby/object:Gem::Version
152
208
  version: '1.58'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rubocop-performance
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '1.19'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '1.19'
153
223
  description: 'LutaML: data models in textual form'
154
224
  email:
155
225
  - open.source@ribose.com'
156
226
  executables:
157
227
  - lutaml
228
+ - lutaml-sysml
229
+ - lutaml-wsd2uml
230
+ - lutaml-yaml2uml
158
231
  extensions: []
159
232
  extra_rdoc_files: []
160
233
  files:
@@ -166,15 +239,27 @@ files:
166
239
  - ".rubocop.yml"
167
240
  - CODE_OF_CONDUCT.md
168
241
  - Gemfile
242
+ - LUTAML.adoc
243
+ - Makefile
169
244
  - README.adoc
170
245
  - Rakefile
171
246
  - bin/console
247
+ - bin/folder_yaml2lutaml.sh
248
+ - bin/plantuml2lutaml
172
249
  - bin/setup
250
+ - bin/yaml2lutaml
173
251
  - exe/lutaml
252
+ - exe/lutaml-sysml
253
+ - exe/lutaml-wsd2uml
254
+ - exe/lutaml-yaml2uml
174
255
  - lib/lutaml.rb
175
256
  - lib/lutaml/command_line.rb
257
+ - lib/lutaml/express.rb
258
+ - lib/lutaml/express/README.adoc
176
259
  - lib/lutaml/express/lutaml_path/document_wrapper.rb
177
260
  - lib/lutaml/express/lutaml_path/formatter.rb
261
+ - lib/lutaml/express/parsers/exp.rb
262
+ - lib/lutaml/express/version.rb
178
263
  - lib/lutaml/formatter.rb
179
264
  - lib/lutaml/formatter/base.rb
180
265
  - lib/lutaml/formatter/graphviz.rb
@@ -182,8 +267,99 @@ files:
182
267
  - lib/lutaml/layout/graph_viz_engine.rb
183
268
  - lib/lutaml/lutaml_path/document_wrapper.rb
184
269
  - lib/lutaml/parser.rb
270
+ - lib/lutaml/sysml.rb
271
+ - lib/lutaml/sysml/README.md
272
+ - lib/lutaml/sysml/allocate.rb
273
+ - lib/lutaml/sysml/allocated.rb
274
+ - lib/lutaml/sysml/binding_connector.rb
275
+ - lib/lutaml/sysml/block.rb
276
+ - lib/lutaml/sysml/constraint_block.rb
277
+ - lib/lutaml/sysml/copy.rb
278
+ - lib/lutaml/sysml/derive_requirement.rb
279
+ - lib/lutaml/sysml/nested_connector_end.rb
280
+ - lib/lutaml/sysml/refine.rb
281
+ - lib/lutaml/sysml/requirement.rb
282
+ - lib/lutaml/sysml/requirement_related.rb
283
+ - lib/lutaml/sysml/satisfy.rb
284
+ - lib/lutaml/sysml/test_case.rb
285
+ - lib/lutaml/sysml/trace.rb
286
+ - lib/lutaml/sysml/verify.rb
287
+ - lib/lutaml/sysml/version.rb
288
+ - lib/lutaml/sysml/xmi_file.rb
289
+ - lib/lutaml/uml.rb
290
+ - lib/lutaml/uml/README.adoc
291
+ - lib/lutaml/uml/abstraction.rb
292
+ - lib/lutaml/uml/activity.rb
293
+ - lib/lutaml/uml/actor.rb
294
+ - lib/lutaml/uml/association.rb
295
+ - lib/lutaml/uml/behavior.rb
296
+ - lib/lutaml/uml/class.rb
297
+ - lib/lutaml/uml/classifier.rb
298
+ - lib/lutaml/uml/connector.rb
299
+ - lib/lutaml/uml/constraint.rb
300
+ - lib/lutaml/uml/constructor_end.rb
301
+ - lib/lutaml/uml/data_type.rb
302
+ - lib/lutaml/uml/dependency.rb
303
+ - lib/lutaml/uml/diagram.rb
304
+ - lib/lutaml/uml/document.rb
305
+ - lib/lutaml/uml/enum.rb
306
+ - lib/lutaml/uml/event.rb
307
+ - lib/lutaml/uml/final_state.rb
308
+ - lib/lutaml/uml/formatter.rb
309
+ - lib/lutaml/uml/formatter/base.rb
310
+ - lib/lutaml/uml/formatter/graphviz.rb
311
+ - lib/lutaml/uml/has_attributes.rb
312
+ - lib/lutaml/uml/has_members.rb
313
+ - lib/lutaml/uml/instance.rb
185
314
  - lib/lutaml/uml/lutaml_path/document_wrapper.rb
315
+ - lib/lutaml/uml/model.rb
316
+ - lib/lutaml/uml/node/base.rb
317
+ - lib/lutaml/uml/node/class_node.rb
318
+ - lib/lutaml/uml/node/class_relationship.rb
319
+ - lib/lutaml/uml/node/document.rb
320
+ - lib/lutaml/uml/node/field.rb
321
+ - lib/lutaml/uml/node/has_name.rb
322
+ - lib/lutaml/uml/node/has_type.rb
323
+ - lib/lutaml/uml/node/method.rb
324
+ - lib/lutaml/uml/node/method_argument.rb
325
+ - lib/lutaml/uml/node/relationship.rb
326
+ - lib/lutaml/uml/opaque_behavior.rb
327
+ - lib/lutaml/uml/operation.rb
328
+ - lib/lutaml/uml/package.rb
329
+ - lib/lutaml/uml/parsers/attribute.rb
330
+ - lib/lutaml/uml/parsers/dsl.rb
331
+ - lib/lutaml/uml/parsers/dsl_preprocessor.rb
332
+ - lib/lutaml/uml/parsers/dsl_transform.rb
333
+ - lib/lutaml/uml/parsers/yaml.rb
334
+ - lib/lutaml/uml/port.rb
335
+ - lib/lutaml/uml/primitive_type.rb
336
+ - lib/lutaml/uml/property.rb
337
+ - lib/lutaml/uml/pseudostate.rb
338
+ - lib/lutaml/uml/realization.rb
339
+ - lib/lutaml/uml/region.rb
340
+ - lib/lutaml/uml/serializers/association.rb
341
+ - lib/lutaml/uml/serializers/base.rb
342
+ - lib/lutaml/uml/serializers/class.rb
343
+ - lib/lutaml/uml/serializers/top_element_attribute.rb
344
+ - lib/lutaml/uml/serializers/yaml_view.rb
345
+ - lib/lutaml/uml/state.rb
346
+ - lib/lutaml/uml/state_machine.rb
347
+ - lib/lutaml/uml/top_element.rb
348
+ - lib/lutaml/uml/top_element_attribute.rb
349
+ - lib/lutaml/uml/transition.rb
350
+ - lib/lutaml/uml/trigger.rb
351
+ - lib/lutaml/uml/value.rb
352
+ - lib/lutaml/uml/version.rb
353
+ - lib/lutaml/uml/vertex.rb
186
354
  - lib/lutaml/version.rb
355
+ - lib/lutaml/xmi.rb
356
+ - lib/lutaml/xmi/README.adoc
357
+ - lib/lutaml/xmi/parsers/xml.rb
358
+ - lib/lutaml/xmi/version.rb
359
+ - lib/lutaml/xml.rb
360
+ - lib/lutaml/xml/lutaml_path/document_wrapper.rb
361
+ - lib/lutaml/xml/mapper.rb
362
+ - lib/lutaml/xml/parsers/xml.rb
187
363
  - lutaml.gemspec
188
364
  homepage: https://github.com/lutaml/lutaml
189
365
  licenses: