dyndoc-ruby-doc 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dyndoc/document.rb +10 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8a094a95a726637b11faf25963ea90309f9d320
|
4
|
+
data.tar.gz: 1d5c8efefba46cfd961477d399befd8915386260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18b48f3f9a45434a101237ab818e4b645fe05353f27baaae5a946a375de0d968357fa6fccb908ec34031a9f45c20c8dc9d0761e71b6c4f9302d31afae13f14cf
|
7
|
+
data.tar.gz: 0a07273d1779d262754f8d81e03a2c4fee5aaba78d9b16f118ac519ab2a026bd59cdfedb82d8f8c3aaf3750561acde079046caf2815b9a806a53f3904d73a267
|
data/lib/dyndoc/document.rb
CHANGED
@@ -586,18 +586,22 @@ puts "make_all";p @cfg[:cmd]
|
|
586
586
|
nb = @cfg[:options][:pdflatex_nb_pass] || @tmpl_doc.cfg[:options][:pdflatex_nb_pass] || 1
|
587
587
|
if @cfg[:format_doc]==:tex
|
588
588
|
require 'dyntask'
|
589
|
-
|
590
|
-
DynTask.
|
589
|
+
task={cmd: :pdflatex, source: @basename+".tex", content: @content.force_encoding("utf-8"), nb_pass: nb, echo: echo}
|
590
|
+
task[:workdir]=DynTask.relative_path_from_sys_root(File.expand_path @dirname)
|
591
|
+
task[:texinputs]=ENV["TEXINPUTS"] if ENV["TEXINPUTS"] and !ENV["TEXINPUTS"].empty?
|
592
|
+
id=DynTask.add_task(task)
|
593
|
+
DynTask.save_tasks(id,@basename)
|
591
594
|
end
|
592
595
|
end
|
593
596
|
|
594
597
|
def make_task_pandoc
|
595
598
|
filter=@cfg[:format_doc].to_s + "2" + @cfg[:format_output].to_s
|
596
599
|
require 'dyntask'
|
597
|
-
task={cmd: :pandoc, content: @content.force_encoding("utf-8"), filter: filter}
|
598
|
-
task[:
|
599
|
-
|
600
|
-
DynTask.
|
600
|
+
task={cmd: :pandoc, workdir: @dirname, content: @content.force_encoding("utf-8"), filter: filter}
|
601
|
+
task[:workdir]=DynTask.relative_path_from_sys_root(File.expand_path @dirname)
|
602
|
+
task[:source]=@basename+".tex" if ["tex2docx","tex2odt"].include? filter
|
603
|
+
id=DynTask.add_task(task)
|
604
|
+
DynTask.save_tasks(id,@basename)
|
601
605
|
end
|
602
606
|
|
603
607
|
def make_odt_content_xml
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dyndoc-ruby-doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CQLS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
Provide templating in text document.
|