lutaml-uml 0.3.0 → 0.3.1
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 +4 -4
- data/lib/lutaml/uml/class.rb +9 -1
- data/lib/lutaml/uml/top_element_attribute.rb +2 -1
- data/lib/lutaml/uml/version.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: 3327c8c125b9d4b538b648b7b20d112dc70a4bfbc78b9f542bb33b6c57c5eeea
|
|
4
|
+
data.tar.gz: efe632c537b96ee01417bededb2ccd45a5e4dca4660c88952f39ff71c0061fa7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e51c58f53a8743b0ca43e96cf3e98eee5dd99dcd7ba66ae8d87728c8c4d8270851518c98058275ea867a1879444909d547e956a6062d424c28f4145f031732e
|
|
7
|
+
data.tar.gz: '085f6c41da759ed7fb4b3a8aae3a53b28241d564a21f3ebf992c0a98e877483ed0d9f885d51a1ec23c54ce9cf719e2e3902a98012d4031376e973ffe73b0453b'
|
data/lib/lutaml/uml/class.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
require "lutaml/uml/has_members"
|
|
4
4
|
require "lutaml/uml/classifier"
|
|
5
5
|
require "lutaml/uml/association"
|
|
6
|
+
require "lutaml/uml/constraint"
|
|
6
7
|
require "lutaml/uml/top_element_attribute"
|
|
7
8
|
|
|
8
9
|
module Lutaml
|
|
@@ -17,7 +18,8 @@ module Lutaml
|
|
|
17
18
|
attr_reader :associations,
|
|
18
19
|
:attributes,
|
|
19
20
|
:members,
|
|
20
|
-
:modifier
|
|
21
|
+
:modifier,
|
|
22
|
+
:constraints
|
|
21
23
|
|
|
22
24
|
def initialize(attributes = {})
|
|
23
25
|
@nested_classifier = []
|
|
@@ -43,6 +45,12 @@ module Lutaml
|
|
|
43
45
|
end
|
|
44
46
|
end
|
|
45
47
|
|
|
48
|
+
def constraints=(value)
|
|
49
|
+
@constraints = value.to_a.map do |attr|
|
|
50
|
+
Constraint.new(attr)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
46
54
|
def methods
|
|
47
55
|
# @members&.select { |member| member.class == Method }
|
|
48
56
|
[]
|
data/lib/lutaml/uml/version.rb
CHANGED
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.3.
|
|
4
|
+
version: 0.3.1
|
|
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-
|
|
11
|
+
date: 2021-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hashie
|