metanorma-plugin-lutaml 0.7.44 → 0.7.45

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: 546a03a5a7b95aaf58a96f398ce35c3985591d1c5ed092ed1d5988f4cbbf1226
4
- data.tar.gz: b863f610a76a55b398f2f23e6a5405c89c8964b093481bbe51224de828e4e334
3
+ metadata.gz: ecadace3879b75e1ec4f08f435da722a2151c32a419fed84476646f2dc7314f6
4
+ data.tar.gz: bc0e618b7252c140a1b9acc404194f2fdfa30e65c8b4ae8823c6bc19222a4a8a
5
5
  SHA512:
6
- metadata.gz: 650ae721e094310b0a6a2797d674519927f2f8991ce4d1b5d772d4c8941bf48231d4107e1a0dff33194fb22d8046b895ed7237100ad245da2c2feb3a78c7970c
7
- data.tar.gz: 2200b6ff0db0ca72f68087fb90d80d05917d00b0e78fd0f8114bb22d4d5e767857f0899b63281c8bff1427a00c20954e9844c5f6fc255c382bb7e342ee14c0b3
6
+ metadata.gz: 8d621151fd02cf3582d75366b8fc943f51286357d95584863c3158b7911b082dfaa877919505ba3483219d5c08eeae1ad449fe9862f0aa63b3507f08764f9a3a
7
+ data.tar.gz: 54823d6d7ae810e8791dc27d3dec120a44eb224fadce8ccedbd4884d4d8a28c54127bb1e8bf6b2c54e0c740085c52c5968d1e8181964902371cee15f329b990e
data/.rubocop_todo.yml CHANGED
@@ -1,35 +1,11 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-05-14 10:29:29 UTC using RuboCop version 1.86.1.
3
+ # on 2026-05-15 01:32:12 UTC using RuboCop version 1.86.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: EnforcedStyle.
12
- # SupportedStyles: empty_lines, no_empty_lines
13
- Layout/EmptyLinesAroundBlockBody:
14
- Exclude:
15
- - 'spec/metanorma/plugin/lutaml/lutaml_text_preprocessor_spec.rb'
16
-
17
- # Offense count: 1
18
- # This cop supports safe autocorrection (--autocorrect).
19
- # Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
20
- # SupportedStylesAlignWith: start_of_line, relative_to_receiver
21
- Layout/IndentationWidth:
22
- Exclude:
23
- - 'spec/metanorma/plugin/lutaml/lutaml_text_preprocessor_spec.rb'
24
-
25
- # Offense count: 5
26
- # This cop supports safe autocorrection (--autocorrect).
27
- # Configuration parameters: EnforcedStyle, IndentationWidth.
28
- # SupportedStyles: aligned, indented
29
- Layout/LineEndStringConcatenationIndentation:
30
- Exclude:
31
- - 'spec/metanorma/plugin/lutaml/express_remarks_decorator_spec.rb'
32
-
33
9
  # Offense count: 14
34
10
  # This cop supports safe autocorrection (--autocorrect).
35
11
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
@@ -48,19 +24,6 @@ Layout/LineLength:
48
24
  - 'spec/metanorma/plugin/lutaml/source_extractor_spec.rb'
49
25
  - 'spec/support/shared_examples/structured_data_2_text_preprocessor.rb'
50
26
 
51
- # Offense count: 1
52
- # This cop supports safe autocorrection (--autocorrect).
53
- Layout/RescueEnsureAlignment:
54
- Exclude:
55
- - 'spec/metanorma/plugin/lutaml/lutaml_text_preprocessor_spec.rb'
56
-
57
- # Offense count: 2
58
- # This cop supports safe autocorrection (--autocorrect).
59
- # Configuration parameters: AllowInHeredoc.
60
- Layout/TrailingWhitespace:
61
- Exclude:
62
- - 'spec/metanorma/plugin/lutaml/lutaml_text_preprocessor_spec.rb'
63
-
64
27
  # Offense count: 3
65
28
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
66
29
  Metrics/AbcSize:
@@ -194,15 +157,3 @@ RSpec/SpecFilePathFormat:
194
157
  RSpec/SubjectDeclaration:
195
158
  Exclude:
196
159
  - 'spec/metanorma/plugin/lutaml/config/root_spec.rb'
197
-
198
- # Offense count: 1
199
- # This cop supports safe autocorrection (--autocorrect).
200
- Style/RedundantBegin:
201
- Exclude:
202
- - 'spec/metanorma/plugin/lutaml/lutaml_text_preprocessor_spec.rb'
203
-
204
- # Offense count: 2
205
- # This cop supports safe autocorrection (--autocorrect).
206
- Style/RedundantConstantBase:
207
- Exclude:
208
- - 'spec/metanorma/plugin/lutaml/lutaml_text_preprocessor_spec.rb'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/xml/parsers/xsd"
3
+ require "lutaml/model"
4
4
 
5
5
  module Metanorma
6
6
  module Plugin
@@ -127,9 +127,8 @@ module Metanorma
127
127
  end
128
128
 
129
129
  def parse_xsd_file(full_path, location)
130
- File.open(full_path, "r:UTF-8") do |file|
131
- ::Lutaml::Xml::Parsers::Xsd.parse(file, location: location)
132
- end
130
+ content = File.read(full_path, encoding: "UTF-8")
131
+ ::Lutaml::Xml::Schema::Xsd.parse(content, location: location)
133
132
  end
134
133
 
135
134
  def xsd_location(full_path, options)
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.44".freeze
4
+ VERSION = "0.7.45".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.44
4
+ version: 0.7.45
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-05-14 00:00:00.000000000 Z
11
+ date: 2026-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor