limarka 0.7.2.pre7 → 0.7.2
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/CHANGELOG.md +2 -2
- data/lib/limarka/conversor.rb +5 -5
- data/lib/limarka/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9fed953002b9533eee63ec10a0cb46b4d8844f91
|
|
4
|
+
data.tar.gz: 31d6a9228ce201507adbc2ee7d0aef4cccf96e2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b62b3d7cf00f913e70ff95d7f826c616b60aedc1c2b6b436dcfa222162008ae888210e53eb17b0f840de265371caddebab3464b5564c2fff608d07c6e5b163cd
|
|
7
|
+
data.tar.gz: 7273ae8796737df891db7bdb013f997b1163144076b1a51edd55d36dd96b6b6d5f0b53ac00984b2858dd80d4829bb283f1f6614e0528d437e150f4563a02a3f3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [v0.7.2
|
|
4
|
-
[Full Changelog](https://github.com/abntex/limarka/compare/v0.7.1...v0.7.2
|
|
3
|
+
## [v0.7.2](https://github.com/abntex/limarka/tree/v0.7.2) (2017-04-08)
|
|
4
|
+
[Full Changelog](https://github.com/abntex/limarka/compare/v0.7.1...v0.7.2)
|
|
5
5
|
|
|
6
6
|
**Melhorias implementadas:**
|
|
7
7
|
|
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(
|
|
90
|
+
Open3.popen3("pandoc -f markdown \"--data-dir=#{options[:templates_dir]}\" --template=#{template} -t latex --filter #{pandoc_abnt_path}") {|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(
|
|
177
|
+
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|
|
|
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(
|
|
243
|
+
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|
|
|
244
244
|
stdin.write(hash_to_yaml(t.configuracao))
|
|
245
245
|
stdin.write("\n")
|
|
246
246
|
if (condicao_para_conteudo) then
|
|
@@ -250,13 +250,13 @@ module Limarka
|
|
|
250
250
|
stdin.close
|
|
251
251
|
s << stdout.read
|
|
252
252
|
exit_status = wait_thr.value # Process::Status object returned.
|
|
253
|
-
if(exit_status!=0) then puts ("Erro: " + stderr.read
|
|
253
|
+
if(exit_status!=0) then puts ("Erro: " + stderr.read).red end
|
|
254
254
|
}
|
|
255
255
|
s.string
|
|
256
256
|
end
|
|
257
257
|
|
|
258
258
|
def pandoc_abnt_path
|
|
259
|
-
ENV["
|
|
259
|
+
ENV["PANDOC_ABNT_BAT"] or "pandoc_abnt"
|
|
260
260
|
end
|
|
261
261
|
|
|
262
262
|
end
|
data/lib/limarka/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eduardo de Santana Medeiros Alexandre
|
|
@@ -312,9 +312,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
312
312
|
version: '0'
|
|
313
313
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
314
314
|
requirements:
|
|
315
|
-
- - "
|
|
315
|
+
- - ">="
|
|
316
316
|
- !ruby/object:Gem::Version
|
|
317
|
-
version:
|
|
317
|
+
version: '0'
|
|
318
318
|
requirements:
|
|
319
319
|
- pandoc, v1.19.1
|
|
320
320
|
rubyforge_project:
|