xmi 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/xmi/sparx.rb +12 -2
- data/lib/xmi/uml.rb +5 -2
- data/lib/xmi/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: 6f858b7f7899b3a77fcbfa224a4043fd0463363b131e1082c61823a486e93d86
|
4
|
+
data.tar.gz: dc48a58d7c87ba6cfff01ff7a99999a2930bde41a88aba8fc3941fbbafce2ed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79eeb960d5e1a0dac1bbade19ccafc583b4ddd39963c56bb8da9da4cf058d9b16876f671b18bd36819c7f0959717942997ca868664ce0c8e3a3b9881dbb2d5f2
|
7
|
+
data.tar.gz: 36028514c14d0da5f3d33e419845299aa89a0c97c514c936508bca8630b17b1c1411e98bf4b759a0c0015ad64ab252450e44c62f14a02a1c975f4d2b3520e898
|
data/lib/xmi/sparx.rb
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
module Xmi
|
4
4
|
module Sparx
|
5
|
+
class SparxElementDocumentation < Shale::Mapper
|
6
|
+
attribute :value, Shale::Type::String
|
7
|
+
|
8
|
+
xml do
|
9
|
+
root "documentation"
|
10
|
+
|
11
|
+
map_attribute "value", to: :value
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
5
15
|
class SparxElementModel < Shale::Mapper
|
6
16
|
attribute :package, Shale::Type::String
|
7
17
|
attribute :package2, Shale::Type::String
|
@@ -318,7 +328,7 @@ module Xmi
|
|
318
328
|
|
319
329
|
class SparxElementAttribute < Shale::Mapper
|
320
330
|
attribute :initial, Shale::Type::String
|
321
|
-
attribute :documentation,
|
331
|
+
attribute :documentation, SparxElementDocumentation
|
322
332
|
attribute :options, Shale::Type::String
|
323
333
|
attribute :style, Shale::Type::String
|
324
334
|
attribute :tags, Shale::Type::String, collection: true
|
@@ -336,11 +346,11 @@ module Xmi
|
|
336
346
|
root "attribute"
|
337
347
|
|
338
348
|
map_attribute "initial", to: :initial
|
339
|
-
map_attribute "documentation", to: :documentation
|
340
349
|
map_attribute "options", to: :options
|
341
350
|
map_attribute "style", to: :style
|
342
351
|
map_attribute "tags", to: :tags
|
343
352
|
|
353
|
+
map_element "documentation", to: :documentation
|
344
354
|
map_element "model", to: :model
|
345
355
|
map_element "properties", to: :properties
|
346
356
|
map_element "coords", to: :coords
|
data/lib/xmi/uml.rb
CHANGED
@@ -339,12 +339,13 @@ module Xmi
|
|
339
339
|
end
|
340
340
|
|
341
341
|
module PackagedElementAttributes
|
342
|
-
def self.included(klass)
|
342
|
+
def self.included(klass) # rubocop:disable Metrics/MethodLength
|
343
343
|
klass.class_eval do
|
344
344
|
attribute :type, Shale::Type::String
|
345
345
|
attribute :id, Shale::Type::String
|
346
346
|
attribute :name, Shale::Type::String
|
347
|
-
attribute :member_end,
|
347
|
+
attribute :member_end, Shale::Type::String
|
348
|
+
attribute :member_ends, MemberEnd, collection: true
|
348
349
|
attribute :owned_literal, OwnedLiteral, collection: true
|
349
350
|
attribute :owned_operation, OwnedOperation, collection: true
|
350
351
|
|
@@ -382,6 +383,7 @@ module Xmi
|
|
382
383
|
map_element "ownedAttribute", to: :owned_attribute
|
383
384
|
map_element "ownedOperation", to: :owned_operation
|
384
385
|
map_element "packagedElement", to: :packaged_element
|
386
|
+
map_element "memberEnd", to: :member_ends
|
385
387
|
end
|
386
388
|
end
|
387
389
|
|
@@ -412,6 +414,7 @@ module Xmi
|
|
412
414
|
map_element "ownedAttribute", to: :owned_attribute
|
413
415
|
map_element "ownedOperation", to: :owned_operation
|
414
416
|
map_element "packagedElement", to: :packaged_element
|
417
|
+
map_element "memberEnd", to: :member_ends
|
415
418
|
end
|
416
419
|
end
|
417
420
|
|
data/lib/xmi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmi
|
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: 2024-06-
|
11
|
+
date: 2024-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|