limarka 0.7.2.pre → 0.7.2.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/limarka/conversor.rb +4 -4
- data/lib/limarka/version.rb +1 -1
- 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: e0dfd70bed5633a31349b053a9d52e4cf6d09aeb
|
4
|
+
data.tar.gz: fd5078dce4bb29863507bef9006b336516c4fd73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 790ee40ab475aef5c968950905801b96db0741457b6ccc51f6005d3be57c1d7c3d3ae889e6f7231ac6e6cc023b124cdf60a1706fbc07ffdfbadae45879a12711
|
7
|
+
data.tar.gz: 2de6c9b3516aff38e90d661d643183bd60cd6e6d05e9e882eb351f41d9bcee123bf4e11d3f29ea1212ee35a455dd439a5c3eaf5227fa322184e8db1106b02373
|
data/lib/limarka/conversor.rb
CHANGED
@@ -24,7 +24,7 @@ module Limarka
|
|
24
24
|
attr_accessor :txt
|
25
25
|
attr_accessor :usa_pdftotext
|
26
26
|
|
27
|
-
|
27
|
+
pandoc_abnt_path = ENV["PANDOC_ABNT_PATH"] or "pandoc_abnt"
|
28
28
|
|
29
29
|
# @param trabalho [Trabalho]
|
30
30
|
def initialize(trabalho, options)
|
@@ -89,7 +89,7 @@ module Limarka
|
|
89
89
|
"epigrafe", "resumo", "abstract", "lista_ilustracoes", "lista_tabelas",
|
90
90
|
"lista_siglas", "lista_simbolos", "sumario"].each_with_index do |secao,indice|
|
91
91
|
template = "pretextual#{indice+1}-#{secao}"
|
92
|
-
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} -t latex --filter #{
|
92
|
+
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} -t latex --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
93
93
|
stdin.write(hash_to_yaml(t.configuracao))
|
94
94
|
stdin.write("\n")
|
95
95
|
if t.errata? and necessita_de_arquivo_de_texto.include?(secao) then
|
@@ -176,7 +176,7 @@ module Limarka
|
|
176
176
|
|
177
177
|
def textual(pretextual_tempfile, postextual_tempfile)
|
178
178
|
valida_yaml
|
179
|
-
Open3.popen3("pandoc -f markdown+raw_tex -t latex -s \"--data-dir=#{options[:templates_dir]}\" --template=trabalho-academico --normalize --top-level-division=chapter --include-before-body=#{pretextual_tempfile.path} --include-after-body=#{postextual_tempfile.path} --filter #{
|
179
|
+
Open3.popen3("pandoc -f markdown+raw_tex -t latex -s \"--data-dir=#{options[:templates_dir]}\" --template=trabalho-academico --normalize --top-level-division=chapter --include-before-body=#{pretextual_tempfile.path} --include-after-body=#{postextual_tempfile.path} --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
180
180
|
stdin.write(File.read(options[:templates_dir] + '/templates/configuracao-tecnica.yaml'))
|
181
181
|
stdin.write("\n")
|
182
182
|
stdin.write(hash_to_yaml(t.configuracao))
|
@@ -242,7 +242,7 @@ module Limarka
|
|
242
242
|
def secao(template, condicao_para_conteudo, conteudo_externo)
|
243
243
|
s = StringIO.new
|
244
244
|
|
245
|
-
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} --top-level-division=chapter -t latex --filter #{
|
245
|
+
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} --top-level-division=chapter -t latex --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
246
246
|
stdin.write(hash_to_yaml(t.configuracao))
|
247
247
|
stdin.write("\n")
|
248
248
|
if (condicao_para_conteudo) then
|
data/lib/limarka/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: limarka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.2.
|
4
|
+
version: 0.7.2.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo de Santana Medeiros Alexandre
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|