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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecadace3879b75e1ec4f08f435da722a2151c32a419fed84476646f2dc7314f6
|
|
4
|
+
data.tar.gz: bc0e618b7252c140a1b9acc404194f2fdfa30e65c8b4ae8823c6bc19222a4a8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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-
|
|
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/
|
|
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.
|
|
131
|
-
|
|
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)
|
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.
|
|
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-
|
|
11
|
+
date: 2026-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|