sts 0.5.4 → 0.5.5

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: 443e55e67ecb2e042fc9e4e54041c5c9e1af49e0c14356015ea7183b7f340539
4
- data.tar.gz: cf38e564d3c8086b129debf1e8b173d7ed9a3d96291dbe70781627172d3e6df2
3
+ metadata.gz: 1733e0dbcfaed1493d5a4b8ad50d0bff51b52228652e4a44f26b901b49fe6590
4
+ data.tar.gz: 7568fe9a0beaf88dd06fc5100e8092140d756462e5eb93054cf7b40a0524d3cc
5
5
  SHA512:
6
- metadata.gz: fbeecaa968c2d3a0df65e6f1ad2ced97e523d92dc1816db3c0820d7de9653457db049ef780e27b82f550716b8622c3d12dde8f83aae15ada4c64a1d76a3948d9
7
- data.tar.gz: 5a1e0c1c065bd160b28ccb27f91b4002c6e43c2377a1455ae12d4c1cbb82c8879d7b499322ee9d6f0856b6085cf5089de0fd31e19249ffb63acef93f4e1161ed
6
+ metadata.gz: 2e67913429546294099efcb5577d0b5daf86bef2414abea854a6f5daa9de9c7d2d7a779c4bdae0df120138a938ae1c92e5582034c705114721f34247773ecbf9
7
+ data.tar.gz: 168399cd8329433fded966b8790c754a70d02feec72c5866e1f76c38ba7a5cf850dafb0d0cfa92c826cd08ab62cc3280009f6b31a15f05720b6732dbf8d71f85
data/.rubocop_todo.yml CHANGED
@@ -1,24 +1,26 @@
1
1
  # This configuration was generated by
2
- # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 50`
3
- # on 2026-05-06 01:14:05 UTC using RuboCop version 1.86.1.
2
+ # `rubocop --auto-gen-config`
3
+ # on 2026-05-10 03:06:39 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: 18
9
+ # Offense count: 1
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
12
+ # SupportedStyles: with_first_argument, with_fixed_indentation
13
+ Layout/ArgumentAlignment:
14
+ Exclude:
15
+ - 'lib/sts/niso_sts/funding_group.rb'
16
+
17
+ # Offense count: 10
10
18
  # This cop supports safe autocorrection (--autocorrect).
11
19
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
12
20
  # URISchemes: http, https
13
21
  Layout/LineLength:
14
22
  Exclude:
15
- - 'lib/sts/iso_sts/content_groups/highlight_elements.rb'
16
- - 'lib/sts/niso_sts/content_groups/body_elements.rb'
17
- - 'lib/sts/niso_sts/content_groups/emphasized_text.rb'
18
- - 'lib/sts/niso_sts/content_groups/highlight_elements.rb'
19
- - 'lib/sts/niso_sts/content_groups/inside_cell.rb'
20
- - 'lib/sts/niso_sts/content_groups/styled_content_elements.rb'
21
- - 'lib/sts/niso_sts/content_groups/table_group_attributes.rb'
23
+ - 'lib/sts/niso_sts/funding_group.rb'
22
24
  - 'lib/sts/niso_sts/mml_content/containers.rb'
23
25
  - 'lib/sts/niso_sts/mml_content/linear_algebra.rb'
24
26
  - 'lib/sts/niso_sts/term.rb'
@@ -27,6 +29,19 @@ Layout/LineLength:
27
29
  - 'spec/round_trip/reference_docs_spec.rb'
28
30
  - 'spec/spec_helper.rb'
29
31
 
32
+ # Offense count: 1
33
+ # This cop supports safe autocorrection (--autocorrect).
34
+ Layout/SpaceInsidePercentLiteralDelimiters:
35
+ Exclude:
36
+ - 'spec/round_trip/reference_docs_spec.rb'
37
+
38
+ # Offense count: 1
39
+ # This cop supports safe autocorrection (--autocorrect).
40
+ # Configuration parameters: AllowInHeredoc.
41
+ Layout/TrailingWhitespace:
42
+ Exclude:
43
+ - 'lib/sts/niso_sts/funding_group.rb'
44
+
30
45
  # Offense count: 1
31
46
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
32
47
  Metrics/AbcSize:
@@ -30,7 +30,7 @@ module Sts
30
30
  attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample,
31
31
  collection: true
32
32
  attribute :attrib, ::Sts::NisoSts::Attrib, collection: true
33
- attribute :permissions, ::Sts::NisoSts::Permissions
33
+ attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
34
34
 
35
35
  xml do
36
36
  element "boxed-text"
@@ -6,7 +6,8 @@ module Sts
6
6
  attribute :id, :string
7
7
  attribute :funding_source, ::Sts::NisoSts::FundingSource, collection: true
8
8
  attribute :award_group, ::Sts::NisoSts::AwardGroup, collection: true
9
- attribute :funding_statement, ::Sts::NisoSts::FundingStatement
9
+ attribute :funding_statement, ::Sts::NisoSts::FundingStatement,
10
+ collection: true
10
11
 
11
12
  xml do
12
13
  element "funding-group"
@@ -22,7 +22,7 @@ module Sts
22
22
  attribute :ics, :string, collection: true
23
23
  attribute :page_count, ::Sts::NisoSts::PageCount
24
24
  attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
25
- attribute :permissions, ::Sts::NisoSts::Permissions
25
+ attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
26
26
  attribute :self_uri, ::Sts::NisoSts::SelfUri
27
27
  attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
28
28
  attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
@@ -15,8 +15,8 @@ module Sts
15
15
  attribute :comm_ref, :string
16
16
  attribute :secretariat, :string
17
17
  attribute :ics, :string
18
- attribute :std_xref, ::Sts::NisoSts::StdCrossReference
19
- attribute :permissions, ::Sts::NisoSts::Permissions
18
+ attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
19
+ attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
20
20
  attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
21
21
  attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
22
22
  collection: true
@@ -7,8 +7,11 @@ module Sts
7
7
  attribute :xml_lang, :string
8
8
  attribute :specific_use, :string
9
9
  attribute :symbol, :string
10
- attribute :p, ::Sts::NisoSts::Paragraph
10
+ attribute :p, ::Sts::NisoSts::Paragraph, collection: true
11
11
  attribute :label, ::Sts::NisoSts::Label
12
+ attribute :list, ::Sts::NisoSts::List, collection: true
13
+ attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample,
14
+ collection: true
12
15
 
13
16
  xml do
14
17
  element "normative-example"
@@ -21,6 +24,8 @@ module Sts
21
24
 
22
25
  map_element "p", to: :p
23
26
  map_element "label", to: :label
27
+ map_element "list", to: :list
28
+ map_element "non-normative-example", to: :non_normative_example
24
29
  end
25
30
  end
26
31
  end
@@ -9,8 +9,11 @@ module Sts
9
9
  attribute :xml_lang, :string
10
10
  attribute :specific_use, :string
11
11
  attribute :symbol, :string
12
- attribute :p, ::Sts::NisoSts::Paragraph
12
+ attribute :p, ::Sts::NisoSts::Paragraph, collection: true
13
13
  attribute :label, ::Sts::NisoSts::Label
14
+ attribute :list, ::Sts::NisoSts::List, collection: true
15
+ attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample,
16
+ collection: true
14
17
 
15
18
  xml do
16
19
  element "normative-note"
@@ -25,6 +28,8 @@ module Sts
25
28
 
26
29
  map_element "p", to: :p
27
30
  map_element "label", to: :label
31
+ map_element "list", to: :list
32
+ map_element "non-normative-example", to: :non_normative_example
28
33
  end
29
34
  end
30
35
  end
@@ -7,7 +7,7 @@ module Sts
7
7
  attribute :type, :string
8
8
  attribute :std_id, :string
9
9
  attribute :content, :string, collection: true
10
- attribute :std_ref, ::Sts::NisoSts::StandardRef
10
+ attribute :std_ref, ::Sts::NisoSts::StandardRef, collection: true
11
11
  attribute :title, :string
12
12
  attribute :fn, ::Sts::NisoSts::Fn, collection: true
13
13
  attribute :std_id_group, ::Sts::NisoSts::StdIdGroup, collection: true
@@ -15,8 +15,8 @@ module Sts
15
15
  attribute :comm_ref, :string
16
16
  attribute :secretariat, :string
17
17
  attribute :ics, :string
18
- attribute :std_xref, ::Sts::NisoSts::StdCrossReference
19
- attribute :permissions, ::Sts::NisoSts::Permissions
18
+ attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
19
+ attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
20
20
  attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
21
21
  attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
22
22
  collection: true
@@ -10,7 +10,7 @@ module Sts
10
10
  attribute :version, :string
11
11
  attribute :part_number, :string
12
12
  attribute :sub_part_number, :string, collection: true
13
- attribute :std_id_group, ::Sts::NisoSts::StdIdGroup
13
+ attribute :std_id_group, ::Sts::NisoSts::StdIdGroup, collection: true
14
14
 
15
15
  xml do
16
16
  element "std-ident"
@@ -7,8 +7,8 @@ module Sts
7
7
  attribute :std_org_type, :string
8
8
  attribute :std_org_role, :string
9
9
  attribute :std_org_name, ::Sts::NisoSts::StdOrgName
10
- attribute :std_org_abbrev, ::Sts::NisoSts::StdOrgAbbrev
11
- attribute :std_org_loc, ::Sts::NisoSts::StdOrgLoc
10
+ attribute :std_org_abbrev, ::Sts::NisoSts::StdOrgAbbrev, collection: true
11
+ attribute :std_org_loc, ::Sts::NisoSts::StdOrgLoc, collection: true
12
12
 
13
13
  xml do
14
14
  element "std-org"
data/lib/sts/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sts
4
- VERSION = "0.5.4"
4
+ VERSION = "0.5.5"
5
5
  end
data/lib/sts.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "lutaml/model"
4
+
3
5
  module Sts
4
6
  autoload :IsoSts, "#{__dir__}/sts/iso_sts"
5
7
  autoload :Mathml, "#{__dir__}/sts/mathml"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-06 00:00:00.000000000 Z
11
+ date: 2026-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal