sts 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-master-ci-rubocop-yml +471 -0
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +27 -0
- data/lib/sts/niso_sts/adoption.rb +4 -4
- data/lib/sts/niso_sts/app.rb +9 -9
- data/lib/sts/niso_sts/app_group.rb +2 -2
- data/lib/sts/niso_sts/back.rb +2 -2
- data/lib/sts/niso_sts/body.rb +2 -2
- data/lib/sts/niso_sts/caption.rb +3 -3
- data/lib/sts/niso_sts/custom_meta.rb +5 -5
- data/lib/sts/niso_sts/custom_meta_group.rb +2 -2
- data/lib/sts/niso_sts/def.rb +2 -2
- data/lib/sts/niso_sts/def_item.rb +3 -3
- data/lib/sts/niso_sts/def_list.rb +5 -5
- data/lib/sts/niso_sts/display_formula.rb +4 -6
- data/lib/sts/niso_sts/document_identification.rb +8 -8
- data/lib/sts/niso_sts/ext_link.rb +5 -5
- data/lib/sts/niso_sts/figure.rb +7 -7
- data/lib/sts/niso_sts/fn.rb +3 -3
- data/lib/sts/niso_sts/fn_group.rb +2 -2
- data/lib/sts/niso_sts/front.rb +2 -2
- data/lib/sts/niso_sts/graphic.rb +3 -3
- data/lib/sts/niso_sts/inline_formula.rb +2 -4
- data/lib/sts/niso_sts/label.rb +3 -3
- data/lib/sts/niso_sts/list.rb +4 -6
- data/lib/sts/niso_sts/list_item.rb +5 -5
- data/lib/sts/niso_sts/meta_date.rb +4 -4
- data/lib/sts/niso_sts/meta_note.rb +7 -6
- data/lib/sts/niso_sts/metadata_iso.rb +10 -10
- data/lib/sts/niso_sts/metadata_std.rb +12 -12
- data/lib/sts/niso_sts/mixed_citation.rb +8 -8
- data/lib/sts/niso_sts/non_normative_example.rb +6 -6
- data/lib/sts/niso_sts/non_normative_note.rb +6 -6
- data/lib/sts/niso_sts/object_id.rb +4 -4
- data/lib/sts/niso_sts/page_count.rb +3 -3
- data/lib/sts/niso_sts/paragraph.rb +12 -12
- data/lib/sts/niso_sts/permissions.rb +5 -5
- data/lib/sts/niso_sts/reference.rb +4 -6
- data/lib/sts/niso_sts/reference_list.rb +6 -8
- data/lib/sts/niso_sts/reference_standard.rb +7 -7
- data/lib/sts/niso_sts/section.rb +9 -9
- data/lib/sts/niso_sts/section_array.rb +3 -3
- data/lib/sts/niso_sts/standard.rb +6 -8
- data/lib/sts/niso_sts/standard_identification.rb +9 -9
- data/lib/sts/niso_sts/standard_ref.rb +4 -4
- data/lib/sts/niso_sts/std_cross_reference.rb +3 -3
- data/lib/sts/niso_sts/std_id.rb +6 -6
- data/lib/sts/niso_sts/std_id_group.rb +2 -2
- data/lib/sts/niso_sts/term_display.rb +2 -2
- data/lib/sts/niso_sts/term_section.rb +6 -6
- data/lib/sts/niso_sts/title.rb +4 -4
- data/lib/sts/niso_sts/title_wrap.rb +11 -9
- data/lib/sts/tbx_iso_tml/bold.rb +3 -3
- data/lib/sts/tbx_iso_tml/caption.rb +3 -3
- data/lib/sts/tbx_iso_tml/col.rb +6 -6
- data/lib/sts/tbx_iso_tml/definition.rb +5 -7
- data/lib/sts/tbx_iso_tml/entailed_term.rb +6 -6
- data/lib/sts/tbx_iso_tml/example.rb +6 -8
- data/lib/sts/tbx_iso_tml/external_graphic.rb +3 -3
- data/lib/sts/tbx_iso_tml/external_source.rb +4 -4
- data/lib/sts/tbx_iso_tml/fn.rb +3 -5
- data/lib/sts/tbx_iso_tml/fn_group.rb +2 -2
- data/lib/sts/tbx_iso_tml/geographical_usage.rb +3 -3
- data/lib/sts/tbx_iso_tml/grammatical_gender.rb +4 -4
- data/lib/sts/tbx_iso_tml/grammatical_number.rb +4 -4
- data/lib/sts/tbx_iso_tml/italic.rb +5 -5
- data/lib/sts/tbx_iso_tml/lang_set.rb +9 -9
- data/lib/sts/tbx_iso_tml/math.rb +12 -12
- data/lib/sts/tbx_iso_tml/mfenced.rb +10 -10
- data/lib/sts/tbx_iso_tml/mfrac.rb +8 -8
- data/lib/sts/tbx_iso_tml/mi.rb +3 -3
- data/lib/sts/tbx_iso_tml/mrow.rb +11 -11
- data/lib/sts/tbx_iso_tml/mspace.rb +3 -3
- data/lib/sts/tbx_iso_tml/mstyle.rb +8 -8
- data/lib/sts/tbx_iso_tml/msub.rb +7 -7
- data/lib/sts/tbx_iso_tml/msup.rb +5 -5
- data/lib/sts/tbx_iso_tml/munder.rb +3 -3
- data/lib/sts/tbx_iso_tml/munderover.rb +5 -5
- data/lib/sts/tbx_iso_tml/named_content.rb +4 -4
- data/lib/sts/tbx_iso_tml/normative_authorization.rb +4 -4
- data/lib/sts/tbx_iso_tml/note.rb +8 -8
- data/lib/sts/tbx_iso_tml/part_of_speech.rb +4 -4
- data/lib/sts/tbx_iso_tml/see.rb +4 -4
- data/lib/sts/tbx_iso_tml/semantics.rb +6 -5
- data/lib/sts/tbx_iso_tml/source.rb +4 -6
- data/lib/sts/tbx_iso_tml/sup.rb +4 -6
- data/lib/sts/tbx_iso_tml/table.rb +6 -6
- data/lib/sts/tbx_iso_tml/table_break.rb +10 -0
- data/lib/sts/tbx_iso_tml/table_wrap.rb +6 -6
- data/lib/sts/tbx_iso_tml/table_wrap_foot.rb +2 -2
- data/lib/sts/tbx_iso_tml/tbody.rb +5 -5
- data/lib/sts/tbx_iso_tml/td.rb +17 -15
- data/lib/sts/tbx_iso_tml/term.rb +10 -10
- data/lib/sts/tbx_iso_tml/term_entry.rb +4 -4
- data/lib/sts/tbx_iso_tml/term_information_group.rb +6 -6
- data/lib/sts/tbx_iso_tml/term_type.rb +4 -12
- data/lib/sts/tbx_iso_tml/th.rb +17 -16
- data/lib/sts/tbx_iso_tml/thead.rb +6 -6
- data/lib/sts/tbx_iso_tml/tr.rb +2 -2
- data/lib/sts/tbx_iso_tml/xref.rb +5 -7
- data/lib/sts/version.rb +1 -1
- data/lib/sts.rb +6 -4
- data/sts.gemspec +4 -1
- metadata +22 -5
- data/lib/sts/mapper.rb +0 -442
@@ -1,17 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "table"
|
6
6
|
require_relative "table_wrap_foot"
|
7
7
|
|
8
8
|
module Sts
|
9
9
|
module TbxIsoTml
|
10
|
-
class TableWrap <
|
11
|
-
attribute :id,
|
12
|
-
attribute :orientation,
|
13
|
-
attribute :position,
|
14
|
-
attribute :label,
|
10
|
+
class TableWrap < Lutaml::Model::Serializable
|
11
|
+
attribute :id, Lutaml::Model::Type::String
|
12
|
+
attribute :orientation, Lutaml::Model::Type::String
|
13
|
+
attribute :position, Lutaml::Model::Type::String
|
14
|
+
attribute :label, Lutaml::Model::Type::String
|
15
15
|
attribute :table, Sts::TbxIsoTml::Table, collection: true
|
16
16
|
attribute :table_wrap_foot, Sts::TbxIsoTml::TableWrapFoot
|
17
17
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "fn_group"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module TbxIsoTml
|
9
|
-
class TableWrapFoot <
|
9
|
+
class TableWrapFoot < Lutaml::Model::Serializable
|
10
10
|
attribute :fn_group, Sts::TbxIsoTml::FnGroup
|
11
11
|
|
12
12
|
xml do
|
@@ -1,16 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "tr"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module TbxIsoTml
|
9
|
-
class Tbody <
|
9
|
+
class Tbody < Lutaml::Model::Serializable
|
10
10
|
attribute :tr, Sts::TbxIsoTml::Tr, collection: true
|
11
|
-
attribute :char,
|
12
|
-
attribute :charoff,
|
13
|
-
attribute :valign,
|
11
|
+
attribute :char, Lutaml::Model::Type::String
|
12
|
+
attribute :charoff, Lutaml::Model::Type::String
|
13
|
+
attribute :valign, Lutaml::Model::Type::String
|
14
14
|
|
15
15
|
xml do
|
16
16
|
root "tbody"
|
data/lib/sts/tbx_iso_tml/td.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "italic"
|
6
6
|
require_relative "xref"
|
@@ -14,30 +14,32 @@ require_relative "../niso_sts/paragraph"
|
|
14
14
|
|
15
15
|
module Sts
|
16
16
|
module TbxIsoTml
|
17
|
-
class Td <
|
18
|
-
attribute :content,
|
19
|
-
attribute :align,
|
20
|
-
attribute :scope,
|
21
|
-
attribute :style,
|
17
|
+
class Td < Lutaml::Model::Serializable
|
18
|
+
attribute :content, Lutaml::Model::Type::String
|
19
|
+
attribute :align, Lutaml::Model::Type::String
|
20
|
+
attribute :scope, Lutaml::Model::Type::String
|
21
|
+
attribute :style, Lutaml::Model::Type::String
|
22
22
|
attribute :bold, Bold
|
23
23
|
attribute :italic, Italic
|
24
|
-
attribute :content_type,
|
25
|
-
attribute :char,
|
26
|
-
attribute :charoff,
|
27
|
-
attribute :colspan,
|
28
|
-
attribute :rowspan,
|
29
|
-
attribute :valign,
|
24
|
+
attribute :content_type, Lutaml::Model::Type::String
|
25
|
+
attribute :char, Lutaml::Model::Type::String
|
26
|
+
attribute :charoff, Lutaml::Model::Type::String
|
27
|
+
attribute :colspan, Lutaml::Model::Type::String
|
28
|
+
attribute :rowspan, Lutaml::Model::Type::String
|
29
|
+
attribute :valign, Lutaml::Model::Type::String
|
30
30
|
attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
|
31
|
-
attribute :non_normative_note,
|
31
|
+
attribute :non_normative_note,
|
32
|
+
Sts::NisoSts::NonNormativeNote,
|
33
|
+
collection: true
|
32
34
|
attribute :list, Sts::NisoSts::List
|
33
|
-
attribute :xref, Xref
|
35
|
+
attribute :xref, Xref, collection: true
|
34
36
|
attribute :std, Sts::NisoSts::ReferenceStandard
|
35
37
|
attribute :graphic, Sts::NisoSts::Graphic
|
36
38
|
attribute :def_list, Sts::NisoSts::DefList
|
37
39
|
attribute :paragraph, Sts::NisoSts::Paragraph
|
38
40
|
|
39
41
|
xml do
|
40
|
-
root "
|
42
|
+
root "td", mixed: true
|
41
43
|
|
42
44
|
map_content to: :content
|
43
45
|
|
data/lib/sts/tbx_iso_tml/term.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "italic"
|
6
6
|
require_relative "math"
|
@@ -11,21 +11,21 @@ require_relative "../niso_sts/inline_formula"
|
|
11
11
|
|
12
12
|
module Sts
|
13
13
|
module TbxIsoTml
|
14
|
-
class Term <
|
15
|
-
attribute :id,
|
16
|
-
attribute :script,
|
17
|
-
attribute :value,
|
14
|
+
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
18
|
attribute :italic, Sts::TbxIsoTml::Italic
|
19
|
-
attribute :bold,
|
20
|
-
attribute :sub,
|
19
|
+
attribute :bold, Lutaml::Model::Type::String
|
20
|
+
attribute :sub, Lutaml::Model::Type::String
|
21
21
|
attribute :math, Sts::TbxIsoTml::Math
|
22
22
|
attribute :xref, Sts::TbxIsoTml::Xref
|
23
|
-
attribute :inline_formula, Sts::NisoSts::InlineFormula
|
23
|
+
attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
|
24
24
|
attribute :named_content, Sts::TbxIsoTml::NamedContent
|
25
25
|
|
26
26
|
xml do
|
27
|
-
root "term"
|
28
|
-
namespace "urn:iso:std:iso:30042:ed-1", "tbx"
|
27
|
+
root "term", mixed: true
|
28
|
+
# namespace "urn:iso:std:iso:30042:ed-1", "tbx"
|
29
29
|
|
30
30
|
map_attribute "id", to: :id
|
31
31
|
map_attribute "script", to: :script
|
@@ -1,19 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "lang_set"
|
6
6
|
require_relative "external_graphic"
|
7
7
|
|
8
8
|
module Sts
|
9
9
|
module TbxIsoTml
|
10
|
-
class TermEntry <
|
11
|
-
attribute :id,
|
10
|
+
class TermEntry < Lutaml::Model::Serializable
|
11
|
+
attribute :id, Lutaml::Model::Type::String
|
12
12
|
attribute :lang_set, LangSet, collection: true
|
13
13
|
attribute :x_graphic, ExternalGraphic, collection: true
|
14
14
|
|
15
15
|
xml do
|
16
|
-
root "termEntry"
|
16
|
+
root "termEntry", mixed: true
|
17
17
|
namespace "urn:iso:std:iso:30042:ed-1", "tbx"
|
18
18
|
|
19
19
|
map_attribute "id", to: :id
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "term"
|
6
6
|
require_relative "part_of_speech"
|
@@ -12,20 +12,20 @@ require_relative "term_type"
|
|
12
12
|
|
13
13
|
module Sts
|
14
14
|
module TbxIsoTml
|
15
|
-
class TermInformationGroup <
|
15
|
+
class TermInformationGroup < Lutaml::Model::Serializable
|
16
16
|
attribute :term, Term
|
17
17
|
attribute :pos, PartOfSpeech
|
18
|
-
attribute :id,
|
19
|
-
attribute :usage_note,
|
18
|
+
attribute :id, Lutaml::Model::Type::String
|
19
|
+
attribute :usage_note, Lutaml::Model::Type::String
|
20
20
|
attribute :normative_authorization, NormativeAuthorization
|
21
21
|
attribute :geographical_usage, GeographicalUsage
|
22
22
|
attribute :grammatical_gender, GrammaticalGender
|
23
23
|
attribute :grammatical_number, GrammaticalNumber
|
24
|
-
attribute :pronunciation,
|
24
|
+
attribute :pronunciation, Lutaml::Model::Type::String
|
25
25
|
attribute :term_type, TermType
|
26
26
|
|
27
27
|
xml do
|
28
|
-
root "tig"
|
28
|
+
root "tig", mixed: true
|
29
29
|
namespace "urn:iso:std:iso:30042:ed-1", "tbx"
|
30
30
|
|
31
31
|
map_attribute "id", to: :id
|
@@ -1,20 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
module Sts
|
6
6
|
module TbxIsoTml
|
7
|
-
class TermType <
|
8
|
-
|
9
|
-
|
10
|
-
# - abbreviation
|
11
|
-
# - equation
|
12
|
-
# - formula
|
13
|
-
# - fullForm
|
14
|
-
# - symbol
|
15
|
-
# - variant
|
16
|
-
|
17
|
-
attribute :value, Shale::Type::String
|
7
|
+
class TermType < Lutaml::Model::Serializable
|
8
|
+
attribute :value, Lutaml::Model::Type::String,
|
9
|
+
values: %w[acronym abbreviation equation formula fullForm symbol variant]
|
18
10
|
|
19
11
|
xml do
|
20
12
|
root "termType"
|
data/lib/sts/tbx_iso_tml/th.rb
CHANGED
@@ -1,27 +1,28 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
|
-
require_relative "italic"
|
6
5
|
require_relative "bold"
|
6
|
+
require_relative "italic"
|
7
|
+
require_relative "table_break"
|
7
8
|
require_relative "xref"
|
8
9
|
require_relative "../niso_sts/reference_standard"
|
9
10
|
require_relative "../niso_sts/inline_formula"
|
10
11
|
|
11
12
|
module Sts
|
12
13
|
module TbxIsoTml
|
13
|
-
class Th <
|
14
|
-
attribute :content,
|
15
|
-
attribute :colspan,
|
16
|
-
attribute :align,
|
17
|
-
attribute :scope,
|
18
|
-
attribute :style,
|
19
|
-
attribute :rowspan,
|
20
|
-
attribute :break,
|
21
|
-
attribute :content_type,
|
22
|
-
attribute :char,
|
23
|
-
attribute :charoff,
|
24
|
-
attribute :valign,
|
14
|
+
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
|
25
26
|
attribute :italic, Italic
|
26
27
|
attribute :bold, Bold
|
27
28
|
attribute :std, Sts::NisoSts::ReferenceStandard
|
@@ -29,7 +30,7 @@ module Sts
|
|
29
30
|
attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
|
30
31
|
|
31
32
|
xml do
|
32
|
-
root "th"
|
33
|
+
root "th", mixed: true
|
33
34
|
|
34
35
|
map_content to: :content
|
35
36
|
map_attribute "colspan", to: :colspan
|
@@ -42,7 +43,7 @@ module Sts
|
|
42
43
|
map_attribute "charoff", to: :charoff
|
43
44
|
map_attribute "valign", to: :valign
|
44
45
|
|
45
|
-
map_element "break", to: :break
|
46
|
+
map_element "break", to: :break
|
46
47
|
map_element "italic", to: :italic
|
47
48
|
map_element "bold", to: :bold
|
48
49
|
map_element "std", to: :std
|
@@ -1,19 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "tr"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module TbxIsoTml
|
9
|
-
class Thead <
|
9
|
+
class Thead < Lutaml::Model::Serializable
|
10
10
|
attribute :tr, Sts::TbxIsoTml::Tr, collection: true
|
11
|
-
attribute :char,
|
12
|
-
attribute :charoff,
|
13
|
-
attribute :valign,
|
11
|
+
attribute :char, Lutaml::Model::Type::String
|
12
|
+
attribute :charoff, Lutaml::Model::Type::String
|
13
|
+
attribute :valign, Lutaml::Model::Type::String
|
14
14
|
|
15
15
|
xml do
|
16
|
-
root "
|
16
|
+
root "thead"
|
17
17
|
|
18
18
|
map_attribute "char", to: :char
|
19
19
|
map_attribute "charoff", to: :charoff
|
data/lib/sts/tbx_iso_tml/tr.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "th"
|
6
6
|
require_relative "td"
|
7
7
|
|
8
8
|
module Sts
|
9
9
|
module TbxIsoTml
|
10
|
-
class Tr <
|
10
|
+
class Tr < Lutaml::Model::Serializable
|
11
11
|
attribute :th, Sts::TbxIsoTml::Th, collection: true
|
12
12
|
attribute :td, Sts::TbxIsoTml::Td, collection: true
|
13
13
|
|
data/lib/sts/tbx_iso_tml/xref.rb
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
4
|
-
|
5
|
-
require_relative "../mapper"
|
3
|
+
require "lutaml/model"
|
6
4
|
require_relative "sup"
|
7
5
|
|
8
6
|
module Sts
|
9
7
|
module TbxIsoTml
|
10
|
-
class Xref <
|
11
|
-
attribute :ref_type,
|
12
|
-
attribute :rid,
|
13
|
-
attribute :value,
|
8
|
+
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
|
14
12
|
attribute :sup, Sup
|
15
13
|
|
16
14
|
xml do
|
data/lib/sts/version.rb
CHANGED
data/lib/sts.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "sts/version"
|
4
|
-
require "
|
5
|
-
require "
|
4
|
+
require "lutaml/model"
|
5
|
+
require "lutaml/model/xml_adapter/nokogiri_adapter"
|
6
6
|
|
7
7
|
module Sts
|
8
|
-
|
8
|
+
Lutaml::Model::Config.configure do |config|
|
9
|
+
config.xml_adapter = Lutaml::Model::XmlAdapter::NokogiriAdapter
|
10
|
+
end
|
9
11
|
|
10
12
|
class Error < StandardError; end
|
13
|
+
|
11
14
|
# Your code goes here...
|
12
15
|
end
|
13
16
|
|
14
17
|
require_relative "sts/tbx_iso_tml"
|
15
|
-
require_relative "sts/mapper"
|
16
18
|
require_relative "sts/niso_sts"
|
data/sts.gemspec
CHANGED
@@ -29,7 +29,10 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
|
+
spec.add_dependency "bigdecimal"
|
33
|
+
spec.add_dependency "lutaml-model", "~> 0.3.0"
|
32
34
|
spec.add_dependency "nokogiri"
|
33
|
-
|
35
|
+
|
34
36
|
# spec.add_dependency "thor"
|
37
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
35
38
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bigdecimal
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,21 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: lutaml-model
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.3.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.3.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: nokogiri
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - ">="
|
@@ -49,13 +63,14 @@ files:
|
|
49
63
|
- ".github/workflows/release.yml"
|
50
64
|
- ".gitignore"
|
51
65
|
- ".rspec"
|
66
|
+
- ".rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-master-ci-rubocop-yml"
|
52
67
|
- ".rubocop.yml"
|
68
|
+
- ".rubocop_todo.yml"
|
53
69
|
- CODE_OF_CONDUCT.md
|
54
70
|
- Gemfile
|
55
71
|
- README.adoc
|
56
72
|
- Rakefile
|
57
73
|
- lib/sts.rb
|
58
|
-
- lib/sts/mapper.rb
|
59
74
|
- lib/sts/niso_sts.rb
|
60
75
|
- lib/sts/niso_sts/adoption.rb
|
61
76
|
- lib/sts/niso_sts/adoption_front.rb
|
@@ -143,6 +158,7 @@ files:
|
|
143
158
|
- lib/sts/tbx_iso_tml/source.rb
|
144
159
|
- lib/sts/tbx_iso_tml/sup.rb
|
145
160
|
- lib/sts/tbx_iso_tml/table.rb
|
161
|
+
- lib/sts/tbx_iso_tml/table_break.rb
|
146
162
|
- lib/sts/tbx_iso_tml/table_wrap.rb
|
147
163
|
- lib/sts/tbx_iso_tml/table_wrap_foot.rb
|
148
164
|
- lib/sts/tbx_iso_tml/tbody.rb
|
@@ -165,6 +181,7 @@ metadata:
|
|
165
181
|
homepage_uri: https://github.com/metanorma/sts-ruby
|
166
182
|
source_code_uri: https://github.com/metanorma/sts-ruby
|
167
183
|
bug_tracker_uri: https://github.com/metanorma/sts-ruby/issues
|
184
|
+
rubygems_mfa_required: 'true'
|
168
185
|
post_install_message:
|
169
186
|
rdoc_options: []
|
170
187
|
require_paths:
|