xmi 0.7.0 → 0.7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a7a71b5331da8d8c45859ce5c634bd65bd2564ce76505bdeea512df0ffb5001
4
- data.tar.gz: bceea821dc3bfc67feff1e43b4124288c02e1b0bf99351e32679e87f67594da3
3
+ metadata.gz: e9dac8180fbde393dbbd72307b4b93b54d170bf7af424e17ac86a2305e7569b7
4
+ data.tar.gz: 1edd1423a0ad628062d771c9aef7118b69695eec34dafb8359b1230d6945a10f
5
5
  SHA512:
6
- metadata.gz: 0a67bce4eef99e51ab0213309b2d24ddaf0170c01a1c5c3094f2ba3ae2436cf9c3052a828545516650bd321f2445081fd310233c8ddaa082ca0e8d653b299029
7
- data.tar.gz: 7d7b2f66f23144d1c27809e2d471f430e98794681da8944305ee701b889ee612c486cc9a8a118c34ef3c6fef1091f89a08007e9139215fd8fb9b88378411996c
6
+ metadata.gz: 74b30db4d1e46f26f25121be9e3100740dbd88bee68e930742ab3b545bd1a1974bc978cd9251d58e16d18565be2b63c53c4cf917f0fe6b24d62379bcde015075
7
+ data.tar.gz: c323896b46a122ab7b7729a3b81a29f1be0f812ed3d1e6e37931eb734cd0d14f071e523e1a1a04e30538df7059227f9227e97439a3ac0888bf7bc6959433fb31
data/CHANGELOG.md CHANGED
@@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Fixed
11
+
12
+ - Gemspec: constrain `lutaml-model` to `>= 0.8.17, < 0.8.20`. The
13
+ namespace-disjoint attribute deserialization shipped in lutaml-model
14
+ 0.8.20 (#747) stops unprefixed attributes from landing in
15
+ namespaced-type slots, so Sparx's `type="EAID_…"` classifier
16
+ references on `<ownedParameter>` parse as nil — silently dropped for
17
+ any consumer resolving 0.8.20 under the previous open-ended `~>
18
+ 0.8.17`. The cap lifts once the element-namespace edge is fixed
19
+ upstream (lutaml-model#758) and a separate unprefixed `type` slot
20
+ can be modelled alongside the discriminator
21
+
22
+ ### Added
23
+
24
+ - Spec coverage for `Xmi::Sparx::Element::ExtendedProperties` (schema,
25
+ `associationclass` round-trip, literal EA attribute spelling)
26
+
27
+ ## [0.7.1] - 2026-08-25
28
+
29
+ ### Added
30
+
31
+ - `ExtendedProperties#associationclass` — parses EA's literal
32
+ `associationclass="EAID_…"` reference on connector
33
+ `<extendedProperties>`, linking a connector to its association class
34
+
35
+ ### Changed
36
+
37
+ - RuboCop directive style migrated from disable/enable blocks to
38
+ next-line directives across spec files and `version_registry.rb`
39
+
40
+ ## [0.7.0] - 2026-08-25
41
+
10
42
  ### Added
11
43
 
12
44
  - `PackagedElement#nested_classifier` with `<nestedClassifier>` mapping
@@ -8,6 +8,7 @@ module Xmi
8
8
  attribute :tagged, :string
9
9
  attribute :package_name, :string
10
10
  attribute :virtual_inheritance, :integer
11
+ attribute :associationclass, :string
11
12
 
12
13
  xml do
13
14
  root "extendedProperties"
@@ -16,6 +17,7 @@ module Xmi
16
17
  map_attribute "tagged", to: :tagged
17
18
  map_attribute "package_name", to: :package_name
18
19
  map_attribute "virtualInheritance", to: :virtual_inheritance
20
+ map_attribute "associationclass", to: :associationclass
19
21
  end
20
22
  end
21
23
  end
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.7.0"
4
+ VERSION = "0.7.2"
5
5
  end
@@ -132,7 +132,7 @@ module Xmi
132
132
  # @param primary_register [Lutaml::Model::Register] The primary register
133
133
  # @param all_versions [Array<String>] All detected namespace versions
134
134
  # @return [void]
135
- # rubocop:disable Metrics/CyclomaticComplexity
135
+ # rubocop:disable-next Metrics/CyclomaticComplexity
136
136
  def extend_fallback_for_mixed_namespaces(primary_register, all_versions)
137
137
  xmi_version = all_versions.first
138
138
  other_versions = all_versions.drop(1)
@@ -165,7 +165,6 @@ module Xmi
165
165
  end
166
166
  end
167
167
  end
168
- # rubocop:enable Metrics/CyclomaticComplexity
169
168
  end
170
169
  end
171
170
  end
data/xmi.gemspec CHANGED
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.required_ruby_version = ">= 3.0.0"
34
34
 
35
- spec.add_dependency "lutaml-model", "~> 0.8.17"
35
+ spec.add_dependency "lutaml-model", ">= 0.8.17", "< 0.8.20"
36
36
  spec.add_dependency "nokogiri"
37
37
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.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: 2026-08-25 00:00:00.000000000 Z
11
+ date: 2026-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.8.17
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 0.8.20
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.8.17
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 0.8.20
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: nokogiri
29
35
  requirement: !ruby/object:Gem::Requirement