xmi 0.3.8 → 0.3.9
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 +21 -1
- data/lib/xmi/uml.rb +1 -0
- 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: 2f0cb0851f52b18efcab9a97ee6787a82799446b120ba911020b782e34303104
|
4
|
+
data.tar.gz: 4c2b976f39d3c270aa4cddbdcb4ef4c27e58a53cede30b864e48e3972dcaf368
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bd6dd8e063b532e04316afc0a95bc7985d7505a7f94e5c2554450885e86b45a34f58f206dfeb1bff1b4962bfc6032fd02deb074fda7133aaa57527b65d4c24a
|
7
|
+
data.tar.gz: 5d9a87db0164d03eae68b64de929c535e31c49c702f7c23abe73566feba8f9ca5e3457a81fc0721ee3b0200fee65aea2ad3192a97f935a3b24d0c19064911aaf
|
data/lib/xmi/sparx.rb
CHANGED
@@ -622,6 +622,26 @@ module Xmi
|
|
622
622
|
end
|
623
623
|
end
|
624
624
|
|
625
|
+
class SparxConnectorLabels < Shale::Mapper
|
626
|
+
attribute :rb, Shale::Type::String
|
627
|
+
attribute :lb, Shale::Type::String
|
628
|
+
attribute :mb, Shale::Type::String
|
629
|
+
attribute :rt, Shale::Type::String
|
630
|
+
attribute :lt, Shale::Type::String
|
631
|
+
attribute :mt, Shale::Type::String
|
632
|
+
|
633
|
+
xml do
|
634
|
+
root "labels"
|
635
|
+
|
636
|
+
map_attribute :rb, to: :rb
|
637
|
+
map_attribute :lb, to: :lb
|
638
|
+
map_attribute :mb, to: :mb
|
639
|
+
map_attribute :rt, to: :rt
|
640
|
+
map_attribute :lt, to: :lt
|
641
|
+
map_attribute :mt, to: :mt
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
625
645
|
class SparxConnector < Shale::Mapper
|
626
646
|
attribute :idref, Shale::Type::String
|
627
647
|
attribute :source, SparxConnectorSource
|
@@ -630,7 +650,7 @@ module Xmi
|
|
630
650
|
attribute :properties, SparxConnectorProperties
|
631
651
|
attribute :documentation, Shale::Type::String
|
632
652
|
attribute :appearance, SparxConnectorAppearance
|
633
|
-
attribute :labels,
|
653
|
+
attribute :labels, SparxConnectorLabels
|
634
654
|
attribute :extended_properties, SparxElementExtendedProperties
|
635
655
|
attribute :style, SparxElementStyle
|
636
656
|
attribute :tags, SparxElementTags
|
data/lib/xmi/uml.rb
CHANGED
@@ -473,6 +473,7 @@ module Xmi
|
|
473
473
|
|
474
474
|
map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
475
475
|
map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
476
|
+
map_attribute "text", to: :text
|
476
477
|
map_attribute "modelElement", to: :model_element
|
477
478
|
|
478
479
|
map_element "ownedElement", to: :owned_element
|
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.9
|
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-07-
|
11
|
+
date: 2024-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|