sts 0.3.3 → 0.4.0

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.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +7 -1
  3. data/.gitignore +2 -0
  4. data/.rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-master-ci-rubocop-yml +1 -0
  5. data/.rubocop_todo.yml +12 -15
  6. data/Gemfile +9 -13
  7. data/lib/sts/namespaces.rb +13 -0
  8. data/lib/sts/niso_sts/adoption.rb +9 -13
  9. data/lib/sts/niso_sts/adoption_front.rb +1 -3
  10. data/lib/sts/niso_sts/app.rb +14 -25
  11. data/lib/sts/niso_sts/app_group.rb +1 -5
  12. data/lib/sts/niso_sts/back.rb +5 -12
  13. data/lib/sts/niso_sts/body.rb +2 -6
  14. data/lib/sts/niso_sts/caption.rb +6 -10
  15. data/lib/sts/niso_sts/custom_meta.rb +5 -9
  16. data/lib/sts/niso_sts/custom_meta_group.rb +2 -6
  17. data/lib/sts/niso_sts/def.rb +2 -6
  18. data/lib/sts/niso_sts/def_item.rb +4 -9
  19. data/lib/sts/niso_sts/def_list.rb +6 -10
  20. data/lib/sts/niso_sts/display_formula.rb +5 -8
  21. data/lib/sts/niso_sts/document_identification.rb +6 -8
  22. data/lib/sts/niso_sts/ext_link.rb +5 -9
  23. data/lib/sts/niso_sts/figure.rb +8 -15
  24. data/lib/sts/niso_sts/fn.rb +4 -9
  25. data/lib/sts/niso_sts/fn_group.rb +2 -6
  26. data/lib/sts/niso_sts/front.rb +4 -10
  27. data/lib/sts/niso_sts/graphic.rb +5 -11
  28. data/lib/sts/niso_sts/inline_formula.rb +3 -6
  29. data/lib/sts/niso_sts/label.rb +2 -6
  30. data/lib/sts/niso_sts/list.rb +5 -8
  31. data/lib/sts/niso_sts/list_item.rb +8 -13
  32. data/lib/sts/niso_sts/meta_date.rb +3 -5
  33. data/lib/sts/niso_sts/meta_note.rb +6 -9
  34. data/lib/sts/niso_sts/metadata_iso.rb +20 -30
  35. data/lib/sts/niso_sts/metadata_std.rb +25 -30
  36. data/lib/sts/niso_sts/mixed_citation.rb +8 -12
  37. data/lib/sts/{tbx_iso_tml → niso_sts}/named_content.rb +4 -7
  38. data/lib/sts/niso_sts/non_normative_example.rb +5 -10
  39. data/lib/sts/niso_sts/non_normative_note.rb +6 -9
  40. data/lib/sts/niso_sts/object_id.rb +3 -5
  41. data/lib/sts/niso_sts/page_count.rb +2 -4
  42. data/lib/sts/niso_sts/paragraph.rb +20 -37
  43. data/lib/sts/niso_sts/permissions.rb +4 -6
  44. data/lib/sts/niso_sts/reference.rb +6 -9
  45. data/lib/sts/niso_sts/reference_list.rb +7 -9
  46. data/lib/sts/niso_sts/reference_standard.rb +14 -19
  47. data/lib/sts/niso_sts/section.rb +19 -32
  48. data/lib/sts/niso_sts/section_array.rb +3 -7
  49. data/lib/sts/niso_sts/standard.rb +15 -19
  50. data/lib/sts/niso_sts/standard_identification.rb +13 -14
  51. data/lib/sts/niso_sts/standard_ref.rb +3 -5
  52. data/lib/sts/niso_sts/std_cross_reference.rb +3 -5
  53. data/lib/sts/niso_sts/std_id.rb +5 -7
  54. data/lib/sts/niso_sts/std_id_group.rb +2 -6
  55. data/lib/sts/niso_sts/term.rb +68 -0
  56. data/lib/sts/niso_sts/term_display.rb +4 -8
  57. data/lib/sts/niso_sts/term_section.rb +8 -15
  58. data/lib/sts/niso_sts/title.rb +3 -7
  59. data/lib/sts/niso_sts/title_compl.rb +14 -0
  60. data/lib/sts/niso_sts/title_full.rb +18 -0
  61. data/lib/sts/niso_sts/title_wrap.rb +15 -20
  62. data/lib/sts/niso_sts.rb +56 -18
  63. data/lib/sts/tbx_iso_tml/bold.rb +2 -4
  64. data/lib/sts/tbx_iso_tml/caption.rb +2 -4
  65. data/lib/sts/tbx_iso_tml/col.rb +6 -8
  66. data/lib/sts/tbx_iso_tml/cross_reference.rb +17 -0
  67. data/lib/sts/tbx_iso_tml/definition.rb +16 -24
  68. data/lib/sts/tbx_iso_tml/entailed_term.rb +9 -13
  69. data/lib/sts/tbx_iso_tml/example.rb +8 -12
  70. data/lib/sts/tbx_iso_tml/external_graphic.rb +3 -5
  71. data/lib/sts/tbx_iso_tml/external_source.rb +4 -6
  72. data/lib/sts/tbx_iso_tml/fn.rb +4 -6
  73. data/lib/sts/tbx_iso_tml/fn_group.rb +2 -6
  74. data/lib/sts/tbx_iso_tml/geographical_usage.rb +3 -5
  75. data/lib/sts/tbx_iso_tml/grammatical_gender.rb +3 -5
  76. data/lib/sts/tbx_iso_tml/grammatical_number.rb +3 -5
  77. data/lib/sts/tbx_iso_tml/italic.rb +4 -5
  78. data/lib/sts/tbx_iso_tml/lang_set.rb +16 -30
  79. data/lib/sts/tbx_iso_tml/math.rb +19 -32
  80. data/lib/sts/tbx_iso_tml/mfenced.rb +16 -21
  81. data/lib/sts/tbx_iso_tml/mfrac.rb +9 -12
  82. data/lib/sts/tbx_iso_tml/mi.rb +3 -4
  83. data/lib/sts/tbx_iso_tml/mrow.rb +15 -20
  84. data/lib/sts/tbx_iso_tml/mspace.rb +3 -5
  85. data/lib/sts/tbx_iso_tml/mstyle.rb +9 -9
  86. data/lib/sts/tbx_iso_tml/msub.rb +10 -15
  87. data/lib/sts/tbx_iso_tml/msup.rb +6 -11
  88. data/lib/sts/tbx_iso_tml/munder.rb +3 -7
  89. data/lib/sts/tbx_iso_tml/munderover.rb +6 -9
  90. data/lib/sts/tbx_iso_tml/normative_authorization.rb +3 -5
  91. data/lib/sts/tbx_iso_tml/note.rb +20 -32
  92. data/lib/sts/tbx_iso_tml/part_of_speech.rb +3 -5
  93. data/lib/sts/tbx_iso_tml/pronunciation.rb +16 -0
  94. data/lib/sts/tbx_iso_tml/see.rb +4 -6
  95. data/lib/sts/tbx_iso_tml/semantics.rb +8 -12
  96. data/lib/sts/tbx_iso_tml/source.rb +6 -8
  97. data/lib/sts/tbx_iso_tml/subject_field.rb +17 -0
  98. data/lib/sts/tbx_iso_tml/sup.rb +4 -7
  99. data/lib/sts/tbx_iso_tml/table.rb +8 -14
  100. data/lib/sts/tbx_iso_tml/table_break.rb +0 -2
  101. data/lib/sts/tbx_iso_tml/table_wrap.rb +8 -14
  102. data/lib/sts/tbx_iso_tml/table_wrap_foot.rb +2 -6
  103. data/lib/sts/tbx_iso_tml/tbody.rb +6 -10
  104. data/lib/sts/tbx_iso_tml/td.rb +20 -31
  105. data/lib/sts/tbx_iso_tml/term.rb +18 -34
  106. data/lib/sts/tbx_iso_tml/term_entry.rb +6 -10
  107. data/lib/sts/tbx_iso_tml/term_information_group.rb +13 -22
  108. data/lib/sts/tbx_iso_tml/term_type.rb +3 -5
  109. data/lib/sts/tbx_iso_tml/th.rb +19 -27
  110. data/lib/sts/tbx_iso_tml/thead.rb +6 -10
  111. data/lib/sts/tbx_iso_tml/tr.rb +3 -8
  112. data/lib/sts/tbx_iso_tml/xref.rb +5 -6
  113. data/lib/sts/tbx_iso_tml.rb +52 -25
  114. data/lib/sts/version.rb +1 -1
  115. data/lib/sts.rb +4 -12
  116. data/sts.gemspec +1 -1
  117. metadata +17 -10
@@ -1,47 +1,31 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
- require_relative "italic"
6
- require_relative "math"
7
- require_relative "named_content"
8
- require_relative "xref"
9
-
10
- require_relative "../niso_sts/inline_formula"
11
-
12
3
  module Sts
13
4
  module TbxIsoTml
14
5
  class Term < Lutaml::Model::Serializable
15
- attribute :id, Lutaml::Model::Type::String
16
- attribute :script, Lutaml::Model::Type::String
17
- attribute :value, Lutaml::Model::Type::String
18
- attribute :italic, Sts::TbxIsoTml::Italic
19
- attribute :bold, Lutaml::Model::Type::String
20
- attribute :sub, Lutaml::Model::Type::String
21
- attribute :math, Sts::TbxIsoTml::Math
22
- attribute :xref, Sts::TbxIsoTml::Xref
23
- attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
24
- attribute :named_content, Sts::TbxIsoTml::NamedContent
6
+ attribute :id, :string
7
+ attribute :script, :string
8
+ attribute :value, :string
9
+ attribute :italic, ::Sts::TbxIsoTml::Italic
10
+ attribute :bold, :string
11
+ attribute :sub, :string
12
+ attribute :math, ::Sts::TbxIsoTml::Math
13
+ attribute :xref, ::Sts::TbxIsoTml::Xref
14
+ attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
25
15
 
26
16
  xml do
27
- root "term", mixed: true
28
- # namespace "urn:iso:std:iso:30042:ed-1", "tbx"
17
+ element "term"
18
+ mixed_content
19
+ namespace ::Sts::Namespaces::TbxNamespace
29
20
 
30
21
  map_attribute "id", to: :id
31
22
  map_attribute "script", to: :script
32
- map_element "inline-formula", to: :inline_formula,
33
- namespace: nil,
34
- prefix: nil
35
- map_element "named-content", to: :named_content,
36
- namespace: nil,
37
- prefix: nil
38
- map_element "italic", to: :italic, namespace: nil, prefix: nil
39
- map_element "bold", to: :bold, namespace: nil, prefix: nil
40
- map_element "sub", to: :sub, namespace: nil, prefix: nil
41
- map_element "xref", to: :xref, namespace: nil, prefix: nil
42
- map_element "math", to: :math,
43
- namespace: "http://www.w3.org/1998/Math/MathML",
44
- prefix: "mml"
23
+ map_element "inline-formula", to: :inline_formula
24
+ map_element "italic", to: :italic
25
+ map_element "bold", to: :bold
26
+ map_element "sub", to: :sub
27
+ map_element "xref", to: :xref
28
+ map_element "math", to: :math
45
29
  map_content to: :value
46
30
  end
47
31
  end
@@ -1,20 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
- require_relative "lang_set"
6
- require_relative "external_graphic"
7
-
8
3
  module Sts
9
4
  module TbxIsoTml
10
5
  class TermEntry < Lutaml::Model::Serializable
11
- attribute :id, Lutaml::Model::Type::String
12
- attribute :lang_set, LangSet, collection: true
13
- attribute :x_graphic, ExternalGraphic, collection: true
6
+ attribute :id, :string
7
+ attribute :lang_set, ::Sts::TbxIsoTml::LangSet, collection: true
8
+ attribute :x_graphic, ::Sts::TbxIsoTml::ExternalGraphic, collection: true
14
9
 
15
10
  xml do
16
- root "termEntry", mixed: true
17
- namespace "urn:iso:std:iso:30042:ed-1", "tbx"
11
+ element "termEntry"
12
+ mixed_content
13
+ namespace ::Sts::Namespaces::TbxNamespace
18
14
 
19
15
  map_attribute "id", to: :id
20
16
  map_element "langSet", to: :lang_set
@@ -1,32 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
- require_relative "term"
6
- require_relative "part_of_speech"
7
- require_relative "normative_authorization"
8
- require_relative "geographical_usage"
9
- require_relative "grammatical_gender"
10
- require_relative "grammatical_number"
11
- require_relative "term_type"
12
-
13
3
  module Sts
14
4
  module TbxIsoTml
15
5
  class TermInformationGroup < Lutaml::Model::Serializable
16
- attribute :term, Term
17
- attribute :pos, PartOfSpeech
18
- attribute :id, Lutaml::Model::Type::String
19
- attribute :usage_note, Lutaml::Model::Type::String
20
- attribute :normative_authorization, NormativeAuthorization
21
- attribute :geographical_usage, GeographicalUsage
22
- attribute :grammatical_gender, GrammaticalGender
23
- attribute :grammatical_number, GrammaticalNumber
24
- attribute :pronunciation, Lutaml::Model::Type::String
25
- attribute :term_type, TermType
6
+ attribute :term, ::Sts::TbxIsoTml::Term
7
+ attribute :pos, ::Sts::TbxIsoTml::PartOfSpeech
8
+ attribute :id, :string
9
+ attribute :usage_note, :string
10
+ attribute :normative_authorization, ::Sts::TbxIsoTml::NormativeAuthorization
11
+ attribute :geographical_usage, ::Sts::TbxIsoTml::GeographicalUsage
12
+ attribute :grammatical_gender, ::Sts::TbxIsoTml::GrammaticalGender
13
+ attribute :grammatical_number, ::Sts::TbxIsoTml::GrammaticalNumber
14
+ attribute :pronunciation, ::Sts::TbxIsoTml::Pronunciation
15
+ attribute :term_type, ::Sts::TbxIsoTml::TermType
26
16
 
27
17
  xml do
28
- root "tig", mixed: true
29
- namespace "urn:iso:std:iso:30042:ed-1", "tbx"
18
+ element "tig"
19
+ mixed_content
20
+ namespace ::Sts::Namespaces::TbxNamespace
30
21
 
31
22
  map_attribute "id", to: :id
32
23
 
@@ -1,16 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
3
  module Sts
6
4
  module TbxIsoTml
7
5
  class TermType < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String,
6
+ attribute :value, :string,
9
7
  values: %w[acronym abbreviation equation formula fullForm symbol variant]
10
8
 
11
9
  xml do
12
- root "termType"
13
- namespace "urn:iso:std:iso:30042:ed-1", "tbx"
10
+ element "termType"
11
+ namespace ::Sts::Namespaces::TbxNamespace
14
12
 
15
13
  map_attribute "value", to: :value
16
14
  end
@@ -1,36 +1,28 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
- require_relative "bold"
6
- require_relative "italic"
7
- require_relative "table_break"
8
- require_relative "xref"
9
- require_relative "../niso_sts/reference_standard"
10
- require_relative "../niso_sts/inline_formula"
11
-
12
3
  module Sts
13
4
  module TbxIsoTml
14
5
  class Th < Lutaml::Model::Serializable
15
- attribute :content, Lutaml::Model::Type::String
16
- attribute :colspan, Lutaml::Model::Type::String
17
- attribute :align, Lutaml::Model::Type::String
18
- attribute :scope, Lutaml::Model::Type::String
19
- attribute :style, Lutaml::Model::Type::String
20
- attribute :rowspan, Lutaml::Model::Type::String
21
- attribute :break, TableBreak
22
- attribute :content_type, Lutaml::Model::Type::String
23
- attribute :char, Lutaml::Model::Type::String
24
- attribute :charoff, Lutaml::Model::Type::String
25
- attribute :valign, Lutaml::Model::Type::String
26
- attribute :italic, Italic
27
- attribute :bold, Bold
28
- attribute :std, Sts::NisoSts::ReferenceStandard
29
- attribute :xref, Xref
30
- attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
6
+ attribute :content, :string
7
+ attribute :colspan, :string
8
+ attribute :align, :string
9
+ attribute :scope, :string
10
+ attribute :style, :string
11
+ attribute :rowspan, :string
12
+ attribute :break, ::Sts::TbxIsoTml::TableBreak
13
+ attribute :content_type, :string
14
+ attribute :char, :string
15
+ attribute :charoff, :string
16
+ attribute :valign, :string
17
+ attribute :italic, ::Sts::TbxIsoTml::Italic
18
+ attribute :bold, ::Sts::TbxIsoTml::Bold
19
+ attribute :std, ::Sts::NisoSts::ReferenceStandard
20
+ attribute :xref, ::Sts::TbxIsoTml::Xref
21
+ attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
31
22
 
32
23
  xml do
33
- root "th", mixed: true
24
+ element "th"
25
+ mixed_content
34
26
 
35
27
  map_content to: :content
36
28
  map_attribute "colspan", to: :colspan
@@ -39,7 +31,7 @@ module Sts
39
31
  map_attribute "style", to: :style
40
32
  map_attribute "rowspan", to: :rowspan
41
33
  map_attribute "content-type", to: :content_type
42
- map_attribute "char", to: :char
34
+ map_attribute "char", to: :char, value_map: { to: { empty: :empty } }
43
35
  map_attribute "charoff", to: :charoff
44
36
  map_attribute "valign", to: :valign
45
37
 
@@ -1,21 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
- require_relative "tr"
6
-
7
3
  module Sts
8
4
  module TbxIsoTml
9
5
  class Thead < Lutaml::Model::Serializable
10
- attribute :tr, Sts::TbxIsoTml::Tr, collection: true
11
- attribute :char, Lutaml::Model::Type::String
12
- attribute :charoff, Lutaml::Model::Type::String
13
- attribute :valign, Lutaml::Model::Type::String
6
+ attribute :tr, ::Sts::TbxIsoTml::Tr, collection: true
7
+ attribute :char, :string
8
+ attribute :charoff, :string
9
+ attribute :valign, :string
14
10
 
15
11
  xml do
16
- root "thead"
12
+ element "thead"
17
13
 
18
- map_attribute "char", to: :char
14
+ map_attribute "char", to: :char, value_map: { to: { empty: :empty } }
19
15
  map_attribute "charoff", to: :charoff
20
16
  map_attribute "valign", to: :valign
21
17
 
@@ -1,18 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
- require_relative "th"
6
- require_relative "td"
7
-
8
3
  module Sts
9
4
  module TbxIsoTml
10
5
  class Tr < Lutaml::Model::Serializable
11
- attribute :th, Sts::TbxIsoTml::Th, collection: true
12
- attribute :td, Sts::TbxIsoTml::Td, collection: true
6
+ attribute :th, ::Sts::TbxIsoTml::Th, collection: true
7
+ attribute :td, ::Sts::TbxIsoTml::Td, collection: true
13
8
 
14
9
  xml do
15
- root "tr"
10
+ element "tr"
16
11
 
17
12
  map_element "th", to: :th
18
13
  map_element "td", to: :td
@@ -1,18 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "sup"
5
4
 
6
5
  module Sts
7
6
  module TbxIsoTml
8
7
  class Xref < Lutaml::Model::Serializable
9
- attribute :ref_type, Lutaml::Model::Type::String
10
- attribute :rid, Lutaml::Model::Type::String
11
- attribute :value, Lutaml::Model::Type::String
12
- attribute :sup, Sup
8
+ attribute :ref_type, :string
9
+ attribute :rid, :string
10
+ attribute :value, :string
11
+ attribute :sup, ::Sts::TbxIsoTml::Sup
13
12
 
14
13
  xml do
15
- root "xref"
14
+ element "xref"
16
15
 
17
16
  map_attribute "ref-type", to: :ref_type
18
17
  map_attribute "rid", to: :rid
@@ -2,30 +2,57 @@
2
2
 
3
3
  module Sts
4
4
  module TbxIsoTml
5
+ autoload :Bold, "#{__dir__}/tbx_iso_tml/bold"
6
+ autoload :Caption, "#{__dir__}/tbx_iso_tml/caption"
7
+ autoload :Col, "#{__dir__}/tbx_iso_tml/col"
8
+ autoload :CrossReference, "#{__dir__}/tbx_iso_tml/cross_reference"
9
+ autoload :Definition, "#{__dir__}/tbx_iso_tml/definition"
10
+ autoload :EntailedTerm, "#{__dir__}/tbx_iso_tml/entailed_term"
11
+ autoload :Example, "#{__dir__}/tbx_iso_tml/example"
12
+ autoload :ExternalGraphic, "#{__dir__}/tbx_iso_tml/external_graphic"
13
+ autoload :ExternalSource, "#{__dir__}/tbx_iso_tml/external_source"
14
+ autoload :Fn, "#{__dir__}/tbx_iso_tml/fn"
15
+ autoload :FnGroup, "#{__dir__}/tbx_iso_tml/fn_group"
16
+ autoload :GeographicalUsage, "#{__dir__}/tbx_iso_tml/geographical_usage"
17
+ autoload :GrammaticalGender, "#{__dir__}/tbx_iso_tml/grammatical_gender"
18
+ autoload :GrammaticalNumber, "#{__dir__}/tbx_iso_tml/grammatical_number"
19
+ autoload :Italic, "#{__dir__}/tbx_iso_tml/italic"
20
+ autoload :LangSet, "#{__dir__}/tbx_iso_tml/lang_set"
21
+ autoload :Math, "#{__dir__}/tbx_iso_tml/math"
22
+ autoload :Mfenced, "#{__dir__}/tbx_iso_tml/mfenced"
23
+ autoload :Mfrac, "#{__dir__}/tbx_iso_tml/mfrac"
24
+ autoload :Mi, "#{__dir__}/tbx_iso_tml/mi"
25
+ autoload :Mrow, "#{__dir__}/tbx_iso_tml/mrow"
26
+ autoload :Mspace, "#{__dir__}/tbx_iso_tml/mspace"
27
+ autoload :Mstyle, "#{__dir__}/tbx_iso_tml/mstyle"
28
+ autoload :Msub, "#{__dir__}/tbx_iso_tml/msub"
29
+ autoload :Msup, "#{__dir__}/tbx_iso_tml/msup"
30
+ autoload :Munder, "#{__dir__}/tbx_iso_tml/munder"
31
+ autoload :Munderover, "#{__dir__}/tbx_iso_tml/munderover"
32
+ autoload :NormativeAuthorization,
33
+ "#{__dir__}/tbx_iso_tml/normative_authorization"
34
+ autoload :Note, "#{__dir__}/tbx_iso_tml/note"
35
+ autoload :PartOfSpeech, "#{__dir__}/tbx_iso_tml/part_of_speech"
36
+ autoload :Pronunciation, "#{__dir__}/tbx_iso_tml/pronunciation"
37
+ autoload :See, "#{__dir__}/tbx_iso_tml/see"
38
+ autoload :Semantics, "#{__dir__}/tbx_iso_tml/semantics"
39
+ autoload :Source, "#{__dir__}/tbx_iso_tml/source"
40
+ autoload :SubjectField, "#{__dir__}/tbx_iso_tml/subject_field"
41
+ autoload :Sup, "#{__dir__}/tbx_iso_tml/sup"
42
+ autoload :Table, "#{__dir__}/tbx_iso_tml/table"
43
+ autoload :TableBreak, "#{__dir__}/tbx_iso_tml/table_break"
44
+ autoload :TableWrap, "#{__dir__}/tbx_iso_tml/table_wrap"
45
+ autoload :TableWrapFoot, "#{__dir__}/tbx_iso_tml/table_wrap_foot"
46
+ autoload :Tbody, "#{__dir__}/tbx_iso_tml/tbody"
47
+ autoload :Td, "#{__dir__}/tbx_iso_tml/td"
48
+ autoload :Term, "#{__dir__}/tbx_iso_tml/term"
49
+ autoload :TermEntry, "#{__dir__}/tbx_iso_tml/term_entry"
50
+ autoload :TermInformationGroup,
51
+ "#{__dir__}/tbx_iso_tml/term_information_group"
52
+ autoload :TermType, "#{__dir__}/tbx_iso_tml/term_type"
53
+ autoload :Th, "#{__dir__}/tbx_iso_tml/th"
54
+ autoload :Thead, "#{__dir__}/tbx_iso_tml/thead"
55
+ autoload :Tr, "#{__dir__}/tbx_iso_tml/tr"
56
+ autoload :Xref, "#{__dir__}/tbx_iso_tml/xref"
5
57
  end
6
58
  end
7
-
8
- require_relative "tbx_iso_tml/caption"
9
- require_relative "tbx_iso_tml/definition"
10
- require_relative "tbx_iso_tml/entailed_term"
11
- require_relative "tbx_iso_tml/example"
12
- require_relative "tbx_iso_tml/external_graphic"
13
- require_relative "tbx_iso_tml/external_source"
14
- require_relative "tbx_iso_tml/geographical_usage"
15
- require_relative "tbx_iso_tml/grammatical_gender"
16
- require_relative "tbx_iso_tml/lang_set"
17
- require_relative "tbx_iso_tml/normative_authorization"
18
- require_relative "tbx_iso_tml/note"
19
- require_relative "tbx_iso_tml/part_of_speech"
20
- require_relative "tbx_iso_tml/see"
21
- require_relative "tbx_iso_tml/source"
22
- require_relative "tbx_iso_tml/table_wrap"
23
- require_relative "tbx_iso_tml/table_wrap_foot"
24
- require_relative "tbx_iso_tml/tbody"
25
- require_relative "tbx_iso_tml/tr"
26
- require_relative "tbx_iso_tml/th"
27
- require_relative "tbx_iso_tml/td"
28
- require_relative "tbx_iso_tml/term"
29
- require_relative "tbx_iso_tml/term_entry"
30
- require_relative "tbx_iso_tml/term_information_group"
31
- require_relative "tbx_iso_tml/term_type"
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.3.3"
4
+ VERSION = "0.4.0"
5
5
  end
data/lib/sts.rb CHANGED
@@ -1,18 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "sts/version"
4
3
  require "lutaml/model"
5
- require "lutaml/model/xml_adapter/nokogiri_adapter"
6
4
 
7
5
  module Sts
8
- Lutaml::Model::Config.configure do |config|
9
- config.xml_adapter = Lutaml::Model::XmlAdapter::NokogiriAdapter
10
- end
11
-
12
- class Error < StandardError; end
13
-
14
- # Your code goes here...
6
+ autoload :Namespaces, "#{__dir__}/sts/namespaces"
7
+ autoload :NisoSts, "#{__dir__}/sts/niso_sts"
8
+ autoload :VERSION, "#{__dir__}/sts/version"
9
+ autoload :TbxIsoTml, "#{__dir__}/sts/tbx_iso_tml"
15
10
  end
16
-
17
- require_relative "sts/tbx_iso_tml"
18
- require_relative "sts/niso_sts"
data/sts.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  spec.add_dependency "bigdecimal"
33
- spec.add_dependency "lutaml-model", "~> 0.3.0"
33
+ spec.add_dependency "lutaml-model", "~> 0.8.0"
34
34
  spec.add_dependency "nokogiri"
35
35
 
36
36
  # spec.add_dependency "thor"
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.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-09 00:00:00.000000000 Z
11
+ date: 2026-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.0
33
+ version: 0.8.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.0
40
+ version: 0.8.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description:
55
+ description:
56
56
  email:
57
57
  - open.source@ribose.com
58
58
  executables: []
@@ -71,6 +71,7 @@ files:
71
71
  - README.adoc
72
72
  - Rakefile
73
73
  - lib/sts.rb
74
+ - lib/sts/namespaces.rb
74
75
  - lib/sts/niso_sts.rb
75
76
  - lib/sts/niso_sts/adoption.rb
76
77
  - lib/sts/niso_sts/adoption_front.rb
@@ -101,6 +102,7 @@ files:
101
102
  - lib/sts/niso_sts/metadata_iso.rb
102
103
  - lib/sts/niso_sts/metadata_std.rb
103
104
  - lib/sts/niso_sts/mixed_citation.rb
105
+ - lib/sts/niso_sts/named_content.rb
104
106
  - lib/sts/niso_sts/non_normative_example.rb
105
107
  - lib/sts/niso_sts/non_normative_note.rb
106
108
  - lib/sts/niso_sts/object_id.rb
@@ -118,14 +120,18 @@ files:
118
120
  - lib/sts/niso_sts/std_cross_reference.rb
119
121
  - lib/sts/niso_sts/std_id.rb
120
122
  - lib/sts/niso_sts/std_id_group.rb
123
+ - lib/sts/niso_sts/term.rb
121
124
  - lib/sts/niso_sts/term_display.rb
122
125
  - lib/sts/niso_sts/term_section.rb
123
126
  - lib/sts/niso_sts/title.rb
127
+ - lib/sts/niso_sts/title_compl.rb
128
+ - lib/sts/niso_sts/title_full.rb
124
129
  - lib/sts/niso_sts/title_wrap.rb
125
130
  - lib/sts/tbx_iso_tml.rb
126
131
  - lib/sts/tbx_iso_tml/bold.rb
127
132
  - lib/sts/tbx_iso_tml/caption.rb
128
133
  - lib/sts/tbx_iso_tml/col.rb
134
+ - lib/sts/tbx_iso_tml/cross_reference.rb
129
135
  - lib/sts/tbx_iso_tml/definition.rb
130
136
  - lib/sts/tbx_iso_tml/entailed_term.rb
131
137
  - lib/sts/tbx_iso_tml/example.rb
@@ -149,13 +155,14 @@ files:
149
155
  - lib/sts/tbx_iso_tml/msup.rb
150
156
  - lib/sts/tbx_iso_tml/munder.rb
151
157
  - lib/sts/tbx_iso_tml/munderover.rb
152
- - lib/sts/tbx_iso_tml/named_content.rb
153
158
  - lib/sts/tbx_iso_tml/normative_authorization.rb
154
159
  - lib/sts/tbx_iso_tml/note.rb
155
160
  - lib/sts/tbx_iso_tml/part_of_speech.rb
161
+ - lib/sts/tbx_iso_tml/pronunciation.rb
156
162
  - lib/sts/tbx_iso_tml/see.rb
157
163
  - lib/sts/tbx_iso_tml/semantics.rb
158
164
  - lib/sts/tbx_iso_tml/source.rb
165
+ - lib/sts/tbx_iso_tml/subject_field.rb
159
166
  - lib/sts/tbx_iso_tml/sup.rb
160
167
  - lib/sts/tbx_iso_tml/table.rb
161
168
  - lib/sts/tbx_iso_tml/table_break.rb
@@ -182,7 +189,7 @@ metadata:
182
189
  source_code_uri: https://github.com/metanorma/sts-ruby
183
190
  bug_tracker_uri: https://github.com/metanorma/sts-ruby/issues
184
191
  rubygems_mfa_required: 'true'
185
- post_install_message:
192
+ post_install_message:
186
193
  rdoc_options: []
187
194
  require_paths:
188
195
  - lib
@@ -197,8 +204,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
204
  - !ruby/object:Gem::Version
198
205
  version: '0'
199
206
  requirements: []
200
- rubygems_version: 3.3.27
201
- signing_key:
207
+ rubygems_version: 3.5.22
208
+ signing_key:
202
209
  specification_version: 4
203
210
  summary: Library to work with NISO STS and ISOSTS.
204
211
  test_files: []