asciidoctor-csd 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/csd/converter.rb +6 -4
- data/lib/asciidoctor/csd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7813a1ce2465a643c8810db821bc62b5c8164ecd
|
4
|
+
data.tar.gz: 158c000b02fc25d6e0f477a27786717708c97549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d35d0464d98b501bf40b7f8b11e43c864962b53e6b66d95221207b8cc0a3070fafb46b125bc5d748a0b9eb8f759f0d27bad81b14197ff4cf9c8342b634def076
|
7
|
+
data.tar.gz: f24400e256ac0e02ea6ceb71e1d5f4a864f763dd76f2af38d311473d7b3d38ccacb096471da937f8b48a6a96040fdc7d4a6874847b691cfb2bca5a2cabb93a2d
|
@@ -96,10 +96,12 @@ module Asciidoctor
|
|
96
96
|
init(node)
|
97
97
|
ret1 = makexml(node)
|
98
98
|
ret = ret1.to_xml(indent: 2)
|
99
|
-
|
100
|
-
gsub(
|
101
|
-
|
102
|
-
|
99
|
+
unless node.attr("nodoc") || !node.attr("docfile")
|
100
|
+
filename = node.attr("docfile").gsub(/\.adoc/, ".xml").
|
101
|
+
gsub(%r{^.*/}, "")
|
102
|
+
File.open(filename, "w") { |f| f.write(ret) }
|
103
|
+
html_converter(node).convert filename unless node.attr("nodoc")
|
104
|
+
end
|
103
105
|
@files_to_delete.each { |f| system "rm #{f}" }
|
104
106
|
ret
|
105
107
|
end
|