lutaml-uml 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LUTAML.adoc +4 -4
- data/bin/yaml2lutaml +2 -2
- data/lib/lutaml/uml/parsers/dsl.rb +4 -2
- data/lib/lutaml/uml/version.rb +1 -1
- data/spec/fixtures/dsl/diagram_definitions.lutaml +8 -5
- data/spec/lutaml/uml/parsers/dsl_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caa272840dbf2e26c09465e9fc43ce87e27264d1304f3e517177e1c2aeb5ddd5
|
4
|
+
data.tar.gz: 63accfb7dc6651f7df5a2fa16e1f3049efeac98f2b7c45ab33797e5589955011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60f0496d0d68e7ec42f96d2dea4e28b2f48be4ff46f079afc0a0041a31e9a0a32d6353f8a208a7194585c4e95a31a7fdaeb5e8bc21e94752b9ce8953d8b4655e
|
7
|
+
data.tar.gz: f1c58b701b5eff18c42c4fb8a38c9beab572663a345ea048abc112993f671b38e17ff8af9852951cc7650969715130996639bb4cb1eb517ba3cae83a023ee30e
|
data/LUTAML.adoc
CHANGED
@@ -118,9 +118,9 @@ Full syntax:
|
|
118
118
|
|
119
119
|
[source,java]
|
120
120
|
----
|
121
|
-
definition
|
121
|
+
definition {
|
122
122
|
inner text
|
123
|
-
|
123
|
+
}
|
124
124
|
----
|
125
125
|
|
126
126
|
|
@@ -204,9 +204,9 @@ example:
|
|
204
204
|
----
|
205
205
|
class Figure {
|
206
206
|
+ radius {
|
207
|
-
definition
|
207
|
+
definition {
|
208
208
|
Radius of the Figure
|
209
|
-
|
209
|
+
}
|
210
210
|
}
|
211
211
|
}
|
212
212
|
----
|
data/bin/yaml2lutaml
CHANGED
@@ -89,9 +89,9 @@ view_yaml["imports"].keys.each do |entry|
|
|
89
89
|
sync_puts("#{import['modelType']} #{import_name} {", 2)
|
90
90
|
if import["definition"]
|
91
91
|
definition = <<~TEXT
|
92
|
-
definition
|
92
|
+
definition {
|
93
93
|
#{import['definition']}
|
94
|
-
|
94
|
+
}
|
95
95
|
TEXT
|
96
96
|
sync_puts(definition, 4)
|
97
97
|
end
|
@@ -291,9 +291,11 @@ module Lutaml
|
|
291
291
|
spaces? >>
|
292
292
|
str("definition") >>
|
293
293
|
whitespace? >>
|
294
|
-
|
294
|
+
str("{") >>
|
295
|
+
whitespace? >>
|
296
|
+
(str("}").absent? >> any).repeat.as(:definition) >>
|
295
297
|
whitespace? >>
|
296
|
-
str("
|
298
|
+
str("}")
|
297
299
|
end
|
298
300
|
|
299
301
|
# -- Enum
|
data/lib/lutaml/uml/version.rb
CHANGED
@@ -2,19 +2,22 @@ diagram MyView {
|
|
2
2
|
title "my diagram"
|
3
3
|
|
4
4
|
class AddressClassProfile {
|
5
|
-
definition
|
5
|
+
definition {
|
6
6
|
this is multiline with `ascidoc`
|
7
7
|
comments
|
8
8
|
and list
|
9
|
-
|
9
|
+
}
|
10
10
|
+addressClassProfile: CharacterString [0..1]
|
11
11
|
}
|
12
12
|
|
13
13
|
class AttributeProfile {
|
14
14
|
imlicistAttributeProfile: CharacterString [0..1] {
|
15
|
-
definition
|
16
|
-
|
17
|
-
|
15
|
+
definition
|
16
|
+
{
|
17
|
+
this is attribute definition
|
18
|
+
with multiply lines
|
19
|
+
end definition
|
20
|
+
}
|
18
21
|
}
|
19
22
|
}
|
20
23
|
}
|
@@ -257,7 +257,7 @@ RSpec.describe Lutaml::Uml::Parsers::Dsl do
|
|
257
257
|
"this is multiline with `ascidoc`\n comments\n and list"
|
258
258
|
end
|
259
259
|
let(:attribute_definition) do
|
260
|
-
"this is attribute definition\n
|
260
|
+
"this is attribute definition\n with multiply lines\n end definition"
|
261
261
|
end
|
262
262
|
|
263
263
|
it "create comments for document and classes" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lutaml-uml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|