xmi 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc142c4dafa8b6f642915fc177a55d64667b39503164533e4acd2f57dc4a5882
4
- data.tar.gz: 8ea7bac17a8ce090cc39c019571ef1d6d91096c3b868c9e1246114f5a49a8d37
3
+ metadata.gz: 2f0cb0851f52b18efcab9a97ee6787a82799446b120ba911020b782e34303104
4
+ data.tar.gz: 4c2b976f39d3c270aa4cddbdcb4ef4c27e58a53cede30b864e48e3972dcaf368
5
5
  SHA512:
6
- metadata.gz: a189f14845f4bd56540e1d6b0373a7cab2ec56c7b12572ccdfb9f01365994d90dfdc45802994433bc398fa417979ea6183c82d131bf9b6dd9b5484f4eb7439d3
7
- data.tar.gz: 034a0986c647977cfa682611df764f7f8ff7859b40aa82ca61e8bef20000f24ec96b5af2bfc3de0cc9aeececfc0a23b3d1f62a4fb7e7a9f52268a77878f2fe1f
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, Shale::Type::String
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xmi
4
- VERSION = "0.3.8"
4
+ VERSION = "0.3.9"
5
5
  end
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.8
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-17 00:00:00.000000000 Z
11
+ date: 2024-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri