lutaml-lml 0.3.6 → 0.3.7

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.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lutaml-lml.rb +5 -0
  3. data/lib/lutaml_lml/version.rb +6 -0
  4. metadata +12 -164
  5. data/exe/lutaml-lml +0 -6
  6. data/exe/lutaml-lml-lsp +0 -11
  7. data/lib/lutaml/lml/association_label_resolver.rb +0 -52
  8. data/lib/lutaml/lml/cli.rb +0 -489
  9. data/lib/lutaml/lml/data_processor/attribute_processing.rb +0 -133
  10. data/lib/lutaml/lml/data_processor/collection_processing.rb +0 -37
  11. data/lib/lutaml/lml/data_processor/instance_processing.rb +0 -77
  12. data/lib/lutaml/lml/data_processor/value_declaration_processing.rb +0 -70
  13. data/lib/lutaml/lml/data_processor/value_processing.rb +0 -103
  14. data/lib/lutaml/lml/data_processor/view_processing.rb +0 -26
  15. data/lib/lutaml/lml/data_processor.rb +0 -59
  16. data/lib/lutaml/lml/diagnostic.rb +0 -149
  17. data/lib/lutaml/lml/document_builder.rb +0 -481
  18. data/lib/lutaml/lml/entity_types.rb +0 -30
  19. data/lib/lutaml/lml/executor/adapter_helpers.rb +0 -45
  20. data/lib/lutaml/lml/executor/condition_evaluator.rb +0 -169
  21. data/lib/lutaml/lml/executor/csv_adapter.rb +0 -88
  22. data/lib/lutaml/lml/executor/format_adapter.rb +0 -54
  23. data/lib/lutaml/lml/executor/xml_adapter.rb +0 -102
  24. data/lib/lutaml/lml/executor.rb +0 -96
  25. data/lib/lutaml/lml/format/adapter/document.rb +0 -11
  26. data/lib/lutaml/lml/format/adapter/mapping.rb +0 -31
  27. data/lib/lutaml/lml/format/adapter/standard_adapter.rb +0 -162
  28. data/lib/lutaml/lml/format/adapter/transform.rb +0 -11
  29. data/lib/lutaml/lml/format.rb +0 -29
  30. data/lib/lutaml/lml/formatter/base.rb +0 -79
  31. data/lib/lutaml/lml/formatter/canonical.rb +0 -736
  32. data/lib/lutaml/lml/formatter/elk.rb +0 -45
  33. data/lib/lutaml/lml/formatter/graphviz/document_formatter.rb +0 -89
  34. data/lib/lutaml/lml/formatter/graphviz/html_builder.rb +0 -72
  35. data/lib/lutaml/lml/formatter/graphviz/node_formatter.rb +0 -89
  36. data/lib/lutaml/lml/formatter/graphviz/relationship_formatter.rb +0 -130
  37. data/lib/lutaml/lml/formatter/graphviz.rb +0 -90
  38. data/lib/lutaml/lml/formatter/svg_pdf/path_parser.rb +0 -134
  39. data/lib/lutaml/lml/formatter/svg_pdf.rb +0 -285
  40. data/lib/lutaml/lml/formatter.rb +0 -12
  41. data/lib/lutaml/lml/grammar/lml.artifact.json +0 -14993
  42. data/lib/lutaml/lml/grammar/lml.parg +0 -389
  43. data/lib/lutaml/lml/grammar.rb +0 -60
  44. data/lib/lutaml/lml/has_attributes.rb +0 -14
  45. data/lib/lutaml/lml/import_resolver.rb +0 -96
  46. data/lib/lutaml/lml/layout/elk_engine.rb +0 -15
  47. data/lib/lutaml/lml/layout/elk_graph_builder.rb +0 -129
  48. data/lib/lutaml/lml/layout/elk_svg_markers.rb +0 -45
  49. data/lib/lutaml/lml/layout/elk_svg_renderer.rb +0 -119
  50. data/lib/lutaml/lml/layout/engine.rb +0 -17
  51. data/lib/lutaml/lml/layout/graph_viz_engine.rb +0 -19
  52. data/lib/lutaml/lml/layout.rb +0 -12
  53. data/lib/lutaml/lml/literal_value.rb +0 -32
  54. data/lib/lutaml/lml/lsp/conversions.rb +0 -78
  55. data/lib/lutaml/lml/lsp/keywords.rb +0 -43
  56. data/lib/lutaml/lml/lsp/server.rb +0 -378
  57. data/lib/lutaml/lml/lsp/store.rb +0 -68
  58. data/lib/lutaml/lml/lsp/transport.rb +0 -53
  59. data/lib/lutaml/lml/lsp.rb +0 -16
  60. data/lib/lutaml/lml/model_compiler/enums.rb +0 -172
  61. data/lib/lutaml/lml/model_compiler/hydration.rb +0 -123
  62. data/lib/lutaml/lml/model_compiler/serialization_mappings.rb +0 -188
  63. data/lib/lutaml/lml/model_compiler/string_formats.rb +0 -42
  64. data/lib/lutaml/lml/model_compiler/validation.rb +0 -65
  65. data/lib/lutaml/lml/model_compiler.rb +0 -323
  66. data/lib/lutaml/lml/models/action.rb +0 -10
  67. data/lib/lutaml/lml/models/association.rb +0 -29
  68. data/lib/lutaml/lml/models/cardinality.rb +0 -10
  69. data/lib/lutaml/lml/models/collection.rb +0 -11
  70. data/lib/lutaml/lml/models/constraint.rb +0 -23
  71. data/lib/lutaml/lml/models/data_type.rb +0 -41
  72. data/lib/lutaml/lml/models/derived_field.rb +0 -14
  73. data/lib/lutaml/lml/models/diagram.rb +0 -20
  74. data/lib/lutaml/lml/models/document.rb +0 -84
  75. data/lib/lutaml/lml/models/enum.rb +0 -38
  76. data/lib/lutaml/lml/models/fidelity.rb +0 -10
  77. data/lib/lutaml/lml/models/group.rb +0 -11
  78. data/lib/lutaml/lml/models/instance.rb +0 -26
  79. data/lib/lutaml/lml/models/instance_collection.rb +0 -16
  80. data/lib/lutaml/lml/models/instances_export.rb +0 -10
  81. data/lib/lutaml/lml/models/instances_import.rb +0 -11
  82. data/lib/lutaml/lml/models/mapping.rb +0 -15
  83. data/lib/lutaml/lml/models/mapping_rule.rb +0 -16
  84. data/lib/lutaml/lml/models/member_field.rb +0 -14
  85. data/lib/lutaml/lml/models/namespace.rb +0 -16
  86. data/lib/lutaml/lml/models/operation.rb +0 -26
  87. data/lib/lutaml/lml/models/operation_parameter.rb +0 -12
  88. data/lib/lutaml/lml/models/package.rb +0 -26
  89. data/lib/lutaml/lml/models/primitive_type.rb +0 -33
  90. data/lib/lutaml/lml/models/reference.rb +0 -23
  91. data/lib/lutaml/lml/models/serialization_mapping.rb +0 -19
  92. data/lib/lutaml/lml/models/string_format.rb +0 -16
  93. data/lib/lutaml/lml/models/top_element_attribute.rb +0 -116
  94. data/lib/lutaml/lml/models/uml_class.rb +0 -85
  95. data/lib/lutaml/lml/models/value.rb +0 -15
  96. data/lib/lutaml/lml/models/view_filter.rb +0 -11
  97. data/lib/lutaml/lml/models/view_import.rb +0 -11
  98. data/lib/lutaml/lml/parser.rb +0 -19
  99. data/lib/lutaml/lml/pipeline.rb +0 -73
  100. data/lib/lutaml/lml/positioned.rb +0 -13
  101. data/lib/lutaml/lml/preprocessor.rb +0 -130
  102. data/lib/lutaml/lml/quoting.rb +0 -60
  103. data/lib/lutaml/lml/source.rb +0 -49
  104. data/lib/lutaml/lml/source_position.rb +0 -20
  105. data/lib/lutaml/lml/symbol_index.rb +0 -200
  106. data/lib/lutaml/lml/transform.rb +0 -119
  107. data/lib/lutaml/lml/types/text_type.rb +0 -28
  108. data/lib/lutaml/lml/types.rb +0 -10
  109. data/lib/lutaml/lml/validator.rb +0 -458
  110. data/lib/lutaml/lml/version.rb +0 -7
  111. data/lib/lutaml/lml/view_resolution.rb +0 -32
  112. data/lib/lutaml/lml/view_resolver.rb +0 -48
  113. data/lib/lutaml/lml/yaml_parser.rb +0 -17
  114. data/lib/lutaml/lml.rb +0 -130
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83fc19ec5f1300b62bfa2014a54b7fe0d6b530f916fac50d3d8d882f6c5ab3b2
4
- data.tar.gz: fc2332becd06f1fa563e1e18c448f0deaf607b374d602c30826614b9928ad704
3
+ metadata.gz: 8ad5141599cf2fc5dc2f6011f51c5eb488d9c94946f3c91324fd5b7122a5d635
4
+ data.tar.gz: 28986141fd637a5a9bb35afea2f4e81586c9f5ca2297a91e778b4d37344b4102
5
5
  SHA512:
6
- metadata.gz: 0fedc9b052c220fda72b792ad92dcd53db9a9cdc6425f7492bd8819e51ac94895b5d159c716b51ba9cc23195a1aa4008a3283e92e68301d7e8a019607969d79d
7
- data.tar.gz: 0b31f5ef313ebc513072327230b6de7d9f94219b9c0b17eac2940f0a73eed3e7443f187ea1369a3f761611854a3b20384e3c2c640064275eb314b76ee5ec06d2
6
+ metadata.gz: f716019fb9e9dc48ce4769aaadee726d786aea3bf1e1e1b1897fb86ad83a4d715e0a6ccaeae473d192c04e6ade1d833dfa6a7d1e73dfee22251def99f42a8698
7
+ data.tar.gz: 41cb533e40028116f815c64f74b5c298741b8357f09cb1a97e77f63e26b36f5cc8879989b04f6070a21c41c6e51b74668cf6623337982a84f4067f62e2396ae6
data/lib/lutaml-lml.rb ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ # lutaml-lml is a transitional alias: the LML front was absorbed into the
4
+ # `lutaml` gem (lutaml/lutaml#231). Requiring this file loads it from there.
5
+ require "lutaml/lml"
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LutamlLml
4
+ # Alias-gem version. The LML implementation lives in lutaml.
5
+ VERSION = "0.3.7"
6
+ end
metadata CHANGED
@@ -1,59 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml-lml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-03 00:00:00.000000000 Z
11
+ date: 2026-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: lutaml-model
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 0.8.159
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 0.8.159
27
- - !ruby/object:Gem::Dependency
28
- name: parsanol
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 1.3.68
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 1.3.68
41
- - !ruby/object:Gem::Dependency
42
- name: moxml
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 0.1.24
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: 0.1.24
55
- - !ruby/object:Gem::Dependency
56
- name: ruby-graphviz
14
+ name: lutaml
57
15
  requirement: !ruby/object:Gem::Requirement
58
16
  requirements:
59
17
  - - ">="
@@ -66,127 +24,16 @@ dependencies:
66
24
  - - ">="
67
25
  - !ruby/object:Gem::Version
68
26
  version: '0'
69
- description: 'Parses LML (.lml / .lutaml) text syntax into UML/LML domain models.
70
- Supports two layers: model definitions (classes, enums, attributes) and data instances
71
- (collections, imports, exports).'
27
+ description: LutaML Model Language (LML) now ships inside the lutaml gem. This gem
28
+ only depends on lutaml for one deprecation window; depend on lutaml directly.
72
29
  email:
73
30
  - open.source@ribose.com
74
- executables:
75
- - lutaml-lml
76
- - lutaml-lml-lsp
31
+ executables: []
77
32
  extensions: []
78
33
  extra_rdoc_files: []
79
34
  files:
80
- - exe/lutaml-lml
81
- - exe/lutaml-lml-lsp
82
- - lib/lutaml/lml.rb
83
- - lib/lutaml/lml/association_label_resolver.rb
84
- - lib/lutaml/lml/cli.rb
85
- - lib/lutaml/lml/data_processor.rb
86
- - lib/lutaml/lml/data_processor/attribute_processing.rb
87
- - lib/lutaml/lml/data_processor/collection_processing.rb
88
- - lib/lutaml/lml/data_processor/instance_processing.rb
89
- - lib/lutaml/lml/data_processor/value_declaration_processing.rb
90
- - lib/lutaml/lml/data_processor/value_processing.rb
91
- - lib/lutaml/lml/data_processor/view_processing.rb
92
- - lib/lutaml/lml/diagnostic.rb
93
- - lib/lutaml/lml/document_builder.rb
94
- - lib/lutaml/lml/entity_types.rb
95
- - lib/lutaml/lml/executor.rb
96
- - lib/lutaml/lml/executor/adapter_helpers.rb
97
- - lib/lutaml/lml/executor/condition_evaluator.rb
98
- - lib/lutaml/lml/executor/csv_adapter.rb
99
- - lib/lutaml/lml/executor/format_adapter.rb
100
- - lib/lutaml/lml/executor/xml_adapter.rb
101
- - lib/lutaml/lml/format.rb
102
- - lib/lutaml/lml/format/adapter/document.rb
103
- - lib/lutaml/lml/format/adapter/mapping.rb
104
- - lib/lutaml/lml/format/adapter/standard_adapter.rb
105
- - lib/lutaml/lml/format/adapter/transform.rb
106
- - lib/lutaml/lml/formatter.rb
107
- - lib/lutaml/lml/formatter/base.rb
108
- - lib/lutaml/lml/formatter/canonical.rb
109
- - lib/lutaml/lml/formatter/elk.rb
110
- - lib/lutaml/lml/formatter/graphviz.rb
111
- - lib/lutaml/lml/formatter/graphviz/document_formatter.rb
112
- - lib/lutaml/lml/formatter/graphviz/html_builder.rb
113
- - lib/lutaml/lml/formatter/graphviz/node_formatter.rb
114
- - lib/lutaml/lml/formatter/graphviz/relationship_formatter.rb
115
- - lib/lutaml/lml/formatter/svg_pdf.rb
116
- - lib/lutaml/lml/formatter/svg_pdf/path_parser.rb
117
- - lib/lutaml/lml/grammar.rb
118
- - lib/lutaml/lml/grammar/lml.artifact.json
119
- - lib/lutaml/lml/grammar/lml.parg
120
- - lib/lutaml/lml/has_attributes.rb
121
- - lib/lutaml/lml/import_resolver.rb
122
- - lib/lutaml/lml/layout.rb
123
- - lib/lutaml/lml/layout/elk_engine.rb
124
- - lib/lutaml/lml/layout/elk_graph_builder.rb
125
- - lib/lutaml/lml/layout/elk_svg_markers.rb
126
- - lib/lutaml/lml/layout/elk_svg_renderer.rb
127
- - lib/lutaml/lml/layout/engine.rb
128
- - lib/lutaml/lml/layout/graph_viz_engine.rb
129
- - lib/lutaml/lml/literal_value.rb
130
- - lib/lutaml/lml/lsp.rb
131
- - lib/lutaml/lml/lsp/conversions.rb
132
- - lib/lutaml/lml/lsp/keywords.rb
133
- - lib/lutaml/lml/lsp/server.rb
134
- - lib/lutaml/lml/lsp/store.rb
135
- - lib/lutaml/lml/lsp/transport.rb
136
- - lib/lutaml/lml/model_compiler.rb
137
- - lib/lutaml/lml/model_compiler/enums.rb
138
- - lib/lutaml/lml/model_compiler/hydration.rb
139
- - lib/lutaml/lml/model_compiler/serialization_mappings.rb
140
- - lib/lutaml/lml/model_compiler/string_formats.rb
141
- - lib/lutaml/lml/model_compiler/validation.rb
142
- - lib/lutaml/lml/models/action.rb
143
- - lib/lutaml/lml/models/association.rb
144
- - lib/lutaml/lml/models/cardinality.rb
145
- - lib/lutaml/lml/models/collection.rb
146
- - lib/lutaml/lml/models/constraint.rb
147
- - lib/lutaml/lml/models/data_type.rb
148
- - lib/lutaml/lml/models/derived_field.rb
149
- - lib/lutaml/lml/models/diagram.rb
150
- - lib/lutaml/lml/models/document.rb
151
- - lib/lutaml/lml/models/enum.rb
152
- - lib/lutaml/lml/models/fidelity.rb
153
- - lib/lutaml/lml/models/group.rb
154
- - lib/lutaml/lml/models/instance.rb
155
- - lib/lutaml/lml/models/instance_collection.rb
156
- - lib/lutaml/lml/models/instances_export.rb
157
- - lib/lutaml/lml/models/instances_import.rb
158
- - lib/lutaml/lml/models/mapping.rb
159
- - lib/lutaml/lml/models/mapping_rule.rb
160
- - lib/lutaml/lml/models/member_field.rb
161
- - lib/lutaml/lml/models/namespace.rb
162
- - lib/lutaml/lml/models/operation.rb
163
- - lib/lutaml/lml/models/operation_parameter.rb
164
- - lib/lutaml/lml/models/package.rb
165
- - lib/lutaml/lml/models/primitive_type.rb
166
- - lib/lutaml/lml/models/reference.rb
167
- - lib/lutaml/lml/models/serialization_mapping.rb
168
- - lib/lutaml/lml/models/string_format.rb
169
- - lib/lutaml/lml/models/top_element_attribute.rb
170
- - lib/lutaml/lml/models/uml_class.rb
171
- - lib/lutaml/lml/models/value.rb
172
- - lib/lutaml/lml/models/view_filter.rb
173
- - lib/lutaml/lml/models/view_import.rb
174
- - lib/lutaml/lml/parser.rb
175
- - lib/lutaml/lml/pipeline.rb
176
- - lib/lutaml/lml/positioned.rb
177
- - lib/lutaml/lml/preprocessor.rb
178
- - lib/lutaml/lml/quoting.rb
179
- - lib/lutaml/lml/source.rb
180
- - lib/lutaml/lml/source_position.rb
181
- - lib/lutaml/lml/symbol_index.rb
182
- - lib/lutaml/lml/transform.rb
183
- - lib/lutaml/lml/types.rb
184
- - lib/lutaml/lml/types/text_type.rb
185
- - lib/lutaml/lml/validator.rb
186
- - lib/lutaml/lml/version.rb
187
- - lib/lutaml/lml/view_resolution.rb
188
- - lib/lutaml/lml/view_resolver.rb
189
- - lib/lutaml/lml/yaml_parser.rb
35
+ - lib/lutaml-lml.rb
36
+ - lib/lutaml_lml/version.rb
190
37
  homepage: https://github.com/lutaml/lutaml-lml
191
38
  licenses:
192
39
  - MIT
@@ -194,6 +41,7 @@ metadata:
194
41
  homepage_uri: https://github.com/lutaml/lutaml-lml
195
42
  source_code_uri: https://github.com/lutaml/lutaml-lml
196
43
  changelog_uri: https://github.com/lutaml/lutaml-lml/releases
44
+ rubygems_mfa_required: 'true'
197
45
  post_install_message:
198
46
  rdoc_options: []
199
47
  require_paths:
@@ -202,7 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
50
  requirements:
203
51
  - - ">="
204
52
  - !ruby/object:Gem::Version
205
- version: '3.0'
53
+ version: 3.2.0
206
54
  required_rubygems_version: !ruby/object:Gem::Requirement
207
55
  requirements:
208
56
  - - ">="
@@ -212,5 +60,5 @@ requirements: []
212
60
  rubygems_version: 3.5.22
213
61
  signing_key:
214
62
  specification_version: 4
215
- summary: LutaML Model Language (LML) parser and converter
63
+ summary: Transitional alias for lutaml (LML was absorbed into it)
216
64
  test_files: []
data/exe/lutaml-lml DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "lutaml/lml/cli"
5
-
6
- Lutaml::Cli::LmlCommands.start(ARGV)
data/exe/lutaml-lml-lsp DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "lutaml/lml"
5
-
6
- # JSON-RPC framing is byte-oriented; text-mode newline translation would
7
- # turn \r\n into \r\r\n and break Content-Length.
8
- $stdin.binmode
9
- $stdout.binmode
10
-
11
- exit Lutaml::Lml::Lsp::Server.new.run
@@ -1,52 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lutaml
4
- module Lml
5
- class AssociationLabelResolver
6
- def enrich(document)
7
- class_index = build_class_index(document)
8
- document.associations.each do |assoc|
9
- enrich_owner_end(assoc, class_index)
10
- enrich_member_end(assoc, class_index)
11
- end
12
- document
13
- end
14
-
15
- private
16
-
17
- def build_class_index(document)
18
- document.all_classes.each_with_object({}) { |klass, index| index[klass.name] = klass }
19
- end
20
-
21
- def enrich_owner_end(assoc, class_index)
22
- return if assoc.owner_end_attribute_name
23
-
24
- owner_class = class_index[assoc.owner_end.to_s]
25
- return unless owner_class
26
-
27
- attr = find_attribute_by_type(owner_class, assoc.member_end.to_s)
28
- return unless attr
29
-
30
- assoc.owner_end_attribute_name = attr.name
31
- assoc.owner_end_cardinality = attr.cardinality if attr.cardinality
32
- end
33
-
34
- def enrich_member_end(assoc, class_index)
35
- return if assoc.member_end_attribute_name
36
-
37
- member_class = class_index[assoc.member_end.to_s]
38
- return unless member_class
39
-
40
- attr = find_attribute_by_type(member_class, assoc.owner_end.to_s)
41
- return unless attr
42
-
43
- assoc.member_end_attribute_name = attr.name
44
- assoc.member_end_cardinality = attr.cardinality if attr.cardinality
45
- end
46
-
47
- def find_attribute_by_type(klass, target_type_name)
48
- klass.attributes&.find { |a| a.type == target_type_name }
49
- end
50
- end
51
- end
52
- end