asciidoctor-gb 0.2.2 → 0.2.3

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: dde71ee22c7d9f57a034fff500279cd20f9f63f4
4
- data.tar.gz: 8bec67da431dc355fe300e148d5aad1671ade332
3
+ metadata.gz: 168141bfa68f1d5e4677cb56d404d9d21c419a70
4
+ data.tar.gz: 20d5990c8c9bbfe1ec981039ef27187f9af42737
5
5
  SHA512:
6
- metadata.gz: ec348da462b2dee6d45ecbcdf4511d4b8d1af91d30488d68ab844859b16c7c0fc8260ca49c7d31367a5bbfb3de9fa649e999b302a58d8f7e12e510caa1c7751e
7
- data.tar.gz: ed293d2f15a9fb3bf81d73df1385f01e0836c05d8f6e9c54e85b1f29fc44865a63a3eabb244a0054a55f89511cb0e41b07a42084880b5af6a2408e762ff5e007
6
+ metadata.gz: 1a1c076aa1d9ce1131dd756f3425645f54d05e5956df00e1534de05894ca040e7adb6ddab55b1bf8aee501c2a9fbc073ba6286c27305ebcd645e664ea9e89ac2
7
+ data.tar.gz: 97cb050b7b61c903fddb11c8f1f6ce37056b3ced64b6ca24501ad672f0160c2438128658e82bdc6ec84b701bbdae4195f7f79becfe02f6baa264c4ae6c7d8275
@@ -1,6 +1,8 @@
1
1
  require "asciidoctor"
2
2
  require "asciidoctor/iso/converter"
3
3
  require "asciidoctor/gb/version"
4
+ require "isodoc/gb/gbconvert"
5
+ require "isodoc/gb/gbwordconvert"
4
6
  require_relative "./section_input.rb"
5
7
  require_relative "./front.rb"
6
8
  require_relative "./validate.rb"
@@ -78,11 +80,9 @@ module Asciidoctor
78
80
  def document(node)
79
81
  init(node)
80
82
  ret = makexml(node).to_xml(indent: 2)
81
- filename = node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "")
82
- File.open(filename, "w") { |f| f.write(ret) }
83
83
  unless node.attr("nodoc")
84
- #html_converter_alt(node).convert(filename + ".xml")
85
- #system "mv #{filename}.html #{filename}_alt.html"
84
+ filename = node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "")
85
+ File.open(filename, "w") { |f| f.write(ret) }
86
86
  html_converter(node).convert(filename + ".xml")
87
87
  doc_converter(node).convert(filename + ".xml")
88
88
  end
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Gb
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.