rfcxml 0.2.1 → 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 +18 -14
- data/Gemfile +2 -2
- 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/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 +0 -25
- 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 +0 -24
- data/lib/rfcxml/v3/dl.rb +0 -6
- data/lib/rfcxml/v3/dt.rb +0 -13
- data/lib/rfcxml/v3/figure.rb +0 -8
- data/lib/rfcxml/v3/front.rb +0 -12
- data/lib/rfcxml/v3/li.rb +0 -27
- 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 +2 -2
- data/lib/rfcxml/v3/section.rb +0 -17
- 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 +0 -22
- 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 +0 -2
- 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 +3 -2
- metadata +6 -6
- data/lib/rfcxml/v3/em.rb +0 -14
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,7 +59,7 @@ 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
|
|
62
|
+
map_attribute "lang", to: :lang
|
|
63
63
|
|
|
64
64
|
%w[link front middle back].each do |element|
|
|
65
65
|
map_element element, to: element.to_sym
|
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/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
|
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
|
data/lib/rfcxml/v3/ttcol.rb
CHANGED
data/lib/rfcxml/v3/ul.rb
CHANGED
data/lib/rfcxml/v3/xref.rb
CHANGED
data/lib/rfcxml/v3/xref_text.rb
CHANGED
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# require_relative "em"
|
|
4
|
-
# require_relative "strong"
|
|
5
|
-
# require_relative "sub"
|
|
6
|
-
# require_relative "sup"
|
|
7
|
-
# require_relative "tt"
|
|
8
3
|
require "lutaml/model"
|
|
9
4
|
|
|
10
5
|
module Rfcxml
|
|
11
6
|
module V3
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class Sub < Lutaml::Model::Serializable; end
|
|
15
|
-
class Sup < Sub; end
|
|
16
|
-
class Tt < Lutaml::Model::Serializable; end
|
|
17
|
-
|
|
7
|
+
# Mixin module for common text formatting elements
|
|
8
|
+
# Included by Xref, Refcontent, and other elements
|
|
18
9
|
module XrefText
|
|
19
10
|
def self.included(base)
|
|
20
11
|
base.class_eval do
|
|
21
|
-
attribute :em,
|
|
22
|
-
attribute :strong, V3::Strong, collection: true
|
|
23
|
-
attribute :sub, V3::Sub, collection: true
|
|
24
|
-
attribute :sup, V3::Sup, collection: true
|
|
25
|
-
attribute :tt, V3::Tt, collection: true
|
|
12
|
+
attribute :em, "Rfcxml::V3::Em", collection: true
|
|
13
|
+
attribute :strong, "Rfcxml::V3::Strong", collection: true
|
|
14
|
+
attribute :sub, "Rfcxml::V3::Sub", collection: true
|
|
15
|
+
attribute :sup, "Rfcxml::V3::Sup", collection: true
|
|
16
|
+
attribute :tt, "Rfcxml::V3::Tt", collection: true
|
|
26
17
|
end
|
|
27
18
|
end
|
|
28
19
|
end
|
data/lib/rfcxml/v3.rb
CHANGED
|
@@ -1,8 +1,106 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative "v3/rfc"
|
|
4
|
-
|
|
5
3
|
module Rfcxml
|
|
6
4
|
module V3
|
|
5
|
+
# Core document structure
|
|
6
|
+
autoload :Rfc, "#{__dir__}/v3/rfc"
|
|
7
|
+
autoload :Front, "#{__dir__}/v3/front"
|
|
8
|
+
autoload :Middle, "#{__dir__}/v3/middle"
|
|
9
|
+
autoload :Back, "#{__dir__}/v3/back"
|
|
10
|
+
|
|
11
|
+
# Front matter elements
|
|
12
|
+
autoload :Abstract, "#{__dir__}/v3/abstract"
|
|
13
|
+
autoload :Annotation, "#{__dir__}/v3/annotation"
|
|
14
|
+
autoload :Area, "#{__dir__}/v3/area"
|
|
15
|
+
autoload :Author, "#{__dir__}/v3/author"
|
|
16
|
+
autoload :Contact, "#{__dir__}/v3/contact"
|
|
17
|
+
autoload :Date, "#{__dir__}/v3/date"
|
|
18
|
+
autoload :Keyword, "#{__dir__}/v3/keyword"
|
|
19
|
+
autoload :Note, "#{__dir__}/v3/note"
|
|
20
|
+
autoload :Organization, "#{__dir__}/v3/organization"
|
|
21
|
+
autoload :Title, "#{__dir__}/v3/title"
|
|
22
|
+
autoload :Workgroup, "#{__dir__}/v3/workgroup"
|
|
23
|
+
|
|
24
|
+
# Address elements
|
|
25
|
+
autoload :Address, "#{__dir__}/v3/address"
|
|
26
|
+
autoload :City, "#{__dir__}/v3/city"
|
|
27
|
+
autoload :Cityarea, "#{__dir__}/v3/cityarea"
|
|
28
|
+
autoload :Country, "#{__dir__}/v3/country"
|
|
29
|
+
autoload :Email, "#{__dir__}/v3/email"
|
|
30
|
+
autoload :Extaddr, "#{__dir__}/v3/extaddr"
|
|
31
|
+
autoload :Facsimile, "#{__dir__}/v3/facsimile"
|
|
32
|
+
autoload :Phone, "#{__dir__}/v3/phone"
|
|
33
|
+
autoload :Pobox, "#{__dir__}/v3/pobox"
|
|
34
|
+
autoload :Postal, "#{__dir__}/v3/postal"
|
|
35
|
+
autoload :PostalLine, "#{__dir__}/v3/postal_line"
|
|
36
|
+
autoload :Region, "#{__dir__}/v3/region"
|
|
37
|
+
autoload :Sortingcode, "#{__dir__}/v3/sortingcode"
|
|
38
|
+
autoload :Street, "#{__dir__}/v3/street"
|
|
39
|
+
autoload :Uri, "#{__dir__}/v3/uri"
|
|
40
|
+
|
|
41
|
+
# Body elements
|
|
42
|
+
autoload :Section, "#{__dir__}/v3/section"
|
|
43
|
+
autoload :Aside, "#{__dir__}/v3/aside"
|
|
44
|
+
autoload :Blockquote, "#{__dir__}/v3/blockquote"
|
|
45
|
+
autoload :Boilerplate, "#{__dir__}/v3/boilerplate"
|
|
46
|
+
autoload :Figure, "#{__dir__}/v3/figure"
|
|
47
|
+
autoload :Ol, "#{__dir__}/v3/ol"
|
|
48
|
+
autoload :Ul, "#{__dir__}/v3/ul"
|
|
49
|
+
autoload :Li, "#{__dir__}/v3/li"
|
|
50
|
+
autoload :Dl, "#{__dir__}/v3/dl"
|
|
51
|
+
autoload :Dt, "#{__dir__}/v3/dt"
|
|
52
|
+
autoload :Dd, "#{__dir__}/v3/dd"
|
|
53
|
+
autoload :Table, "#{__dir__}/v3/table"
|
|
54
|
+
autoload :Tbody, "#{__dir__}/v3/tbody"
|
|
55
|
+
autoload :Tfoot, "#{__dir__}/v3/tfoot"
|
|
56
|
+
autoload :Thead, "#{__dir__}/v3/thead"
|
|
57
|
+
autoload :Tr, "#{__dir__}/v3/tr"
|
|
58
|
+
autoload :Td, "#{__dir__}/v3/td"
|
|
59
|
+
autoload :Th, "#{__dir__}/v3/th"
|
|
60
|
+
|
|
61
|
+
# Inline text elements
|
|
62
|
+
autoload :Bcp14, "#{__dir__}/v3/bcp14"
|
|
63
|
+
autoload :Br, "#{__dir__}/v3/br"
|
|
64
|
+
autoload :C, "#{__dir__}/v3/c"
|
|
65
|
+
autoload :Code, "#{__dir__}/v3/code"
|
|
66
|
+
autoload :Cref, "#{__dir__}/v3/cref"
|
|
67
|
+
autoload :Em, "#{__dir__}/v3/strong" # Em is defined in strong.rb
|
|
68
|
+
autoload :Eref, "#{__dir__}/v3/eref"
|
|
69
|
+
autoload :Iref, "#{__dir__}/v3/iref"
|
|
70
|
+
autoload :Name, "#{__dir__}/v3/name"
|
|
71
|
+
autoload :Postamble, "#{__dir__}/v3/postamble"
|
|
72
|
+
autoload :Preamble, "#{__dir__}/v3/preamble"
|
|
73
|
+
autoload :Relref, "#{__dir__}/v3/relref"
|
|
74
|
+
autoload :Spanx, "#{__dir__}/v3/spanx"
|
|
75
|
+
autoload :Strong, "#{__dir__}/v3/strong"
|
|
76
|
+
autoload :Sub, "#{__dir__}/v3/sub"
|
|
77
|
+
autoload :Sup, "#{__dir__}/v3/sup"
|
|
78
|
+
autoload :Tt, "#{__dir__}/v3/tt"
|
|
79
|
+
autoload :U, "#{__dir__}/v3/u"
|
|
80
|
+
autoload :Xref, "#{__dir__}/v3/xref"
|
|
81
|
+
autoload :XrefText, "#{__dir__}/v3/xref_text"
|
|
82
|
+
|
|
83
|
+
# Artwork and code elements
|
|
84
|
+
autoload :Artset, "#{__dir__}/v3/artset"
|
|
85
|
+
autoload :Artwork, "#{__dir__}/v3/artwork"
|
|
86
|
+
autoload :Sourcecode, "#{__dir__}/v3/sourcecode"
|
|
87
|
+
|
|
88
|
+
# References
|
|
89
|
+
autoload :Displayreference, "#{__dir__}/v3/displayreference"
|
|
90
|
+
autoload :Refcontent, "#{__dir__}/v3/refcontent"
|
|
91
|
+
autoload :Reference, "#{__dir__}/v3/reference"
|
|
92
|
+
autoload :Referencegroup, "#{__dir__}/v3/referencegroup"
|
|
93
|
+
autoload :References, "#{__dir__}/v3/references"
|
|
94
|
+
|
|
95
|
+
# Other elements
|
|
96
|
+
autoload :Format, "#{__dir__}/v3/format"
|
|
97
|
+
autoload :Link, "#{__dir__}/v3/link"
|
|
98
|
+
autoload :List, "#{__dir__}/v3/list"
|
|
99
|
+
autoload :SeriesInfo, "#{__dir__}/v3/series_info"
|
|
100
|
+
autoload :Text, "#{__dir__}/v3/text"
|
|
101
|
+
autoload :Texttable, "#{__dir__}/v3/texttable"
|
|
102
|
+
autoload :Toc, "#{__dir__}/v3/toc"
|
|
103
|
+
autoload :Ttcol, "#{__dir__}/v3/ttcol"
|
|
104
|
+
autoload :Vspace, "#{__dir__}/v3/vspace"
|
|
7
105
|
end
|
|
8
106
|
end
|
data/lib/rfcxml/version.rb
CHANGED
data/lib/rfcxml.rb
CHANGED
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
require "lutaml/model"
|
|
4
4
|
|
|
5
5
|
Lutaml::Model::Config.configure do |config|
|
|
6
|
-
|
|
7
|
-
config.xml_adapter = Lutaml::Model::XmlAdapter::NokogiriAdapter
|
|
6
|
+
config.xml_adapter_type = :nokogiri
|
|
8
7
|
end
|
|
9
8
|
|
|
10
9
|
module Rfcxml
|
|
11
10
|
class Error < StandardError; end
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
autoload :Version, "#{__dir__}/rfcxml/version"
|
|
14
13
|
end
|
|
15
14
|
|
|
16
|
-
require_relative "rfcxml/version"
|
|
17
15
|
require_relative "rfcxml/v3"
|
data/rfcxml.gemspec
CHANGED
|
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
17
17
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
18
18
|
spec.metadata["changelog_uri"] = "https://github.com/metanorma/rfcxml/releases"
|
|
19
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
19
20
|
|
|
20
21
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
21
22
|
`git ls-files -z`
|
|
@@ -26,8 +27,8 @@ Gem::Specification.new do |spec|
|
|
|
26
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
27
28
|
spec.require_paths = ["lib"]
|
|
28
29
|
|
|
29
|
-
spec.required_ruby_version = ">= 2.
|
|
30
|
+
spec.required_ruby_version = ">= 3.2.0"
|
|
30
31
|
|
|
31
|
-
spec.add_dependency "lutaml-model", "~> 0.
|
|
32
|
+
spec.add_dependency "lutaml-model", "~> 0.8.0"
|
|
32
33
|
spec.add_dependency "nokogiri"
|
|
33
34
|
end
|