xmi 0.3.1 → 0.3.3
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 +10 -5
- data/lib/xmi/uml.rb +4 -1
- 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: 3ea3d82851d907f7845d03d785a1c8ef35761fb065f16e3855ca94872e27ce03
|
4
|
+
data.tar.gz: 5db9adc8621690de3a61fbb4e9f82bfe6e68acd2cdb94cf6ddd792d1cdc7fde8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d4d798c296215b8af7c464ad6af2b150794f8450ce344221e08c0d3046581ec4bbdad6b1f7119263728d3a6aa4533aaaf14bcac318132172503117dd8ddb742
|
7
|
+
data.tar.gz: f8610d1ffcfaf3edbb6d92abb22b06f745abc5ec62c6c453d38aac611671f1b9deea3381473850a09d6dea8399e54d1db3e9c443d00cd9a6b92d8f3c683c1486
|
data/lib/xmi/sparx.rb
CHANGED
@@ -327,12 +327,14 @@ module Xmi
|
|
327
327
|
end
|
328
328
|
|
329
329
|
class SparxElementAttribute < Shale::Mapper
|
330
|
+
attribute :idref, Shale::Type::String
|
331
|
+
attribute :name, Shale::Type::String
|
332
|
+
attribute :scope, Shale::Type::String
|
330
333
|
attribute :initial, Shale::Type::String
|
331
334
|
attribute :documentation, SparxElementDocumentation
|
332
335
|
attribute :options, Shale::Type::String
|
333
336
|
attribute :style, Shale::Type::String
|
334
337
|
attribute :tags, Shale::Type::String, collection: true
|
335
|
-
|
336
338
|
attribute :model, SparxElementModel
|
337
339
|
attribute :properties, SparxElementProperties
|
338
340
|
attribute :coords, SparxElementCoords
|
@@ -345,11 +347,14 @@ module Xmi
|
|
345
347
|
xml do
|
346
348
|
root "attribute"
|
347
349
|
|
348
|
-
map_attribute "
|
349
|
-
map_attribute "
|
350
|
-
map_attribute "
|
351
|
-
map_attribute "tags", to: :tags
|
350
|
+
map_attribute "idref", to: :idref, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
|
351
|
+
map_attribute "name", to: :name
|
352
|
+
map_attribute "scope", to: :scope
|
352
353
|
|
354
|
+
map_element "initial", to: :initial
|
355
|
+
map_element "options", to: :options
|
356
|
+
map_element "style", to: :style
|
357
|
+
map_element "tags", to: :tags
|
353
358
|
map_element "documentation", to: :documentation
|
354
359
|
map_element "model", to: :model
|
355
360
|
map_element "properties", to: :properties
|
data/lib/xmi/uml.rb
CHANGED
@@ -124,13 +124,16 @@ module Xmi
|
|
124
124
|
attribute :type, Shale::Type::String
|
125
125
|
attribute :id, Shale::Type::String
|
126
126
|
attribute :name, Shale::Type::String
|
127
|
+
attribute :uml_type, Uml::Type
|
127
128
|
|
128
129
|
xml do
|
129
130
|
root "ownedLiteral"
|
130
131
|
|
131
132
|
map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
132
133
|
map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
133
|
-
map_attribute "name", to: :
|
134
|
+
map_attribute "name", to: :name
|
135
|
+
|
136
|
+
map_element "type", to: :uml_type
|
134
137
|
end
|
135
138
|
end
|
136
139
|
|
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.3
|
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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|