rfcxml 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/rake.yml +18 -0
- data/.github/workflows/release.yml +25 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +11 -0
- data/.rubocop_todo.yml +20 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +12 -0
- data/README.adoc +75 -0
- data/Rakefile +12 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/lib/rfcxml/v3/abstract.rb +32 -0
- data/lib/rfcxml/v3/address.rb +31 -0
- data/lib/rfcxml/v3/annotation.rb +57 -0
- data/lib/rfcxml/v3/area.rb +17 -0
- data/lib/rfcxml/v3/artset.rb +23 -0
- data/lib/rfcxml/v3/artwork.rb +37 -0
- data/lib/rfcxml/v3/aside.rb +50 -0
- data/lib/rfcxml/v3/author.rb +38 -0
- data/lib/rfcxml/v3/back.rb +25 -0
- data/lib/rfcxml/v3/bcp14.rb +17 -0
- data/lib/rfcxml/v3/blockquote.rb +92 -0
- data/lib/rfcxml/v3/boilerplate.rb +19 -0
- data/lib/rfcxml/v3/br.rb +13 -0
- data/lib/rfcxml/v3/c.rb +33 -0
- data/lib/rfcxml/v3/city.rb +19 -0
- data/lib/rfcxml/v3/cityarea.rb +19 -0
- data/lib/rfcxml/v3/code.rb +19 -0
- data/lib/rfcxml/v3/contact.rb +36 -0
- data/lib/rfcxml/v3/country.rb +19 -0
- data/lib/rfcxml/v3/cref.rb +51 -0
- data/lib/rfcxml/v3/date.rb +23 -0
- data/lib/rfcxml/v3/dd.rb +92 -0
- data/lib/rfcxml/v3/displayreference.rb +19 -0
- data/lib/rfcxml/v3/dl.rb +35 -0
- data/lib/rfcxml/v3/dt.rb +58 -0
- data/lib/rfcxml/v3/em.rb +14 -0
- data/lib/rfcxml/v3/email.rb +19 -0
- data/lib/rfcxml/v3/eref.rb +21 -0
- data/lib/rfcxml/v3/extaddr.rb +19 -0
- data/lib/rfcxml/v3/facsimile.rb +17 -0
- data/lib/rfcxml/v3/figure.rb +57 -0
- data/lib/rfcxml/v3/format.rb +21 -0
- data/lib/rfcxml/v3/front.rb +49 -0
- data/lib/rfcxml/v3/iref.rb +23 -0
- data/lib/rfcxml/v3/keyword.rb +17 -0
- data/lib/rfcxml/v3/li.rb +97 -0
- data/lib/rfcxml/v3/link.rb +19 -0
- data/lib/rfcxml/v3/list.rb +27 -0
- data/lib/rfcxml/v3/middle.rb +19 -0
- data/lib/rfcxml/v3/name.rb +56 -0
- data/lib/rfcxml/v3/note.rb +37 -0
- data/lib/rfcxml/v3/ol.rb +33 -0
- data/lib/rfcxml/v3/organization.rb +25 -0
- data/lib/rfcxml/v3/phone.rb +17 -0
- data/lib/rfcxml/v3/pobox.rb +19 -0
- data/lib/rfcxml/v3/postal.rb +46 -0
- data/lib/rfcxml/v3/postal_line.rb +19 -0
- data/lib/rfcxml/v3/postamble.rb +33 -0
- data/lib/rfcxml/v3/preamble.rb +57 -0
- data/lib/rfcxml/v3/refcontent.rb +28 -0
- data/lib/rfcxml/v3/reference.rb +43 -0
- data/lib/rfcxml/v3/referencegroup.rb +25 -0
- data/lib/rfcxml/v3/references.rb +33 -0
- data/lib/rfcxml/v3/region.rb +19 -0
- data/lib/rfcxml/v3/relref.rb +29 -0
- data/lib/rfcxml/v3/rfc.rb +70 -0
- data/lib/rfcxml/v3/section.rb +78 -0
- data/lib/rfcxml/v3/series_info.rb +27 -0
- data/lib/rfcxml/v3/sortingcode.rb +19 -0
- data/lib/rfcxml/v3/sourcecode.rb +31 -0
- data/lib/rfcxml/v3/spanx.rb +19 -0
- data/lib/rfcxml/v3/street.rb +19 -0
- data/lib/rfcxml/v3/strong.rb +43 -0
- data/lib/rfcxml/v3/sub.rb +49 -0
- data/lib/rfcxml/v3/sup.rb +28 -0
- data/lib/rfcxml/v3/table.rb +37 -0
- data/lib/rfcxml/v3/tbody.rb +21 -0
- data/lib/rfcxml/v3/td.rb +89 -0
- data/lib/rfcxml/v3/text.rb +82 -0
- data/lib/rfcxml/v3/texttable.rb +41 -0
- data/lib/rfcxml/v3/tfoot.rb +21 -0
- data/lib/rfcxml/v3/th.rb +14 -0
- data/lib/rfcxml/v3/thead.rb +21 -0
- data/lib/rfcxml/v3/title.rb +25 -0
- data/lib/rfcxml/v3/toc.rb +19 -0
- data/lib/rfcxml/v3/tr.rb +24 -0
- data/lib/rfcxml/v3/tt.rb +53 -0
- data/lib/rfcxml/v3/ttcol.rb +34 -0
- data/lib/rfcxml/v3/u.rb +25 -0
- data/lib/rfcxml/v3/ul.rb +31 -0
- data/lib/rfcxml/v3/uri.rb +17 -0
- data/lib/rfcxml/v3/vspace.rb +17 -0
- data/lib/rfcxml/v3/workgroup.rb +17 -0
- data/lib/rfcxml/v3/xref.rb +41 -0
- data/lib/rfcxml/v3/xref_text.rb +30 -0
- data/lib/rfcxml/v3.rb +8 -0
- data/lib/rfcxml/version.rb +5 -0
- data/lib/rfcxml.rb +17 -0
- data/reference-docs/v3-modified.rnc +1145 -0
- data/reference-docs/v3.rnc +1145 -0
- data/reference-docs/v3.xsd +1410 -0
- data/reference-docs/xml.xsd +19 -0
- data/rfcxml.gemspec +47 -0
- data/sig/xml2rfc.rbs +4 -0
- metadata +264 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/XML/1998/namespace">
|
3
|
+
<xs:import schemaLocation="v3.xsd"/>
|
4
|
+
<xs:attribute name="base"/>
|
5
|
+
<xs:attribute name="lang"/>
|
6
|
+
<xs:attributeGroup name="space">
|
7
|
+
<xs:attribute name="space" use="required" form="qualified">
|
8
|
+
<xs:simpleType>
|
9
|
+
<xs:restriction base="xs:token">
|
10
|
+
<xs:enumeration value="default"/>
|
11
|
+
<xs:enumeration value="preserve"/>
|
12
|
+
</xs:restriction>
|
13
|
+
</xs:simpleType>
|
14
|
+
</xs:attribute>
|
15
|
+
</xs:attributeGroup>
|
16
|
+
<xs:attributeGroup name="space1">
|
17
|
+
<xs:attribute name="space" use="required" form="qualified"/>
|
18
|
+
</xs:attributeGroup>
|
19
|
+
</xs:schema>
|
data/rfcxml.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/rfcxml/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "rfcxml"
|
7
|
+
spec.version = Rfcxml::VERSION
|
8
|
+
spec.authors = ["Ribose Inc."]
|
9
|
+
spec.email = ["open.source@ribose.com'"]
|
10
|
+
|
11
|
+
spec.summary = "IETF RFC XML parser and generator"
|
12
|
+
spec.description = "IETF RFC XML parser and generator"
|
13
|
+
spec.homepage = "https://github.com/metanorma/rfcxml"
|
14
|
+
spec.license = "BSD-2-Clause"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
18
|
+
spec.metadata["changelog_uri"] = "https://github.com/metanorma/rfcxml/releases"
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem
|
22
|
+
# that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
24
|
+
`git ls-files -z`
|
25
|
+
.split("\x0")
|
26
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.required_ruby_version = ">= 2.7.0"
|
33
|
+
|
34
|
+
spec.add_runtime_dependency "lutaml-model"
|
35
|
+
spec.add_runtime_dependency "nokogiri"
|
36
|
+
|
37
|
+
spec.add_development_dependency "equivalent-xml"
|
38
|
+
spec.add_development_dependency "rake"
|
39
|
+
spec.add_development_dependency "rspec"
|
40
|
+
spec.add_development_dependency "rubocop"
|
41
|
+
spec.add_development_dependency "rubocop-performance"
|
42
|
+
spec.add_development_dependency "xml-c14n"
|
43
|
+
|
44
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
45
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
46
|
+
spec.metadata["changelog_uri"] = spec.homepage
|
47
|
+
end
|
data/sig/xml2rfc.rbs
ADDED
metadata
ADDED
@@ -0,0 +1,264 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rfcxml
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ribose Inc.
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: lutaml-model
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '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'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: equivalent-xml
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-performance
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: xml-c14n
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: IETF RFC XML parser and generator
|
126
|
+
email:
|
127
|
+
- open.source@ribose.com'
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".github/workflows/rake.yml"
|
133
|
+
- ".github/workflows/release.yml"
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rspec"
|
136
|
+
- ".rubocop.yml"
|
137
|
+
- ".rubocop_todo.yml"
|
138
|
+
- CODE_OF_CONDUCT.md
|
139
|
+
- Gemfile
|
140
|
+
- README.adoc
|
141
|
+
- Rakefile
|
142
|
+
- bin/console
|
143
|
+
- bin/setup
|
144
|
+
- lib/rfcxml.rb
|
145
|
+
- lib/rfcxml/v3.rb
|
146
|
+
- lib/rfcxml/v3/abstract.rb
|
147
|
+
- lib/rfcxml/v3/address.rb
|
148
|
+
- lib/rfcxml/v3/annotation.rb
|
149
|
+
- lib/rfcxml/v3/area.rb
|
150
|
+
- lib/rfcxml/v3/artset.rb
|
151
|
+
- lib/rfcxml/v3/artwork.rb
|
152
|
+
- lib/rfcxml/v3/aside.rb
|
153
|
+
- lib/rfcxml/v3/author.rb
|
154
|
+
- lib/rfcxml/v3/back.rb
|
155
|
+
- lib/rfcxml/v3/bcp14.rb
|
156
|
+
- lib/rfcxml/v3/blockquote.rb
|
157
|
+
- lib/rfcxml/v3/boilerplate.rb
|
158
|
+
- lib/rfcxml/v3/br.rb
|
159
|
+
- lib/rfcxml/v3/c.rb
|
160
|
+
- lib/rfcxml/v3/city.rb
|
161
|
+
- lib/rfcxml/v3/cityarea.rb
|
162
|
+
- lib/rfcxml/v3/code.rb
|
163
|
+
- lib/rfcxml/v3/contact.rb
|
164
|
+
- lib/rfcxml/v3/country.rb
|
165
|
+
- lib/rfcxml/v3/cref.rb
|
166
|
+
- lib/rfcxml/v3/date.rb
|
167
|
+
- lib/rfcxml/v3/dd.rb
|
168
|
+
- lib/rfcxml/v3/displayreference.rb
|
169
|
+
- lib/rfcxml/v3/dl.rb
|
170
|
+
- lib/rfcxml/v3/dt.rb
|
171
|
+
- lib/rfcxml/v3/em.rb
|
172
|
+
- lib/rfcxml/v3/email.rb
|
173
|
+
- lib/rfcxml/v3/eref.rb
|
174
|
+
- lib/rfcxml/v3/extaddr.rb
|
175
|
+
- lib/rfcxml/v3/facsimile.rb
|
176
|
+
- lib/rfcxml/v3/figure.rb
|
177
|
+
- lib/rfcxml/v3/format.rb
|
178
|
+
- lib/rfcxml/v3/front.rb
|
179
|
+
- lib/rfcxml/v3/iref.rb
|
180
|
+
- lib/rfcxml/v3/keyword.rb
|
181
|
+
- lib/rfcxml/v3/li.rb
|
182
|
+
- lib/rfcxml/v3/link.rb
|
183
|
+
- lib/rfcxml/v3/list.rb
|
184
|
+
- lib/rfcxml/v3/middle.rb
|
185
|
+
- lib/rfcxml/v3/name.rb
|
186
|
+
- lib/rfcxml/v3/note.rb
|
187
|
+
- lib/rfcxml/v3/ol.rb
|
188
|
+
- lib/rfcxml/v3/organization.rb
|
189
|
+
- lib/rfcxml/v3/phone.rb
|
190
|
+
- lib/rfcxml/v3/pobox.rb
|
191
|
+
- lib/rfcxml/v3/postal.rb
|
192
|
+
- lib/rfcxml/v3/postal_line.rb
|
193
|
+
- lib/rfcxml/v3/postamble.rb
|
194
|
+
- lib/rfcxml/v3/preamble.rb
|
195
|
+
- lib/rfcxml/v3/refcontent.rb
|
196
|
+
- lib/rfcxml/v3/reference.rb
|
197
|
+
- lib/rfcxml/v3/referencegroup.rb
|
198
|
+
- lib/rfcxml/v3/references.rb
|
199
|
+
- lib/rfcxml/v3/region.rb
|
200
|
+
- lib/rfcxml/v3/relref.rb
|
201
|
+
- lib/rfcxml/v3/rfc.rb
|
202
|
+
- lib/rfcxml/v3/section.rb
|
203
|
+
- lib/rfcxml/v3/series_info.rb
|
204
|
+
- lib/rfcxml/v3/sortingcode.rb
|
205
|
+
- lib/rfcxml/v3/sourcecode.rb
|
206
|
+
- lib/rfcxml/v3/spanx.rb
|
207
|
+
- lib/rfcxml/v3/street.rb
|
208
|
+
- lib/rfcxml/v3/strong.rb
|
209
|
+
- lib/rfcxml/v3/sub.rb
|
210
|
+
- lib/rfcxml/v3/sup.rb
|
211
|
+
- lib/rfcxml/v3/table.rb
|
212
|
+
- lib/rfcxml/v3/tbody.rb
|
213
|
+
- lib/rfcxml/v3/td.rb
|
214
|
+
- lib/rfcxml/v3/text.rb
|
215
|
+
- lib/rfcxml/v3/texttable.rb
|
216
|
+
- lib/rfcxml/v3/tfoot.rb
|
217
|
+
- lib/rfcxml/v3/th.rb
|
218
|
+
- lib/rfcxml/v3/thead.rb
|
219
|
+
- lib/rfcxml/v3/title.rb
|
220
|
+
- lib/rfcxml/v3/toc.rb
|
221
|
+
- lib/rfcxml/v3/tr.rb
|
222
|
+
- lib/rfcxml/v3/tt.rb
|
223
|
+
- lib/rfcxml/v3/ttcol.rb
|
224
|
+
- lib/rfcxml/v3/u.rb
|
225
|
+
- lib/rfcxml/v3/ul.rb
|
226
|
+
- lib/rfcxml/v3/uri.rb
|
227
|
+
- lib/rfcxml/v3/vspace.rb
|
228
|
+
- lib/rfcxml/v3/workgroup.rb
|
229
|
+
- lib/rfcxml/v3/xref.rb
|
230
|
+
- lib/rfcxml/v3/xref_text.rb
|
231
|
+
- lib/rfcxml/version.rb
|
232
|
+
- reference-docs/v3-modified.rnc
|
233
|
+
- reference-docs/v3.rnc
|
234
|
+
- reference-docs/v3.xsd
|
235
|
+
- reference-docs/xml.xsd
|
236
|
+
- rfcxml.gemspec
|
237
|
+
- sig/xml2rfc.rbs
|
238
|
+
homepage: https://github.com/metanorma/rfcxml
|
239
|
+
licenses:
|
240
|
+
- BSD-2-Clause
|
241
|
+
metadata:
|
242
|
+
homepage_uri: https://github.com/metanorma/rfcxml
|
243
|
+
source_code_uri: https://github.com/metanorma/rfcxml
|
244
|
+
changelog_uri: https://github.com/metanorma/rfcxml
|
245
|
+
post_install_message:
|
246
|
+
rdoc_options: []
|
247
|
+
require_paths:
|
248
|
+
- lib
|
249
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - ">="
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: 2.7.0
|
254
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
|
+
requirements:
|
256
|
+
- - ">="
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
version: '0'
|
259
|
+
requirements: []
|
260
|
+
rubygems_version: 3.3.27
|
261
|
+
signing_key:
|
262
|
+
specification_version: 4
|
263
|
+
summary: IETF RFC XML parser and generator
|
264
|
+
test_files: []
|