limarka 0.6.7 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/limarka/conversor.rb +3 -3
- data/lib/limarka/version.rb +1 -1
- data/limarka.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc3040d9fc772bc0298db49c24ecaa85d46a8da9
|
|
4
|
+
data.tar.gz: 43d304ca6f762719f7a6eadd787653deea577aa2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a15f16a01ab47af0b81b4dabb1be08b52642e6c3e2318f9e862dbfcce57ad88223595cc08f4b94c6c1989e57cd25e94d430ac56992c58f28d894282f961f4af
|
|
7
|
+
data.tar.gz: bcdbe4d4e9c08d9eff08b215932496da2091f92b5390ea4f3c057848a3c5e6c2396d9d52b4609647039f7eedfc78e14bad54db18961cf04dbafbb8ba98e1714d
|
data/lib/limarka/conversor.rb
CHANGED
|
@@ -87,7 +87,7 @@ module Limarka
|
|
|
87
87
|
"epigrafe", "resumo", "abstract", "lista_ilustracoes", "lista_tabelas",
|
|
88
88
|
"lista_siglas", "lista_simbolos", "sumario"].each_with_index do |secao,indice|
|
|
89
89
|
template = "pretextual#{indice+1}-#{secao}"
|
|
90
|
-
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} -t latex") {|stdin, stdout, stderr, wait_thr|
|
|
90
|
+
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} -t latex --filter pandoc_abnt") {|stdin, stdout, stderr, wait_thr|
|
|
91
91
|
stdin.write(hash_to_yaml(t.configuracao))
|
|
92
92
|
stdin.write("\n")
|
|
93
93
|
if t.errata? and necessita_de_arquivo_de_texto.include?(secao) then
|
|
@@ -174,7 +174,7 @@ module Limarka
|
|
|
174
174
|
|
|
175
175
|
def textual(pretextual_tempfile, postextual_tempfile)
|
|
176
176
|
valida_yaml
|
|
177
|
-
Open3.popen3("pandoc -f markdown+raw_tex -t latex -s \"--data-dir=#{options[:templates_dir]}\" --template=trabalho-academico --normalize --chapter --include-before-body=#{pretextual_tempfile.path} --include-after-body=#{postextual_tempfile.path}") {|stdin, stdout, stderr, wait_thr|
|
|
177
|
+
Open3.popen3("pandoc -f markdown+raw_tex -t latex -s \"--data-dir=#{options[:templates_dir]}\" --template=trabalho-academico --normalize --chapter --include-before-body=#{pretextual_tempfile.path} --include-after-body=#{postextual_tempfile.path} --filter pandoc_abnt") {|stdin, stdout, stderr, wait_thr|
|
|
178
178
|
stdin.write(File.read(options[:templates_dir] + '/templates/configuracao-tecnica.yaml'))
|
|
179
179
|
stdin.write("\n")
|
|
180
180
|
stdin.write(hash_to_yaml(t.configuracao))
|
|
@@ -240,7 +240,7 @@ module Limarka
|
|
|
240
240
|
def secao(template, condicao_para_conteudo, conteudo_externo)
|
|
241
241
|
s = StringIO.new
|
|
242
242
|
|
|
243
|
-
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} --chapter -t latex") {|stdin, stdout, stderr, wait_thr|
|
|
243
|
+
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} --chapter -t latex --filter pandoc_abnt") {|stdin, stdout, stderr, wait_thr|
|
|
244
244
|
stdin.write(hash_to_yaml(t.configuracao))
|
|
245
245
|
stdin.write("\n")
|
|
246
246
|
if (condicao_para_conteudo) then
|
data/lib/limarka/version.rb
CHANGED
data/limarka.gemspec
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.
|
|
4
|
+
version: 0.7.0
|
|
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-
|
|
11
|
+
date: 2017-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -192,6 +192,20 @@ dependencies:
|
|
|
192
192
|
- - ">="
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
194
|
version: '0'
|
|
195
|
+
- !ruby/object:Gem::Dependency
|
|
196
|
+
name: pandoc_abnt
|
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - ">="
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: '0'
|
|
202
|
+
type: :runtime
|
|
203
|
+
prerelease: false
|
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - ">="
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: '0'
|
|
195
209
|
description: Com essa ferramenta você poderá escrever sua monografia, dissertação
|
|
196
210
|
ou tese utilizando Markdown (linguagem mais simples que Latex).
|
|
197
211
|
email:
|