rfcxml 0.2.0 → 0.3.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.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +30 -8
- data/Gemfile +6 -4
- data/README.adoc +166 -18
- data/lib/rfcxml/v3/abstract.rb +0 -5
- data/lib/rfcxml/v3/address.rb +0 -6
- data/lib/rfcxml/v3/annotation.rb +0 -14
- data/lib/rfcxml/v3/artset.rb +0 -2
- data/lib/rfcxml/v3/artwork.rb +3 -3
- data/lib/rfcxml/v3/aside.rb +0 -11
- data/lib/rfcxml/v3/author.rb +0 -3
- data/lib/rfcxml/v3/back.rb +0 -4
- data/lib/rfcxml/v3/blockquote.rb +5 -46
- data/lib/rfcxml/v3/boilerplate.rb +0 -2
- data/lib/rfcxml/v3/c.rb +0 -6
- data/lib/rfcxml/v3/contact.rb +0 -3
- data/lib/rfcxml/v3/cref.rb +0 -10
- data/lib/rfcxml/v3/dd.rb +5 -47
- data/lib/rfcxml/v3/dl.rb +0 -6
- data/lib/rfcxml/v3/dt.rb +5 -25
- data/lib/rfcxml/v3/figure.rb +5 -15
- data/lib/rfcxml/v3/front.rb +0 -12
- data/lib/rfcxml/v3/li.rb +5 -50
- data/lib/rfcxml/v3/list.rb +1 -3
- data/lib/rfcxml/v3/middle.rb +0 -2
- data/lib/rfcxml/v3/name.rb +0 -13
- data/lib/rfcxml/v3/note.rb +0 -6
- data/lib/rfcxml/v3/ol.rb +0 -2
- data/lib/rfcxml/v3/postal.rb +0 -11
- data/lib/rfcxml/v3/postamble.rb +0 -6
- data/lib/rfcxml/v3/preamble.rb +0 -14
- data/lib/rfcxml/v3/refcontent.rb +0 -3
- data/lib/rfcxml/v3/reference.rb +0 -6
- data/lib/rfcxml/v3/referencegroup.rb +0 -2
- data/lib/rfcxml/v3/references.rb +0 -4
- data/lib/rfcxml/v3/rfc.rb +6 -6
- data/lib/rfcxml/v3/section.rb +0 -17
- data/lib/rfcxml/v3/sourcecode.rb +2 -2
- data/lib/rfcxml/v3/strong.rb +4 -7
- data/lib/rfcxml/v3/sub.rb +4 -14
- data/lib/rfcxml/v3/sup.rb +0 -2
- data/lib/rfcxml/v3/table.rb +0 -6
- data/lib/rfcxml/v3/tbody.rb +0 -2
- data/lib/rfcxml/v3/td.rb +5 -43
- data/lib/rfcxml/v3/text.rb +0 -19
- data/lib/rfcxml/v3/texttable.rb +0 -6
- data/lib/rfcxml/v3/tfoot.rb +0 -2
- data/lib/rfcxml/v3/th.rb +0 -2
- data/lib/rfcxml/v3/thead.rb +0 -2
- data/lib/rfcxml/v3/title.rb +0 -2
- data/lib/rfcxml/v3/toc.rb +0 -2
- data/lib/rfcxml/v3/tr.rb +0 -3
- data/lib/rfcxml/v3/tt.rb +4 -18
- data/lib/rfcxml/v3/ttcol.rb +0 -5
- data/lib/rfcxml/v3/ul.rb +0 -2
- data/lib/rfcxml/v3/xref.rb +2 -3
- data/lib/rfcxml/v3/xref_text.rb +7 -16
- data/lib/rfcxml/v3.rb +100 -2
- data/lib/rfcxml/version.rb +1 -1
- data/lib/rfcxml.rb +2 -4
- data/rfcxml.gemspec +4 -17
- metadata +10 -94
- data/lib/rfcxml/v3/em.rb +0 -14
data/lib/rfcxml/v3/figure.rb
CHANGED
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "artset"
|
|
6
|
-
require_relative "artwork"
|
|
7
|
-
require_relative "iref"
|
|
8
|
-
require_relative "name"
|
|
9
|
-
require_relative "postamble"
|
|
10
|
-
require_relative "preamble"
|
|
11
|
-
require_relative "sourcecode"
|
|
12
|
-
|
|
13
5
|
module Rfcxml
|
|
14
6
|
module V3
|
|
15
7
|
class Figure < Lutaml::Model::Serializable
|
|
@@ -44,13 +36,11 @@ module Rfcxml
|
|
|
44
36
|
map_attribute "alt", to: :alt
|
|
45
37
|
map_attribute "width", to: :width
|
|
46
38
|
map_attribute "height", to: :height
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
map_element "sourcecode", to: :sourcecode
|
|
53
|
-
map_element "postamble", to: :postamble
|
|
39
|
+
|
|
40
|
+
%w[name iref preamble artset artwork sourcecode
|
|
41
|
+
postamble].each do |element|
|
|
42
|
+
map_element element, to: element.to_sym
|
|
43
|
+
end
|
|
54
44
|
end
|
|
55
45
|
end
|
|
56
46
|
end
|
data/lib/rfcxml/v3/front.rb
CHANGED
|
@@ -2,18 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "abstract"
|
|
6
|
-
require_relative "area"
|
|
7
|
-
require_relative "author"
|
|
8
|
-
require_relative "boilerplate"
|
|
9
|
-
require_relative "date"
|
|
10
|
-
require_relative "keyword"
|
|
11
|
-
require_relative "note"
|
|
12
|
-
require_relative "series_info"
|
|
13
|
-
require_relative "title"
|
|
14
|
-
require_relative "toc"
|
|
15
|
-
require_relative "workgroup"
|
|
16
|
-
|
|
17
5
|
module Rfcxml
|
|
18
6
|
module V3
|
|
19
7
|
class Front < Lutaml::Model::Serializable
|
data/lib/rfcxml/v3/li.rb
CHANGED
|
@@ -2,35 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "artset"
|
|
6
|
-
require_relative "artwork"
|
|
7
|
-
require_relative "bcp14"
|
|
8
|
-
require_relative "blockquote"
|
|
9
|
-
require_relative "br"
|
|
10
|
-
require_relative "cref"
|
|
11
|
-
require_relative "dl"
|
|
12
|
-
require_relative "em"
|
|
13
|
-
require_relative "eref"
|
|
14
|
-
require_relative "figure"
|
|
15
|
-
require_relative "iref"
|
|
16
|
-
# require_relative "ol"
|
|
17
|
-
require_relative "relref"
|
|
18
|
-
require_relative "sourcecode"
|
|
19
|
-
require_relative "strong"
|
|
20
|
-
require_relative "sub"
|
|
21
|
-
require_relative "sup"
|
|
22
|
-
require_relative "text"
|
|
23
|
-
require_relative "table"
|
|
24
|
-
require_relative "tt"
|
|
25
|
-
require_relative "u"
|
|
26
|
-
# require_relative "ul"
|
|
27
|
-
require_relative "xref"
|
|
28
|
-
|
|
29
5
|
module Rfcxml
|
|
30
6
|
module V3
|
|
31
|
-
class Ul < Lutaml::Model::Serializable; end
|
|
32
|
-
class Ol < Lutaml::Model::Serializable; end
|
|
33
|
-
|
|
34
7
|
class Li < Lutaml::Model::Serializable
|
|
35
8
|
attribute :content, :string
|
|
36
9
|
attribute :anchor, :string
|
|
@@ -68,29 +41,11 @@ module Rfcxml
|
|
|
68
41
|
map_attribute "anchor", to: :anchor
|
|
69
42
|
map_attribute "derivedCounter", to: :derived_counter
|
|
70
43
|
map_attribute "pn", to: :pn
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
map_element "ol", to: :ol
|
|
77
|
-
map_element "sourcecode", to: :sourcecode
|
|
78
|
-
map_element "t", to: :t
|
|
79
|
-
map_element "table", to: :table
|
|
80
|
-
map_element "ul", to: :ul
|
|
81
|
-
map_element "bcp14", to: :bcp14
|
|
82
|
-
map_element "br", to: :br
|
|
83
|
-
map_element "cref", to: :cref
|
|
84
|
-
map_element "em", to: :em
|
|
85
|
-
map_element "eref", to: :eref
|
|
86
|
-
map_element "iref", to: :iref
|
|
87
|
-
map_element "relref", to: :relref
|
|
88
|
-
map_element "strong", to: :strong
|
|
89
|
-
map_element "sub", to: :sub
|
|
90
|
-
map_element "sup", to: :sup
|
|
91
|
-
map_element "tt", to: :tt
|
|
92
|
-
map_element "u", to: :u
|
|
93
|
-
map_element "xref", to: :xref
|
|
44
|
+
|
|
45
|
+
%w[artset artwork blockquote dl figure ol sourcecode t table ul bcp14
|
|
46
|
+
br cref em eref iref relref strong sub sup tt u xref].each do |element|
|
|
47
|
+
map_element element, to: element.to_sym
|
|
48
|
+
end
|
|
94
49
|
end
|
|
95
50
|
end
|
|
96
51
|
end
|
data/lib/rfcxml/v3/list.rb
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "text"
|
|
6
|
-
|
|
7
5
|
module Rfcxml
|
|
8
6
|
module V3
|
|
9
7
|
class List < Lutaml::Model::Serializable
|
|
@@ -11,7 +9,7 @@ module Rfcxml
|
|
|
11
9
|
attribute :hang_indent, :string
|
|
12
10
|
attribute :counter, :string
|
|
13
11
|
attribute :pn, :string
|
|
14
|
-
attribute :text, Text, collection: true
|
|
12
|
+
attribute :text, "Rfcxml::V3::Text", collection: true
|
|
15
13
|
|
|
16
14
|
xml do
|
|
17
15
|
root "list"
|
data/lib/rfcxml/v3/middle.rb
CHANGED
data/lib/rfcxml/v3/name.rb
CHANGED
|
@@ -2,19 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "bcp14"
|
|
6
|
-
require_relative "br"
|
|
7
|
-
require_relative "cref"
|
|
8
|
-
require_relative "em"
|
|
9
|
-
require_relative "eref"
|
|
10
|
-
require_relative "iref"
|
|
11
|
-
require_relative "relref"
|
|
12
|
-
require_relative "strong"
|
|
13
|
-
require_relative "sub"
|
|
14
|
-
require_relative "sup"
|
|
15
|
-
require_relative "tt"
|
|
16
|
-
require_relative "xref"
|
|
17
|
-
|
|
18
5
|
module Rfcxml
|
|
19
6
|
module V3
|
|
20
7
|
class Name < Lutaml::Model::Serializable
|
data/lib/rfcxml/v3/note.rb
CHANGED
data/lib/rfcxml/v3/ol.rb
CHANGED
data/lib/rfcxml/v3/postal.rb
CHANGED
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "city"
|
|
6
|
-
require_relative "cityarea"
|
|
7
|
-
require_relative "code"
|
|
8
|
-
require_relative "country"
|
|
9
|
-
require_relative "extaddr"
|
|
10
|
-
require_relative "pobox"
|
|
11
|
-
require_relative "postal_line"
|
|
12
|
-
require_relative "region"
|
|
13
|
-
require_relative "sortingcode"
|
|
14
|
-
require_relative "street"
|
|
15
|
-
|
|
16
5
|
module Rfcxml
|
|
17
6
|
module V3
|
|
18
7
|
class Postal < Lutaml::Model::Serializable
|
data/lib/rfcxml/v3/postamble.rb
CHANGED
data/lib/rfcxml/v3/preamble.rb
CHANGED
|
@@ -2,20 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "bcp14"
|
|
6
|
-
require_relative "cref"
|
|
7
|
-
require_relative "em"
|
|
8
|
-
require_relative "eref"
|
|
9
|
-
require_relative "iref"
|
|
10
|
-
require_relative "relref"
|
|
11
|
-
require_relative "spanx"
|
|
12
|
-
require_relative "strong"
|
|
13
|
-
require_relative "sub"
|
|
14
|
-
require_relative "sup"
|
|
15
|
-
require_relative "tt"
|
|
16
|
-
require_relative "u"
|
|
17
|
-
require_relative "xref"
|
|
18
|
-
|
|
19
5
|
module Rfcxml
|
|
20
6
|
module V3
|
|
21
7
|
class Preamble < Lutaml::Model::Serializable
|
data/lib/rfcxml/v3/refcontent.rb
CHANGED
data/lib/rfcxml/v3/reference.rb
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "annotation"
|
|
6
|
-
require_relative "format"
|
|
7
|
-
require_relative "front"
|
|
8
|
-
require_relative "refcontent"
|
|
9
|
-
require_relative "series_info"
|
|
10
|
-
|
|
11
5
|
module Rfcxml
|
|
12
6
|
module V3
|
|
13
7
|
class Reference < Lutaml::Model::Serializable
|
data/lib/rfcxml/v3/references.rb
CHANGED
data/lib/rfcxml/v3/rfc.rb
CHANGED
|
@@ -18,7 +18,7 @@ module Rfcxml
|
|
|
18
18
|
attribute :consensus, :string, default: -> { "false" }
|
|
19
19
|
attribute :series_no, :string
|
|
20
20
|
attribute :ipr, :string
|
|
21
|
-
attribute :lang,
|
|
21
|
+
attribute :lang, Lutaml::Xml::W3c::XmlLangType
|
|
22
22
|
attribute :ipr_extract, :string
|
|
23
23
|
attribute :submission_type, :string, default: -> { "IETF" }
|
|
24
24
|
attribute :doc_name, :string
|
|
@@ -59,11 +59,11 @@ module Rfcxml
|
|
|
59
59
|
map_attribute "version", to: :version
|
|
60
60
|
map_attribute "scripts", to: :scripts
|
|
61
61
|
map_attribute "expiresDate", to: :expires_date
|
|
62
|
-
map_attribute "lang", to: :lang
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
map_attribute "lang", to: :lang
|
|
63
|
+
|
|
64
|
+
%w[link front middle back].each do |element|
|
|
65
|
+
map_element element, to: element.to_sym
|
|
66
|
+
end
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
end
|
data/lib/rfcxml/v3/section.rb
CHANGED
|
@@ -2,23 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "artset"
|
|
6
|
-
require_relative "artwork"
|
|
7
|
-
require_relative "aside"
|
|
8
|
-
require_relative "author"
|
|
9
|
-
require_relative "blockquote"
|
|
10
|
-
require_relative "contact"
|
|
11
|
-
require_relative "dl"
|
|
12
|
-
require_relative "figure"
|
|
13
|
-
require_relative "iref"
|
|
14
|
-
require_relative "name"
|
|
15
|
-
require_relative "ol"
|
|
16
|
-
require_relative "sourcecode"
|
|
17
|
-
require_relative "text"
|
|
18
|
-
require_relative "table"
|
|
19
|
-
require_relative "texttable"
|
|
20
|
-
require_relative "ul"
|
|
21
|
-
|
|
22
5
|
module Rfcxml
|
|
23
6
|
module V3
|
|
24
7
|
class Section < Lutaml::Model::Serializable
|
data/lib/rfcxml/v3/sourcecode.rb
CHANGED
|
@@ -20,8 +20,8 @@ module Rfcxml
|
|
|
20
20
|
map_content to: :content
|
|
21
21
|
map_attribute "anchor", to: :anchor
|
|
22
22
|
map_attribute "pn", to: :pn
|
|
23
|
-
map_attribute "name", to: :name
|
|
24
|
-
map_attribute "type", to: :type
|
|
23
|
+
map_attribute "name", to: :name, value_map: { to: { empty: :empty } }
|
|
24
|
+
map_attribute "type", to: :type, value_map: { to: { empty: :empty } }
|
|
25
25
|
map_attribute "markers", to: :markers
|
|
26
26
|
map_attribute "src", to: :src
|
|
27
27
|
map_attribute "originalSrc", to: :original_src
|
data/lib/rfcxml/v3/strong.rb
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
|
-
require_relative "br"
|
|
5
|
-
require_relative "sup"
|
|
6
|
-
|
|
7
4
|
module Rfcxml
|
|
8
5
|
module V3
|
|
9
6
|
class Strong < Lutaml::Model::Serializable
|
|
@@ -11,13 +8,13 @@ module Rfcxml
|
|
|
11
8
|
attribute :bcp14, Bcp14, collection: true
|
|
12
9
|
attribute :br, Br, collection: true
|
|
13
10
|
attribute :cref, Cref, collection: true
|
|
14
|
-
attribute :em, Em, collection: true
|
|
11
|
+
attribute :em, "Rfcxml::V3::Em", collection: true
|
|
15
12
|
attribute :eref, Eref, collection: true
|
|
16
13
|
attribute :iref, Iref, collection: true
|
|
17
14
|
attribute :relref, Relref, collection: true
|
|
18
|
-
attribute :sub, Sub, collection: true
|
|
19
|
-
attribute :sup, Sup, collection: true
|
|
20
|
-
attribute :tt, Tt, collection: true
|
|
15
|
+
attribute :sub, "Rfcxml::V3::Sub", collection: true
|
|
16
|
+
attribute :sup, "Rfcxml::V3::Sup", collection: true
|
|
17
|
+
attribute :tt, "Rfcxml::V3::Tt", collection: true
|
|
21
18
|
attribute :xref, Xref, collection: true
|
|
22
19
|
|
|
23
20
|
xml do
|
data/lib/rfcxml/v3/sub.rb
CHANGED
|
@@ -2,30 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "bcp14"
|
|
6
|
-
require_relative "cref"
|
|
7
|
-
require_relative "em"
|
|
8
|
-
require_relative "eref"
|
|
9
|
-
require_relative "iref"
|
|
10
|
-
require_relative "relref"
|
|
11
|
-
require_relative "strong"
|
|
12
|
-
require_relative "tt"
|
|
13
|
-
require_relative "xref"
|
|
14
|
-
|
|
15
5
|
module Rfcxml
|
|
16
6
|
module V3
|
|
17
7
|
class Sub < Lutaml::Model::Serializable
|
|
18
8
|
attribute :content, :string
|
|
19
9
|
attribute :bcp14, Bcp14, collection: true
|
|
20
10
|
attribute :cref, Cref, collection: true
|
|
21
|
-
attribute :em, Em, collection: true
|
|
11
|
+
attribute :em, "Rfcxml::V3::Em", collection: true
|
|
22
12
|
attribute :eref, Eref, collection: true
|
|
23
13
|
attribute :iref, Iref, collection: true
|
|
24
14
|
attribute :relref, Relref, collection: true
|
|
25
|
-
attribute :strong, Strong, collection: true
|
|
15
|
+
attribute :strong, "Rfcxml::V3::Strong", collection: true
|
|
26
16
|
attribute :sub, Sub, collection: true
|
|
27
|
-
attribute :sup, Sup, collection: true
|
|
28
|
-
attribute :tt, Tt, collection: true
|
|
17
|
+
attribute :sup, "Rfcxml::V3::Sup", collection: true
|
|
18
|
+
attribute :tt, "Rfcxml::V3::Tt", collection: true
|
|
29
19
|
attribute :xref, Xref, collection: true
|
|
30
20
|
|
|
31
21
|
xml do
|
data/lib/rfcxml/v3/sup.rb
CHANGED
data/lib/rfcxml/v3/table.rb
CHANGED
data/lib/rfcxml/v3/tbody.rb
CHANGED
data/lib/rfcxml/v3/td.rb
CHANGED
|
@@ -2,28 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "artset"
|
|
6
|
-
require_relative "artwork"
|
|
7
|
-
require_relative "bcp14"
|
|
8
|
-
require_relative "br"
|
|
9
|
-
require_relative "cref"
|
|
10
|
-
require_relative "dl"
|
|
11
|
-
require_relative "em"
|
|
12
|
-
require_relative "eref"
|
|
13
|
-
require_relative "figure"
|
|
14
|
-
require_relative "iref"
|
|
15
|
-
require_relative "ol"
|
|
16
|
-
require_relative "relref"
|
|
17
|
-
require_relative "sourcecode"
|
|
18
|
-
require_relative "strong"
|
|
19
|
-
require_relative "sub"
|
|
20
|
-
require_relative "sup"
|
|
21
|
-
require_relative "text"
|
|
22
|
-
require_relative "tt"
|
|
23
|
-
require_relative "u"
|
|
24
|
-
require_relative "ul"
|
|
25
|
-
require_relative "xref"
|
|
26
|
-
|
|
27
5
|
module Rfcxml
|
|
28
6
|
module V3
|
|
29
7
|
class Td < Lutaml::Model::Serializable
|
|
@@ -62,27 +40,11 @@ module Rfcxml
|
|
|
62
40
|
map_attribute "colspan", to: :colspan
|
|
63
41
|
map_attribute "rowspan", to: :rowspan
|
|
64
42
|
map_attribute "align", to: :align
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
map_element "sourcecode", to: :sourcecode
|
|
71
|
-
map_element "t", to: :t
|
|
72
|
-
map_element "ul", to: :ul
|
|
73
|
-
map_element "bcp14", to: :bcp14
|
|
74
|
-
map_element "br", to: :br
|
|
75
|
-
map_element "cref", to: :cref
|
|
76
|
-
map_element "em", to: :em
|
|
77
|
-
map_element "eref", to: :eref
|
|
78
|
-
map_element "iref", to: :iref
|
|
79
|
-
map_element "relref", to: :relref
|
|
80
|
-
map_element "strong", to: :strong
|
|
81
|
-
map_element "sub", to: :sub
|
|
82
|
-
map_element "sup", to: :sup
|
|
83
|
-
map_element "tt", to: :tt
|
|
84
|
-
map_element "u", to: :u
|
|
85
|
-
map_element "xref", to: :xref
|
|
43
|
+
|
|
44
|
+
%w[artset artwork dl figure ol sourcecode t ul bcp14 br cref em eref
|
|
45
|
+
iref relref strong sub sup tt u xref].each do |element|
|
|
46
|
+
map_element element, to: element.to_sym
|
|
47
|
+
end
|
|
86
48
|
end
|
|
87
49
|
end
|
|
88
50
|
end
|
data/lib/rfcxml/v3/text.rb
CHANGED
|
@@ -2,27 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "bcp14"
|
|
6
|
-
require_relative "br"
|
|
7
|
-
require_relative "contact"
|
|
8
|
-
require_relative "cref"
|
|
9
|
-
require_relative "em"
|
|
10
|
-
require_relative "eref"
|
|
11
|
-
require_relative "iref"
|
|
12
|
-
require_relative "relref"
|
|
13
|
-
require_relative "spanx"
|
|
14
|
-
require_relative "strong"
|
|
15
|
-
require_relative "sub"
|
|
16
|
-
require_relative "sup"
|
|
17
|
-
require_relative "tt"
|
|
18
|
-
require_relative "u"
|
|
19
|
-
require_relative "vspace"
|
|
20
|
-
require_relative "xref"
|
|
21
|
-
|
|
22
5
|
module Rfcxml
|
|
23
6
|
module V3
|
|
24
|
-
class List < Lutaml::Model::Serializable; end
|
|
25
|
-
|
|
26
7
|
class Text < Lutaml::Model::Serializable
|
|
27
8
|
attribute :content, :string
|
|
28
9
|
attribute :anchor, :string
|
data/lib/rfcxml/v3/texttable.rb
CHANGED
data/lib/rfcxml/v3/tfoot.rb
CHANGED
data/lib/rfcxml/v3/th.rb
CHANGED
data/lib/rfcxml/v3/thead.rb
CHANGED
data/lib/rfcxml/v3/title.rb
CHANGED
data/lib/rfcxml/v3/toc.rb
CHANGED
data/lib/rfcxml/v3/tr.rb
CHANGED
data/lib/rfcxml/v3/tt.rb
CHANGED
|
@@ -2,34 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
|
-
require_relative "bcp14"
|
|
6
|
-
require_relative "br"
|
|
7
|
-
require_relative "cref"
|
|
8
|
-
require_relative "em"
|
|
9
|
-
require_relative "eref"
|
|
10
|
-
require_relative "iref"
|
|
11
|
-
require_relative "relref"
|
|
12
|
-
require_relative "strong"
|
|
13
|
-
require_relative "sub"
|
|
14
|
-
require_relative "sup"
|
|
15
|
-
require_relative "xref"
|
|
16
|
-
|
|
17
5
|
module Rfcxml
|
|
18
6
|
module V3
|
|
19
|
-
class Cref < Lutaml::Model::Serializable; end
|
|
20
|
-
|
|
21
7
|
class Tt < Lutaml::Model::Serializable
|
|
22
8
|
attribute :content, :string
|
|
23
9
|
attribute :bcp14, Bcp14, collection: true
|
|
24
10
|
attribute :br, Br, collection: true
|
|
25
11
|
attribute :cref, Cref, collection: true
|
|
26
|
-
attribute :em, Em, collection: true
|
|
12
|
+
attribute :em, "Rfcxml::V3::Em", collection: true
|
|
27
13
|
attribute :eref, Eref, collection: true
|
|
28
14
|
attribute :iref, Iref, collection: true
|
|
29
15
|
attribute :relref, Relref, collection: true
|
|
30
|
-
attribute :strong, Strong, collection: true
|
|
31
|
-
attribute :sub, Sub, collection: true
|
|
32
|
-
attribute :sup, Sup, collection: true
|
|
16
|
+
attribute :strong, "Rfcxml::V3::Strong", collection: true
|
|
17
|
+
attribute :sub, "Rfcxml::V3::Sub", collection: true
|
|
18
|
+
attribute :sup, "Rfcxml::V3::Sup", collection: true
|
|
33
19
|
attribute :xref, Xref, collection: true
|
|
34
20
|
|
|
35
21
|
xml do
|