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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dyndoc/document.rb +10 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8973b5e9a90ab0745a7cac9429e9e840a2cbea74
4
- data.tar.gz: c59310d22bb29f4aeddd9c9c19cc4d9bbf188f5d
3
+ metadata.gz: f8a094a95a726637b11faf25963ea90309f9d320
4
+ data.tar.gz: 1d5c8efefba46cfd961477d399befd8915386260
5
5
  SHA512:
6
- metadata.gz: 5e47f6c9ac9d89057cf07b035296441a91ac8d5203333ad0bebe99fc99a962d00688f8748cbe8d925b05a7991ac24174574be9c5a1bbafb4088001b165d79502
7
- data.tar.gz: 493a011ea9176bab86823e8e6bd85c7af2000bd2e4d9e4be6cbdce88a49ab1e9fdc08cd14d0034913d15e7ac82ba08897f8be6babd5b9739c861e7d90d61dfd7
6
+ metadata.gz: 18b48f3f9a45434a101237ab818e4b645fe05353f27baaae5a946a375de0d968357fa6fccb908ec34031a9f45c20c8dc9d0761e71b6c4f9302d31afae13f14cf
7
+ data.tar.gz: 0a07273d1779d262754f8d81e03a2c4fee5aaba78d9b16f118ac519ab2a026bd59cdfedb82d8f8c3aaf3750561acde079046caf2815b9a806a53f3904d73a267
@@ -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
- DynTask.add_task({cmd: :pdflatex, source: "%"+@basename+".tex", content: @content.force_encoding("utf-8"), nb_pass: nb, echo: echo})
590
- DynTask.save_tasks(@basename)
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[:source]="%"+@basename+".tex" if ["tex2docx","tex2odt"].include? filter
599
- DynTask.add_task(task)
600
- DynTask.save_tasks(@basename)
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.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-02-21 00:00:00.000000000 Z
11
+ date: 2016-03-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Provide templating in text document.