metanorma-ietf 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/ietf/converter.rb +3 -9
- data/lib/asciidoctor/ietf/ietf.rng +1 -1
- data/lib/isodoc/ietf/inline.rb +3 -0
- data/lib/metanorma/ietf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f3bd81f995368fb7fd47b7566ab1d74c70c58e53e030b93203dbbc761bba4a9
|
4
|
+
data.tar.gz: ae1f956c086bbc4e649999a3aa368bd8c38b17a344efd44c6d0dd3816c9f6c68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08a29292e245d8deb7075f51a230dc768b18f0fb363255a76d6d4ed1098268e40a799d299e2477cb240d30c763a15d018d2f204d306327d6a1699902e1cf2618'
|
7
|
+
data.tar.gz: 4a494998ec4e47cf4eb7b8469e037919c85592f137bc5acf7439794fb9a7c9a265c74dae048cf2cbb6795dbad2aa8e18915e83170332e7bec595237d28b41742
|
@@ -8,6 +8,8 @@ require_relative "./validate"
|
|
8
8
|
module Asciidoctor
|
9
9
|
module Ietf
|
10
10
|
class Converter < ::Asciidoctor::Standoc::Converter
|
11
|
+
XML_ROOT_TAG = "ietf-standard".freeze
|
12
|
+
XML_NAMESPACE = "https://www.metanorma.com/ns/ietf".freeze
|
11
13
|
|
12
14
|
register_for "ietf"
|
13
15
|
|
@@ -17,18 +19,10 @@ module Asciidoctor
|
|
17
19
|
end
|
18
20
|
|
19
21
|
def makexml(node)
|
20
|
-
result = ["<?xml version='1.0' encoding='UTF-8'?>\n<ietf-standard>"]
|
21
22
|
@draft = node.attributes.has_key?("draft")
|
22
23
|
@workgroups = cache_workgroup(node)
|
23
24
|
@bcp_bold = !node.attr?("no-rfc-bold-bcp14")
|
24
|
-
|
25
|
-
result << noko { |ixml| middle node, ixml }
|
26
|
-
result << "</ietf-standard>"
|
27
|
-
result = textcleanup(result)
|
28
|
-
ret1 = cleanup(Nokogiri::XML(result))
|
29
|
-
validate(ret1) unless @novalid
|
30
|
-
ret1.root.add_namespace(nil, "https://open.ribose.com/standards/ietf")
|
31
|
-
ret1
|
25
|
+
super
|
32
26
|
end
|
33
27
|
|
34
28
|
def document(node)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<grammar ns="https://www.metanorma.com/ns/ietf" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
3
|
<!--
|
4
4
|
Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
|
5
5
|
we cannot have a new default namespace: we will end up with a grammar with two different
|
data/lib/isodoc/ietf/inline.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ietf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|