sts 0.5.4 → 0.5.6
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 +4 -4
- data/.rubocop_todo.yml +12 -10
- data/lib/sts/niso_sts/boxed_text.rb +1 -1
- data/lib/sts/niso_sts/funding_group.rb +2 -1
- data/lib/sts/niso_sts/metadata_std.rb +1 -1
- data/lib/sts/niso_sts/nat_meta.rb +2 -2
- data/lib/sts/niso_sts/normative_example.rb +6 -1
- data/lib/sts/niso_sts/normative_note.rb +6 -1
- data/lib/sts/niso_sts/reference_standard.rb +1 -1
- data/lib/sts/niso_sts/reg_meta.rb +2 -2
- data/lib/sts/niso_sts/standard_identification.rb +1 -1
- data/lib/sts/niso_sts/std_org.rb +2 -2
- data/lib/sts/tbx_iso_tml/note.rb +3 -1
- data/lib/sts/version.rb +1 -1
- data/lib/sts.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6978d54e78a3b856fabb8c79a810c03b1b7ac57326453dc695b212405ef5bb50
|
|
4
|
+
data.tar.gz: 3f9e168d8fe68849e4002c1c1b912e11fc0d2d83b0f9920487e3983f455b63dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0cb8492ca499c979631a349444635829b128cecffaf81a8805ac0ea6e4b0608d798d0b260af40470708497f680ae7b0a1eea8d90024e0180bf5a3810b51d98d4
|
|
7
|
+
data.tar.gz: 2b1838bdbde38dfc2cef5ea6218e4c48b6e04e99fd169d45c9d6bfe34929239d07b9b62df3bc834921605fa2103a90c29da281225b6e2a52d4c58f7cc45be113
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config
|
|
3
|
-
# on 2026-05-
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2026-05-12 03:56:52 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:
|
|
9
|
+
# Offense count: 14
|
|
10
10
|
# This cop supports safe autocorrection (--autocorrect).
|
|
11
11
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
|
|
12
12
|
# URISchemes: http, https
|
|
13
13
|
Layout/LineLength:
|
|
14
14
|
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'
|
|
22
15
|
- 'lib/sts/niso_sts/mml_content/containers.rb'
|
|
23
16
|
- 'lib/sts/niso_sts/mml_content/linear_algebra.rb'
|
|
24
17
|
- 'lib/sts/niso_sts/term.rb'
|
|
25
18
|
- 'lib/sts/tbx_iso_tml/lang_set.rb'
|
|
26
19
|
- 'lib/sts/tbx_iso_tml/term_type.rb'
|
|
20
|
+
- 'spec/elements/new_elements_spec.rb'
|
|
27
21
|
- 'spec/round_trip/reference_docs_spec.rb'
|
|
28
22
|
- 'spec/spec_helper.rb'
|
|
29
23
|
|
|
@@ -32,3 +26,11 @@ Layout/LineLength:
|
|
|
32
26
|
Metrics/AbcSize:
|
|
33
27
|
Exclude:
|
|
34
28
|
- 'lib/sts/iso_sts/mathml2/math.rb'
|
|
29
|
+
|
|
30
|
+
# Offense count: 1
|
|
31
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
32
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
33
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
34
|
+
Style/StringLiterals:
|
|
35
|
+
Exclude:
|
|
36
|
+
- 'spec/elements/new_elements_spec.rb'
|
|
@@ -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"
|
data/lib/sts/niso_sts/std_org.rb
CHANGED
|
@@ -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/tbx_iso_tml/note.rb
CHANGED
|
@@ -4,6 +4,7 @@ module Sts
|
|
|
4
4
|
module TbxIsoTml
|
|
5
5
|
class Note < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
|
+
attribute :value, :string, collection: true
|
|
7
8
|
attribute :table_wrap, ::Sts::TbxIsoTml::TableWrap
|
|
8
9
|
attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
|
|
9
10
|
attribute :math, ::Sts::TbxIsoTml::Math, collection: true
|
|
@@ -18,10 +19,11 @@ module Sts
|
|
|
18
19
|
|
|
19
20
|
xml do
|
|
20
21
|
element "note"
|
|
21
|
-
ordered
|
|
22
22
|
namespace ::Sts::Namespaces::TbxNamespace
|
|
23
|
+
mixed_content
|
|
23
24
|
|
|
24
25
|
map_attribute "id", to: :id
|
|
26
|
+
map_content to: :value
|
|
25
27
|
map_element "entailedTerm", to: :entailed_term
|
|
26
28
|
map_element "list", to: :list
|
|
27
29
|
map_element "table-wrap", to: :table_wrap
|
data/lib/sts/version.rb
CHANGED
data/lib/sts.rb
CHANGED
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
|
+
version: 0.5.6
|
|
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-
|
|
11
|
+
date: 2026-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bigdecimal
|