asciidoctor-iso 0.7.6 → 0.7.7

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: 02ba46db71e98b3e09474be800b440e4319fb34d
4
- data.tar.gz: 862fb839ad65652a0004ddfb921125d8213a8c5c
3
+ metadata.gz: a2a192d33f0d1f77d68e2c1803f782e9fe401fde
4
+ data.tar.gz: 1a33f7fca4eb014a204d4a66c65299849b4e92ea
5
5
  SHA512:
6
- metadata.gz: 43852ada92c5344fb5f4e125571cd951f658926781386aaa2396d4bca70b346a3f77f94f8e3336e27a73b8931298b16a08de903ed1a2826ccdf493a3bbc06978
7
- data.tar.gz: 438cde33308116b2b153588fc608fa7545ba989970df864eda99a437c8629958db366849687c94dfc69542b2853306769de02bcd24de74b5dad8ff954325d0c4
6
+ metadata.gz: ca8e121b088e8bd89f34256f1aa90ee88b21535d4e4cb716b3a443b4354a1fc8514555dccf89085d2532d233415d3da5542bd3b93d546a9d671a6614c3c8a2c8
7
+ data.tar.gz: 616655be4707c06e0bb19356509cf1482826e33b3212b61c4ad0d9939896832b11932bbdc62351d7fd2789d79fea16ce65e2b7c5f31d6930118639f81782c208
@@ -33,7 +33,7 @@ GIT
33
33
  PATH
34
34
  remote: .
35
35
  specs:
36
- asciidoctor-iso (0.7.5)
36
+ asciidoctor-iso (0.7.6)
37
37
  asciidoctor (~> 1.5.6)
38
38
  html2doc
39
39
  htmlentities (~> 4.3.4)
@@ -167,4 +167,4 @@ DEPENDENCIES
167
167
  timecop (~> 0.9)
168
168
 
169
169
  BUNDLED WITH
170
- 1.16.1
170
+ 1.16.2
@@ -42,46 +42,6 @@ module Asciidoctor
42
42
  outname
43
43
  end
44
44
 
45
- =begin
46
- def html_converter(node)
47
- css = generate_css(html_doc_path("style-iso.scss"), true, @fontheader)
48
- IsoDoc::Convert.new(
49
- htmlstylesheet: css,
50
- htmlcoverpage: html_doc_path("html_iso_titlepage.html"),
51
- htmlintropage: html_doc_path("html_iso_intro.html"),
52
- i18nyaml: node.attr("i18nyaml"),
53
- scripts: html_doc_path("scripts.html"),
54
- )
55
- end
56
-
57
- def html_converter_alt(node)
58
- fontheader = @fontheader.gsub(/"Cambria",serif/, '"Lato",sans-serif').
59
- gsub(/"Courier New",monospace/, '"Space Mono", monospace')
60
- css = generate_css(html_doc_path("style-human.scss"), true, fontheader)
61
- IsoDoc::Convert.new(
62
- htmlstylesheet: css,
63
- htmlcoverpage: html_doc_path("html_iso_titlepage.html"),
64
- htmlintropage: html_doc_path("html_iso_intro.html"),
65
- i18nyaml: node.attr("i18nyaml"),
66
- scripts: html_doc_path("scripts.html"),
67
- )
68
- end
69
-
70
- def doc_converter(node)
71
- IsoDoc::WordConvert.new(
72
- wordstylesheet: generate_css(html_doc_path("wordstyle.scss"),
73
- false, @fontheader),
74
- standardstylesheet: generate_css(html_doc_path("isodoc.scss"),
75
- false, @fontheader),
76
- header: html_doc_path("header.html"),
77
- wordcoverpage: html_doc_path("word_iso_titlepage.html"),
78
- wordintropage: html_doc_path("word_iso_intro.html"),
79
- i18nyaml: node.attr("i18nyaml"),
80
- ulstyle: "l3",
81
- olstyle: "l2",
82
- )
83
- end
84
- =end
85
45
  def html_converter(node)
86
46
  IsoDoc::Iso::Convert.new(
87
47
  script: node.attr("script"),
@@ -138,9 +98,9 @@ module Asciidoctor
138
98
  def document(node)
139
99
  init(node)
140
100
  ret = makexml(node).to_xml(indent: 2)
141
- filename = node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "")
142
- File.open(filename + ".xml", "w") { |f| f.write(ret) }
143
- unless node.attr("nodoc")
101
+ unless node.attr("nodoc") || !node.attr("docfile")
102
+ filename = node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "")
103
+ File.open(filename + ".xml", "w") { |f| f.write(ret) }
144
104
  html_converter_alt(node).convert(filename + ".xml")
145
105
  system "mv #{filename}.html #{filename}_alt.html"
146
106
  html_converter(node).convert(filename + ".xml")
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module ISO
3
- VERSION = "0.7.6".freeze
3
+ VERSION = "0.7.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.