lutaml-uml 0.2.6 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ba839d8caa2f9221a6b0464da0a92d8598bdb2390924725852b57b9be76ad29
4
- data.tar.gz: 881666eb3a5069ab5895b062a305fbd042110ac1371fd94683bd697ae41df1d1
3
+ metadata.gz: caa272840dbf2e26c09465e9fc43ce87e27264d1304f3e517177e1c2aeb5ddd5
4
+ data.tar.gz: 63accfb7dc6651f7df5a2fa16e1f3049efeac98f2b7c45ab33797e5589955011
5
5
  SHA512:
6
- metadata.gz: d088c3842b978978adc82074ba4fe9a0fe722bc5435f8879f33400f2a2e2bb25733381af7e888d3fd564e0870c727e7a6dbb85bc5847c986820093a97c0a102f
7
- data.tar.gz: 5b456a84cc38d6fdc6e9f685ef4b6b2b135a000f83e7c620d95d5246f87b25ddf2b23da2c9d39fe76b69e6231423a995325a47d4e927d8518c7d7ff82a0e2394
6
+ metadata.gz: 60f0496d0d68e7ec42f96d2dea4e28b2f48be4ff46f079afc0a0041a31e9a0a32d6353f8a208a7194585c4e95a31a7fdaeb5e8bc21e94752b9ce8953d8b4655e
7
+ data.tar.gz: f1c58b701b5eff18c42c4fb8a38c9beab572663a345ea048abc112993f671b38e17ff8af9852951cc7650969715130996639bb4cb1eb517ba3cae83a023ee30e
@@ -118,9 +118,9 @@ Full syntax:
118
118
 
119
119
  [source,java]
120
120
  ----
121
- definition
121
+ definition {
122
122
  inner text
123
- end definition
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
- end definition
209
+ }
210
210
  }
211
211
  }
212
212
  ----
@@ -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
- end definition
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
- (str("end definition").absent? >> any).repeat.as(:definition) >>
294
+ str("{") >>
295
+ whitespace? >>
296
+ (str("}").absent? >> any).repeat.as(:definition) >>
295
297
  whitespace? >>
296
- str("end definition")
298
+ str("}")
297
299
  end
298
300
 
299
301
  # -- Enum
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Uml
5
- VERSION = "0.2.6"
5
+ VERSION = "0.2.7"
6
6
  end
7
7
  end
@@ -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
- end definition
9
+ }
10
10
  +addressClassProfile: CharacterString [0..1]
11
11
  }
12
12
 
13
13
  class AttributeProfile {
14
14
  imlicistAttributeProfile: CharacterString [0..1] {
15
- definition this is attribute definition
16
- with multiply lines
17
- end definition
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 with multiply lines"
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.6
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-26 00:00:00.000000000 Z
11
+ date: 2020-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie