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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc649c6e50c63bd68cf9d645552d45f27670a651
4
- data.tar.gz: 66d7676ed129c6718d7e6b9db2a72d14804fb11d
3
+ metadata.gz: 7813a1ce2465a643c8810db821bc62b5c8164ecd
4
+ data.tar.gz: 158c000b02fc25d6e0f477a27786717708c97549
5
5
  SHA512:
6
- metadata.gz: d4e682bab7954c924c5d5661f8c48215c78e3c5be4627beb9ce07d90138a2ae77274df0614b939fa5c080945786a9fff66d6d0657cc284cfe27be016af6603f9
7
- data.tar.gz: 65537144f3361ce3321f11f9351db28c62329ae8881e22cd11b4b9f75597fc9c61ac1eef0dbd2eb8fb43a563aadaa5ce8c2484015110f98d7137d827b37db075
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
- filename = node.attr("docfile").gsub(/\.adoc/, ".xml").
100
- gsub(%r{^.*/}, "")
101
- File.open(filename, "w") { |f| f.write(ret) }
102
- html_converter(node).convert filename unless node.attr("nodoc")
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
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Csd
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-csd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.