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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3436e32ef66aba3d38cf8418de2ecef7bd475a1379e62e787aaddb0701397b55
4
- data.tar.gz: da160c6b5ffaa013cb0d4bc4df8a23175acdff14da402c15b883c96a424cbd83
3
+ metadata.gz: 3327c8c125b9d4b538b648b7b20d112dc70a4bfbc78b9f542bb33b6c57c5eeea
4
+ data.tar.gz: efe632c537b96ee01417bededb2ccd45a5e4dca4660c88952f39ff71c0061fa7
5
5
  SHA512:
6
- metadata.gz: f76a00663fa9a4a8167930d4114ef4995ce7b488034336dd1134953ca9ed09ab4fd2da6e32a425082b6cf212b97bf47493e0b3f45c4b181fa93966f581ad7265
7
- data.tar.gz: 85f1fd71d5df7d0e673a5c4994f7d524dbaa915afca26bdacd483e384889003114e3f91ac1d7c0a28bc9a649b675036458c4fcc685b9e8534b6a49c346bb269d
6
+ metadata.gz: 5e51c58f53a8743b0ca43e96cf3e98eee5dd99dcd7ba66ae8d87728c8c4d8270851518c98058275ea867a1879444909d547e956a6062d424c28f4145f031732e
7
+ data.tar.gz: '085f6c41da759ed7fb4b3a8aae3a53b28241d564a21f3ebf992c0a98e877483ed0d9f885d51a1ec23c54ce9cf719e2e3902a98012d4031376e973ffe73b0453b'
@@ -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
  []
@@ -13,7 +13,8 @@ module Lutaml
13
13
  :contain,
14
14
  :static,
15
15
  :cardinality,
16
- :keyword
16
+ :keyword,
17
+ :is_derived
17
18
 
18
19
  # rubocop:disable Rails/ActiveRecordAliases
19
20
  def initialize(attributes = {})
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Uml
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
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.0
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-03-28 00:00:00.000000000 Z
11
+ date: 2021-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie