kramdown-rfc2629 1.3.9 → 1.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/kdrfc +14 -9
- data/kramdown-rfc2629.gemspec +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: 55399c42e77abc9fd6e071e0e56de872ea053b4d7aa4a4b3d1218570deb3593a
|
4
|
+
data.tar.gz: 0e8358cfaf63d47fe0f5b79de0ebc59809b1163d8cb0c33fd4bbb83116505510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c1ddd9f5c0ca683bd889815050f5979a662561cb599b801b557e9a1df457f6bc97a6118cb826120bcee5a39b6fbe3701c8f922501ae0ec58e64cdd6ca25e3a7
|
7
|
+
data.tar.gz: 1cc42537f1bf204f5257cfe7f71edcde433e5639cbfea83fe55730f61d00c8e8114d7806a9113582a6c68ace85d14a07ec9ccf582de1e8ea9500fb4e64f51414
|
data/bin/kdrfc
CHANGED
@@ -49,16 +49,21 @@ def process_xml_locally(input, output, *flags)
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
XML2RFC_WEBSERVICE = ENV["KRAMDOWN_XML2RFC_WEBSERVICE"] ||
|
53
|
+
'http://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc-dev.cgi'
|
54
|
+
|
55
|
+
|
52
56
|
def process_xml_remotely(input, output)
|
53
57
|
warn "* converting remotely from xml #{input} to txt #{output}" if $options.verbose
|
54
|
-
url = URI(
|
58
|
+
url = URI(XML2RFC_WEBSERVICE)
|
55
59
|
req = Net::HTTP::Post.new(url)
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
60
|
+
form = [["modeAsFormat", "txt/#{"v3" if $options.v3}ascii"],
|
61
|
+
["type", "binary"],
|
62
|
+
["input", File.open(input),
|
63
|
+
{filename: "input.xml",
|
64
|
+
content_type: "text/plain"}]]
|
65
|
+
diag = ["url/form: ", url, form].inspect
|
66
|
+
req.set_form(form, 'multipart/form-data')
|
62
67
|
res = Net::HTTP::start(url.hostname, url.port,
|
63
68
|
:use_ssl => url.scheme == 'https' ) {|http|
|
64
69
|
http.request(req)
|
@@ -72,12 +77,12 @@ def process_xml_remotely(input, output)
|
|
72
77
|
end
|
73
78
|
warn "* #{output} written" if $options.verbose
|
74
79
|
else
|
75
|
-
warn "*** HTTP response has unexpected content_type #{res.content_type} with status #{res.code}"
|
80
|
+
warn "*** HTTP response has unexpected content_type #{res.content_type} with status #{res.code}, #{diag}"
|
76
81
|
warn res.body
|
77
82
|
exit 1
|
78
83
|
end
|
79
84
|
else
|
80
|
-
warn "*** HTTP response: #{res.code}"
|
85
|
+
warn "*** HTTP response: #{res.code}, #{diag}"
|
81
86
|
exit 1
|
82
87
|
end
|
83
88
|
end
|
data/kramdown-rfc2629.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = 'kramdown-rfc2629'
|
3
|
-
s.version = '1.3.
|
3
|
+
s.version = '1.3.10'
|
4
4
|
s.summary = "Kramdown extension for generating RFC 7749 XML."
|
5
5
|
s.description = %{An RFC7749 (XML2RFC) generating backend for Thomas Leitner's
|
6
6
|
"kramdown" markdown parser. Mostly useful for RFC writers.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kramdown-rfc2629
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|