xmi 0.3.16 → 0.3.17

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: 2dce58d497d62d64ec9d113f58cf36895ef46942636367ba9173d0b02f462aa6
4
- data.tar.gz: 7fbf3da98fcee2be6f83babc6176f917bf0ee6d761b1c005e37f2032e5207da2
3
+ metadata.gz: 48bc0c4da292eae9225de8a654336dbdc4f20195c60d3e372b89ebfb0d52eaea
4
+ data.tar.gz: 3957d07ec96b9423c303579ca3368d9b6f8e8046a913af99b86ca319f3e6b731
5
5
  SHA512:
6
- metadata.gz: 0a32004dd310c6bac508b2f215cfbfba6a7f32dad5049facd649027b9ffaa9af1e69224f7cca0baf7cec163821c839d626505c1ef6bff9d81379f7b879502a1b
7
- data.tar.gz: 53927b5e82cce0b827cef14b59aa53c08b8683f7a18781e9ca04b3d8759855aa68fb488ead64e4168730b2a8c7e7168f613a3097e37afa5d6ae0cc2e943144ee
6
+ metadata.gz: fb26a7530f7ff39482318b97d975bb7d8a6f362c31bcf4e57d917f0398fde56e3de8281390381f5e7327bb488655d8f9772a42bc9477d760f00cca4b13384ba7
7
+ data.tar.gz: 438d08d74c8d01780fb3c73533dd8a9bdc096a59f8c61ae8ae837398d750a04b949a977c820025bb6b7fc6824cfb54c10c9a2b88f614525ba6bf39a7289d1e83
data/.rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
1
3
  AllCops:
2
4
  TargetRubyVersion: 3.0
3
5
  Exclude:
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,31 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2025-03-19 17:04:06 UTC using RuboCop version 1.74.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 2
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
12
+ # SupportedHashRocketStyles: key, separator, table
13
+ # SupportedColonStyles: key, separator, table
14
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
15
+ Layout/HashAlignment:
16
+ Exclude:
17
+ - 'lib/xmi/sparx.rb'
18
+
19
+ # Offense count: 2
20
+ # This cop supports safe autocorrection (--autocorrect).
21
+ # Configuration parameters: AllowInHeredoc.
22
+ Layout/TrailingWhitespace:
23
+ Exclude:
24
+ - 'lib/xmi/sparx.rb'
25
+
26
+ # Offense count: 2
27
+ # This cop supports safe autocorrection (--autocorrect).
28
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
29
+ # URISchemes: http, https
30
+ Layout/LineLength:
31
+ Max: 135
data/lib/xmi/sparx.rb CHANGED
@@ -564,7 +564,8 @@ module Xmi
564
564
  map_element "constraints", to: :constraints, render_nil: true, namespace: nil, prefix: nil
565
565
  map_element "modifiers", to: :modifiers, render_nil: true, namespace: nil, prefix: nil
566
566
  map_element "style", to: :style, render_nil: true, namespace: nil, prefix: nil
567
- map_element "documentation", to: :documentation, render_nil: true, namespace: nil, prefix: nil
567
+ map_element "documentation", to: :documentation, namespace: nil, prefix: nil,
568
+ value_map: { to: { nil: :empty, empty: :empty } }
568
569
  map_element "xrefs", to: :xrefs, render_nil: true, namespace: nil, prefix: nil
569
570
  map_element "tags", to: :tags, render_nil: true, namespace: nil, prefix: nil
570
571
  end
@@ -584,7 +585,7 @@ module Xmi
584
585
  map_element "constraints", to: :constraints, render_nil: true, namespace: nil, prefix: nil
585
586
  map_element "modifiers", to: :modifiers, render_nil: true, namespace: nil, prefix: nil
586
587
  map_element "style", to: :style, render_nil: true, namespace: nil, prefix: nil
587
- map_element "documentation", to: :documentation, render_nil: true, namespace: nil, prefix: nil
588
+ map_element "documentation", to: :documentation, prefix: nil, value_map: { to: { nil: :empty, empty: :empty } }
588
589
  map_element "xrefs", to: :xrefs, render_nil: true, namespace: nil, prefix: nil
589
590
  map_element "tags", to: :tags, render_nil: true, namespace: nil, prefix: nil
590
591
  end
@@ -665,7 +666,8 @@ module Xmi
665
666
  map_element "target", to: :target, namespace: nil, prefix: nil
666
667
  map_element "model", to: :model, namespace: nil, prefix: nil
667
668
  map_element "properties", to: :properties, namespace: nil, prefix: nil
668
- map_element "documentation", to: :documentation, render_nil: true, namespace: nil, prefix: nil
669
+ map_element "documentation", to: :documentation, namespace: nil, prefix: nil,
670
+ value_map: { to: { nil: :empty, empty: :empty } }
669
671
  map_element "appearance", to: :appearance, namespace: nil, prefix: nil
670
672
  map_element "labels", to: :labels, render_nil: true, namespace: nil, prefix: nil
671
673
  map_element "extendedProperties", to: :extended_properties, namespace: nil, prefix: nil
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.16"
4
+ VERSION = "0.3.17"
5
5
  end
data/xmi.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  spec.required_ruby_version = ">= 3.0.0"
33
33
 
34
- spec.add_runtime_dependency "lutaml-model"
34
+ spec.add_runtime_dependency "lutaml-model", "~> 0.7"
35
35
  spec.add_runtime_dependency "nokogiri"
36
36
 
37
37
  spec.add_development_dependency "pry", "~> 0.12.2"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-20 00:00:00.000000000 Z
11
+ date: 2025-03-19 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
- version: '0'
19
+ version: '0.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,6 +120,7 @@ files:
120
120
  - ".gitignore"
121
121
  - ".rspec"
122
122
  - ".rubocop.yml"
123
+ - ".rubocop_todo.yml"
123
124
  - Gemfile
124
125
  - README.adoc
125
126
  - Rakefile
@@ -164,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  - !ruby/object:Gem::Version
165
166
  version: '0'
166
167
  requirements: []
167
- rubygems_version: 3.3.27
168
+ rubygems_version: 3.5.22
168
169
  signing_key:
169
170
  specification_version: 4
170
171
  summary: XMI data model parser