xmi 0.3.1 → 0.3.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xmi/sparx.rb +10 -5
  3. data/lib/xmi/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f858b7f7899b3a77fcbfa224a4043fd0463363b131e1082c61823a486e93d86
4
- data.tar.gz: dc48a58d7c87ba6cfff01ff7a99999a2930bde41a88aba8fc3941fbbafce2ed4
3
+ metadata.gz: 7c6421c5801d30d51bcee311ce5adc82413b6e781afb835d7fcab87019ba1cf3
4
+ data.tar.gz: 1d2ccf2eb16855c259ad55c44969dad3733ddff52b8dd7d10fe506f68b57444b
5
5
  SHA512:
6
- metadata.gz: 79eeb960d5e1a0dac1bbade19ccafc583b4ddd39963c56bb8da9da4cf058d9b16876f671b18bd36819c7f0959717942997ca868664ce0c8e3a3b9881dbb2d5f2
7
- data.tar.gz: 36028514c14d0da5f3d33e419845299aa89a0c97c514c936508bca8630b17b1c1411e98bf4b759a0c0015ad64ab252450e44c62f14a02a1c975f4d2b3520e898
6
+ metadata.gz: 8cb6f1c4c42857bea082ad32a00901cfa5f6537177d06f63a1453a21a5bd65302252ea8d92437f155d7b9d3dc42dbc05e6b5632d88ca7892175c36af04ddc696
7
+ data.tar.gz: 01a168900e038d0cf0d99287a191cb53d6b3b8699b5dda8293806564f867c5a24f4402ebb7d0d03f6c6fd36e08df7bda52c83f025204090fbc132300f9b3337c
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 "initial", to: :initial
349
- map_attribute "options", to: :options
350
- map_attribute "style", to: :style
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/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xmi
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
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.1
4
+ version: 0.3.2
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-26 00:00:00.000000000 Z
11
+ date: 2024-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri