lutaml-uml 0.2.10 → 0.2.12

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: 2a4318a33ee0facc590ee478a533551314aa96290ff3f9beb2a8506518f107fb
4
- data.tar.gz: 18164bb8e957223dc1f1fdeacd7603f61705482d3299de01edcd6c96bb1860a4
3
+ metadata.gz: 405ff7c4bd2b9ebdde4a00c00c0c5e21188f0632206a64379a3e294fcad91cf0
4
+ data.tar.gz: 4f4ce9d31b300185e52ddf44375bc5a6597fc16c72e047963a283ab618205b83
5
5
  SHA512:
6
- metadata.gz: fcb70562cec32586375a93e1a80a575bd6dc3b7150d2867046447af6461dec4af6e0c59ed179607dc03408e285c8cb6f1c627004f36118372027c8e9b9890bc2
7
- data.tar.gz: 304d5c7326dbe2378a431c07cb50f0f21596a18dca6e0d694b2c7de26d1726a30e3932b3b2fd52f7f404a0a0453d7d7ec098b731f9460bab8eb24dd61939cbff
6
+ metadata.gz: 738287fadf7e75d576dc85bb3dce7f1781b3307770b8ad05b994101d421c73bc81450d49af5cd88e10b7466924591c504590ffbfdf405bf4f2ca1bec6d12ddfa
7
+ data.tar.gz: a7b87af376643a4db9c7d700ef3fae74d45c4a70ecf09e85667640cca55c4083afde0eba1ce2f7a4e18d7b1a3351ce3f89574aa2917b543413677836928f941a
@@ -329,7 +329,10 @@ module Lutaml
329
329
  # -- data_type
330
330
  rule(:data_type_keyword) { kw_data_type >> spaces }
331
331
  rule(:data_type_inner_definitions) do
332
- attribute_definition
332
+ definition_body |
333
+ attribute_definition |
334
+ comment_definition |
335
+ comment_multiline_definition
333
336
  end
334
337
  rule(:data_type_inner_definition) do
335
338
  data_type_inner_definitions >> whitespace?
@@ -347,6 +350,7 @@ module Lutaml
347
350
  match['"\''].maybe >>
348
351
  class_name.as(:name) >>
349
352
  match['"\''].maybe >>
353
+ attribute_keyword? >>
350
354
  data_type_body?
351
355
  end
352
356
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Uml
5
- VERSION = "0.2.10"
5
+ VERSION = "0.2.12"
6
6
  end
7
7
  end
@@ -8,10 +8,30 @@ diagram MyView {
8
8
  }
9
9
 
10
10
  data_type "Banking Information" {
11
- "art code"
11
+ definition {
12
+ Common code types used in banking.
13
+ }
14
+ "art code" {
15
+ definition {
16
+ The bank ART code.
17
+ }
18
+ }
12
19
  "CCT Number"
13
20
  }
14
21
 
22
+ data_type DateTimeType {
23
+ definition {
24
+ Type of date time value.
25
+ }
26
+ year {
27
+ definition {
28
+ The value only provides year.
29
+ }
30
+ }
31
+ monthYear
32
+ dayMonthYear
33
+ }
34
+
15
35
  primitive Integer
16
36
 
17
37
  enum Profile {
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.10
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-17 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie