limarka 19.7.3 → 20.6.8.pre.349
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +12 -0
- data/.gitignore +1 -0
- data/.gitmodules +0 -3
- data/.travis.yml +10 -17
- data/CONTRIBUTING.md +4 -5
- data/Rakefile +4 -24
- data/bin/build-docker.sh +1 -0
- data/bin/instalador.sh +10 -6
- data/bin/instaladores/dependencias_install.sh +8 -0
- data/bin/instaladores/pandoc_install.sh +20 -0
- data/bin/instaladores/tinytex_install.sh +25 -0
- data/bin/setup +4 -0
- data/changelogs/unreleased/20190705161205868_simplificando.yml +2 -0
- data/changelogs/unreleased/20200608091738394_remove_dependencias.yml +22 -0
- data/containers/ruby-latex-pandoc.dockerfile +17 -2
- data/lib/limarka.rb +0 -1
- data/lib/limarka/cli.rb +0 -3
- data/lib/limarka/configuracao.rb +0 -1
- data/lib/limarka/conversor.rb +3 -24
- data/lib/limarka/{pdfconf.rb → pdfconf_remover.rb} +0 -0
- data/lib/limarka/ref.rb +2 -7
- data/lib/limarka/version.rb +1 -1
- data/limarka.gemspec +2 -2
- metadata +12 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc2d01c46ad0c8b68a01240f9a9a4ef7a40a3721bd72ddeed020f7d7761d0acf
|
4
|
+
data.tar.gz: 62db4e60e6d72257b1861dc8eba35937e119b2266bf6fc61d262236a588d4c56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1f257a131225a79b8293b5625a2ba7e4de4a4fb2c139b86077a154f88ee6182cba8a71ffe088ffb1a66403646c45f9c86fceaa4b4c6a233b53ec67bbdb8620c
|
7
|
+
data.tar.gz: 154ce6e6cf44e55785583f6147357efa02ee48b6d237e85b85ce8c429ed65bb44c6d60531eaf729a183dc1d44292e1eb2e86f23689417ceb9a3704466b1bd7b2
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# These are supported funding model platforms
|
2
|
+
|
3
|
+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
4
|
+
patreon: # Replace with a single Patreon username
|
5
|
+
open_collective: limarka
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
7
|
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
11
|
+
otechie: # Replace with a single Otechie username
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
data/.gitignore
CHANGED
data/.gitmodules
CHANGED
data/.travis.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
dist:
|
1
|
+
dist: bionic
|
2
2
|
sudo: required
|
3
3
|
language: ruby
|
4
4
|
services:
|
@@ -16,8 +16,7 @@ jobs:
|
|
16
16
|
- bin/instalador.sh -dp
|
17
17
|
before_script:
|
18
18
|
- pandoc -v
|
19
|
-
-
|
20
|
-
- pdftk --version
|
19
|
+
- git clone https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
|
21
20
|
script:
|
22
21
|
- bundle exec rake spec:ruby
|
23
22
|
- bundle exec rake cucumber:ruby
|
@@ -34,13 +33,17 @@ jobs:
|
|
34
33
|
- xelatex -v
|
35
34
|
- pdftotext -v
|
36
35
|
- pandoc -v
|
37
|
-
-
|
38
|
-
- pdftk --version
|
36
|
+
- git clone https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
|
39
37
|
script:
|
38
|
+
- bundle exec rspec spec/dependencias/latex_spec.rb
|
39
|
+
- bundle exec rspec spec/simples_spec.rb
|
40
40
|
- bundle exec rake spec:pdf
|
41
41
|
- bundle exec rake cucumber:pdf
|
42
42
|
after_failure:
|
43
43
|
- cat test/latex/exemplo-minimo/xxx-Monografia.log
|
44
|
+
- cat tmp/simples/xxx-trabalho-academico.tex
|
45
|
+
- cat tmp/simples/xxx-trabalho-academico.log
|
46
|
+
- cat tmp/simples/xxx-trabalho-academico.txt
|
44
47
|
- stage: deploy
|
45
48
|
install: skip
|
46
49
|
script: echo tag $TRAVIS_TAG slug $TRAVIS_REPO_SLUG branch $TRAVIS_BRANCH
|
@@ -49,22 +52,12 @@ jobs:
|
|
49
52
|
api_key:
|
50
53
|
secure: YLuHbYsHGPTHoXIBr874CbIAn0/z0H0B8aW39NDQIwk7SMsd4HBgTq/6zgtUVLsp3AO9daHzk0FGcMKAOh9fxFzUuA5MmQTdQA8A3VI7JRM2BEVl8x6Hw2bjMTYMCAVGNGZT9oFKIq2lHByf9zDoQlT7CobKCY3Ofa0MTKcGgvfnqaW+VGosKrcYyZ9HPxBkH8SGnzef1joIcdtWOi3HHV28AacgRslWEkwTmYrsQcamTafQazuIbdhQ5UzvKS6PuIX56wvP6ugy9QTPtsU82x7oaDk+5e8ULJ2BMu/jwM4H3/aJ8ASg17a2EeIJRFckjQpMc+P3WCnbTu4tV2NqsXRzNmTcqwsM4bHTX2/WPlvVNwmTE9f5wSR9uCoQbDvCimCoo0miAE7xMbik0zvWVYZFtIcw3Rn+F+36jXXzY5xLSSYIZgJATbQgnNrYzCs54mUtmF+kUhYzDov4VfYcbc4ihEP6A/AdxvxuO4/xkGIsxlzxjCSw/Bs369zDXO5uUtORSQsLYPW4gZM+p++UMR63l7Radaq45HX0AVtkg9oWMj/UO8XCE2nMEUelcfeseuyy8ZB/Ga97KFVQH/LZLJYYU8+qDXQdfe8oWOlthuOA2QKyErDWQ9YWW2LVRhTacVjLBkYeChgpCReT1FDW982jfSWFCJTtb/XkM+D/90U=
|
51
54
|
on:
|
52
|
-
|
53
|
-
only:
|
54
|
-
- master
|
55
|
-
- provider: rubygems
|
56
|
-
api_key:
|
57
|
-
secure: YLuHbYsHGPTHoXIBr874CbIAn0/z0H0B8aW39NDQIwk7SMsd4HBgTq/6zgtUVLsp3AO9daHzk0FGcMKAOh9fxFzUuA5MmQTdQA8A3VI7JRM2BEVl8x6Hw2bjMTYMCAVGNGZT9oFKIq2lHByf9zDoQlT7CobKCY3Ofa0MTKcGgvfnqaW+VGosKrcYyZ9HPxBkH8SGnzef1joIcdtWOi3HHV28AacgRslWEkwTmYrsQcamTafQazuIbdhQ5UzvKS6PuIX56wvP6ugy9QTPtsU82x7oaDk+5e8ULJ2BMu/jwM4H3/aJ8ASg17a2EeIJRFckjQpMc+P3WCnbTu4tV2NqsXRzNmTcqwsM4bHTX2/WPlvVNwmTE9f5wSR9uCoQbDvCimCoo0miAE7xMbik0zvWVYZFtIcw3Rn+F+36jXXzY5xLSSYIZgJATbQgnNrYzCs54mUtmF+kUhYzDov4VfYcbc4ihEP6A/AdxvxuO4/xkGIsxlzxjCSw/Bs369zDXO5uUtORSQsLYPW4gZM+p++UMR63l7Radaq45HX0AVtkg9oWMj/UO8XCE2nMEUelcfeseuyy8ZB/Ga97KFVQH/LZLJYYU8+qDXQdfe8oWOlthuOA2QKyErDWQ9YWW2LVRhTacVjLBkYeChgpCReT1FDW982jfSWFCJTtb/XkM+D/90U=
|
58
|
-
on:
|
59
|
-
tag: true
|
60
|
-
all_branches: true
|
55
|
+
branch: master
|
61
56
|
- provider: script
|
62
57
|
script: bin/build-docker.sh && bin/deploy-docker.sh
|
63
58
|
on:
|
64
59
|
repo: abntex/limarka
|
65
|
-
|
66
|
-
only:
|
67
|
-
- master
|
60
|
+
branch: master
|
68
61
|
- provider: script
|
69
62
|
script: bin/build-docker.sh && bin/deploy-docker.sh $TRAVIS_TAG
|
70
63
|
on:
|
data/CONTRIBUTING.md
CHANGED
@@ -75,8 +75,6 @@ Para compreender a funcionalidade veja o site [http://shields.io](http://shields
|
|
75
75
|
Realize um fork no projeto, depois faça o clone do seu fork:
|
76
76
|
|
77
77
|
git clone git@github.com:your-username/limarka.git
|
78
|
-
git submodule init
|
79
|
-
git submodule update
|
80
78
|
|
81
79
|
Configure sua máquina:
|
82
80
|
|
@@ -86,9 +84,10 @@ Certifique-se que os testes estão passando:
|
|
86
84
|
|
87
85
|
rake
|
88
86
|
|
89
|
-
|
87
|
+
Escreva [o codelog](https://github.com/codus/codelog) da funcionalidade que deseja implementar:
|
88
|
+
|
89
|
+
codelog new <NAME>
|
90
90
|
|
91
|
-
git checkout -b minha-funcionalidade
|
92
91
|
|
93
92
|
Realize as alterações. Adicione testes (opicional, mas desejado) para as suas mudanças. Faça os testes passarem:
|
94
93
|
|
@@ -100,7 +99,7 @@ Se existir um Issue referente a funcionalidade implementada [utilize o número d
|
|
100
99
|
|
101
100
|
Faça um Push para o seu fork:
|
102
101
|
|
103
|
-
git push origin
|
102
|
+
git push origin
|
104
103
|
|
105
104
|
[Submeta um pull request](https://github.com/abntex/limarka/compare/). Altere o título do issue/PR para o texto que deseja ser adicionado ao [CHANGELOG](https://github.com/abntex/limarka/blob/master/CHANGELOG.md)
|
106
105
|
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ require 'colorize'
|
|
6
6
|
require 'open3'
|
7
7
|
require 'yaml'
|
8
8
|
require 'rake/clean'
|
9
|
-
require 'pdf_forms'
|
9
|
+
#require 'pdf_forms'
|
10
10
|
|
11
11
|
desc 'Executa os testes ruby'
|
12
12
|
RSpec::Core::RakeTask.new('spec:ruby') do |t|
|
@@ -26,40 +26,20 @@ end
|
|
26
26
|
namespace :cucumber do
|
27
27
|
desc 'Executa testes cucumber que NÃO envolvem gerão de pdfs'
|
28
28
|
task :ruby do
|
29
|
-
system "cucumber -t 'not @pdf'"
|
29
|
+
system "cucumber -t 'not @pdf' -f progress"
|
30
30
|
end
|
31
31
|
|
32
32
|
desc 'Executa testes cucumber que envolvem gerão de pdfs'
|
33
33
|
task :pdf do
|
34
|
-
system "cucumber -t '@pdf'"
|
34
|
+
system "cucumber -t '@pdf' -f progress"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
task :default => [
|
38
|
+
task :default => ['spec:ruby']
|
39
39
|
|
40
40
|
# http://stackoverflow.com/questions/19841865/ruby-gem-to-extract-form-data-from-fillable-pdf
|
41
41
|
# https://github.com/jkraemer/pdf-forms/blob/master/test/pdf_test.rb
|
42
42
|
|
43
|
-
namespace :pdf do
|
44
|
-
## "Imprime a configuração em PDF"
|
45
|
-
task :test => ["configuracao.pdf"] do
|
46
|
-
@pdftk = PdfForms.new 'pdftk'
|
47
|
-
pdf = PdfForms::Pdf.new 'configuracao.pdf', @pdftk, utf8_fields: true
|
48
|
-
puts "Fields: #{pdf.fields}"
|
49
|
-
puts "Título do tabalho: #{pdf.field('title').value}"
|
50
|
-
puts "Autor: #{pdf.field('autor').value}"
|
51
|
-
puts "Ano: #{pdf.field('date').value}"
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
desc 'Cria configuração padrão para execução dos testes, o libreoffice precisa está fechado!'
|
56
|
-
task :configuracao_padrao do
|
57
|
-
Dir.chdir('modelo-oficial') do
|
58
|
-
system "libreoffice --headless --convert-to pdf configuracao.odt"
|
59
|
-
end
|
60
|
-
configuracao_padrao_spec_dir = File.absolute_path('spec/configuracao_padrao')
|
61
|
-
system 'bundle', 'exec', 'limarka', 'configuracao', 'exporta', '-o', configuracao_padrao_spec_dir,'-i','modelo-oficial'
|
62
|
-
end
|
63
43
|
|
64
44
|
directory 'dissertacao-limarka/output'
|
65
45
|
|
data/bin/build-docker.sh
CHANGED
data/bin/instalador.sh
CHANGED
@@ -49,15 +49,13 @@ while getopts "Dcdtpn" opt; do
|
|
49
49
|
done
|
50
50
|
|
51
51
|
# ler distribuição: lsb_release -c -s
|
52
|
-
if [ "$codename" = "
|
52
|
+
if [ "$codename" = "bionic" ]; then
|
53
53
|
|
54
54
|
if [ -n "$dependencias" ]; then
|
55
55
|
$dry sudo apt-get install -y -qq \
|
56
56
|
language-pack-pt \
|
57
|
-
libreoffice \
|
58
57
|
locales \
|
59
58
|
pdfgrep \
|
60
|
-
pdftk \
|
61
59
|
poppler-utils \
|
62
60
|
ruby-full \
|
63
61
|
unzip \
|
@@ -78,18 +76,24 @@ if [ "$codename" = "xenial" ]; then
|
|
78
76
|
else
|
79
77
|
if [ -z "$dry" ]; then
|
80
78
|
wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
|
81
|
-
tlmgr install
|
79
|
+
tlmgr install \
|
80
|
+
abntex2 \
|
82
81
|
babel-portuges \
|
82
|
+
bookmark \
|
83
83
|
enumitem \
|
84
|
+
epstopdf-pkg \
|
84
85
|
ifetex \
|
85
86
|
lastpage \
|
86
87
|
lipsum \
|
87
88
|
listings \
|
89
|
+
ltcaption \
|
88
90
|
memoir \
|
89
91
|
microtype \
|
92
|
+
pdflscape \
|
90
93
|
pdfpages \
|
91
94
|
textcase \
|
92
95
|
xcolor
|
96
|
+
|
93
97
|
tlmgr option -- autobackup 0
|
94
98
|
else
|
95
99
|
$dry wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" \| sh
|
@@ -113,10 +117,10 @@ if [ "$codename" = "xenial" ]; then
|
|
113
117
|
|
114
118
|
fi #tex
|
115
119
|
|
116
|
-
fi #
|
120
|
+
fi #
|
117
121
|
|
118
122
|
if [ -n "$pandoc" ];
|
119
123
|
then
|
120
|
-
$dry wget -nv https://github.com/jgm/pandoc/releases/download/2.
|
124
|
+
$dry wget -nv https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb
|
121
125
|
$dry sudo dpkg -i pandoc-*.deb && $dry rm pandoc-*.deb
|
122
126
|
fi
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env sh
|
2
|
+
|
3
|
+
quiet=0
|
4
|
+
PANDOC_DEB=https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb
|
5
|
+
|
6
|
+
while getopts "q" opt; do
|
7
|
+
case $opt in
|
8
|
+
q)
|
9
|
+
quiet=1
|
10
|
+
;;
|
11
|
+
esac
|
12
|
+
done
|
13
|
+
|
14
|
+
if [ $quiet eq 1 ]
|
15
|
+
wget -nv $PANDOC_DEB
|
16
|
+
else
|
17
|
+
wget -c $PANDOC_DEB
|
18
|
+
fi
|
19
|
+
|
20
|
+
sudo dpkg -i pandoc-*.deb && rm pandoc-*.deb
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env sh
|
2
|
+
|
3
|
+
if command -v tlmgr > /dev/null; then
|
4
|
+
tex_em_cache=1
|
5
|
+
echo TinyTeX não será instalado pois foi encontrado no cache.
|
6
|
+
fi
|
7
|
+
|
8
|
+
if [ $tex_em_cache -eq 1 ]; then
|
9
|
+
: #echo TinyTeX não será instalado.
|
10
|
+
else
|
11
|
+
wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
|
12
|
+
tlmgr install abntex2 \
|
13
|
+
babel-portuges \
|
14
|
+
enumitem \
|
15
|
+
ifetex \
|
16
|
+
lastpage \
|
17
|
+
lipsum \
|
18
|
+
listings \
|
19
|
+
memoir \
|
20
|
+
microtype \
|
21
|
+
pdfpages \
|
22
|
+
textcase \
|
23
|
+
xcolor
|
24
|
+
tlmgr option -- autobackup 0
|
25
|
+
fi
|
data/bin/setup
CHANGED
@@ -7,6 +7,10 @@ bundle install
|
|
7
7
|
|
8
8
|
# Do any other automated setup that you need to do here
|
9
9
|
|
10
|
+
# Baixando modelo-oficial
|
11
|
+
git clone https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
|
12
|
+
# git clone git@github.com:abntex/trabalho-academico-limarka.git modelo-oficial
|
13
|
+
|
10
14
|
|
11
15
|
# tlmgr update --self --all
|
12
16
|
# tlmgr path add
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"Melhorias implementadas":
|
2
|
+
- Nova funcionalidade implementada
|
3
|
+
|
4
|
+
"Mudanças":
|
5
|
+
- As configurações serão possíveis apenas a partir de arquivo YAML
|
6
|
+
|
7
|
+
"Deprecated":
|
8
|
+
- Funcionalidades que serão removidas em breve
|
9
|
+
|
10
|
+
"Removido":
|
11
|
+
- Arquivo de configuração em pdf [#169](https://github.com/abntex/limarka/issues/169)
|
12
|
+
- Dependências de execução pdftk [#169](https://github.com/abntex/limarka/issues/169)
|
13
|
+
- Dependências do clipboard [#169](https://github.com/abntex/limarka/issues/169)
|
14
|
+
|
15
|
+
"Correções":
|
16
|
+
- Alterações em código com erro
|
17
|
+
|
18
|
+
"Segurança":
|
19
|
+
- Mudanças que corrigem vulnerabilidade
|
20
|
+
|
21
|
+
"Deploy notes":
|
22
|
+
- Mudanças que impactam no processo de implantação
|
@@ -10,7 +10,6 @@ RUN apt-get update && apt-get install -y -qq \
|
|
10
10
|
fontconfig \
|
11
11
|
locales \
|
12
12
|
pdfgrep \
|
13
|
-
pdftk \
|
14
13
|
poppler-utils \
|
15
14
|
unzip \
|
16
15
|
wget
|
@@ -20,7 +19,23 @@ RUN wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
|
|
20
19
|
ENV PATH="/root/bin:${PATH}"
|
21
20
|
|
22
21
|
# instala bibliotecas para o abntex2/limarka
|
23
|
-
RUN tlmgr install
|
22
|
+
RUN tlmgr install \
|
23
|
+
abntex2 \
|
24
|
+
babel-portuges \
|
25
|
+
bookmark \
|
26
|
+
enumitem \
|
27
|
+
epstopdf-pkg \
|
28
|
+
ifetex \
|
29
|
+
lastpage \
|
30
|
+
lipsum \
|
31
|
+
listings \
|
32
|
+
ltcaption \
|
33
|
+
memoir \
|
34
|
+
microtype \
|
35
|
+
pdflscape \
|
36
|
+
pdfpages \
|
37
|
+
textcase \
|
38
|
+
xcolor
|
24
39
|
|
25
40
|
# Configurando o idioma português #175: https://hub.docker.com/_/debian/#locales
|
26
41
|
RUN rm -rf /var/lib/apt/lists/* \
|
data/lib/limarka.rb
CHANGED
data/lib/limarka/cli.rb
CHANGED
@@ -1,14 +1,11 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
require "thor"
|
3
|
-
require 'pdf_forms'
|
4
3
|
require 'yaml'
|
5
4
|
require 'colorize'
|
6
5
|
require 'open3'
|
7
|
-
|
8
6
|
require 'limarka/configuracao'
|
9
7
|
require 'limarka/ref'
|
10
8
|
require 'limarka/conversor'
|
11
|
-
require 'clipboard'
|
12
9
|
require 'terminal-table'
|
13
10
|
|
14
11
|
module Limarka
|
data/lib/limarka/configuracao.rb
CHANGED
data/lib/limarka/conversor.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
require "thor"
|
3
|
-
require 'pdf_forms'
|
4
3
|
require 'yaml'
|
5
4
|
require 'colorize'
|
6
5
|
require 'open3'
|
@@ -215,7 +214,7 @@ module Limarka
|
|
215
214
|
end
|
216
215
|
|
217
216
|
def texto_tex_file
|
218
|
-
"#{options[:output_dir]}/#{Conversor.tex_file
|
217
|
+
"#{options[:output_dir]}/#{Conversor.tex_file}"
|
219
218
|
end
|
220
219
|
def pdf_file
|
221
220
|
texto_tex_file.sub('.tex','.pdf')
|
@@ -229,28 +228,8 @@ module Limarka
|
|
229
228
|
# não faz nada por enquanto
|
230
229
|
end
|
231
230
|
|
232
|
-
def self.tex_file(
|
233
|
-
|
234
|
-
'xxx-Monografia-projeto.tex'
|
235
|
-
elsif (configuracao['graduacao'] and not configuracao['projeto']) then
|
236
|
-
'xxx-Monografia.tex'
|
237
|
-
elsif (configuracao['especializacao'] and configuracao['projeto']) then
|
238
|
-
'xxx-TFC-projeto.tex'
|
239
|
-
elsif (configuracao['especializacao'] and not configuracao['projeto']) then
|
240
|
-
'xxx-TFC.tex'
|
241
|
-
elsif (configuracao['mestrado'] and configuracao['projeto']) then
|
242
|
-
'xxx-Dissertacao-projeto.tex'
|
243
|
-
elsif (configuracao['mestrado'] and not configuracao['projeto']) then
|
244
|
-
'xxx-Dissertacao.tex'
|
245
|
-
elsif (configuracao['doutorado'] and configuracao['projeto']) then
|
246
|
-
'xxx-Tese-projeto.tex'
|
247
|
-
elsif (configuracao['doutorado'] and not configuracao['projeto']) then
|
248
|
-
'xxx-Tese.tex'
|
249
|
-
else
|
250
|
-
# valor padrão, caso não configurado.
|
251
|
-
'xxx-Monografia-projeto.tex'
|
252
|
-
end
|
253
|
-
|
231
|
+
def self.tex_file()
|
232
|
+
"xxx-trabalho-academico.tex"
|
254
233
|
end
|
255
234
|
|
256
235
|
private
|
File without changes
|
data/lib/limarka/ref.rb
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
require "thor"
|
3
3
|
require 'open3'
|
4
4
|
require 'bibtex'
|
5
|
-
require 'clipboard'
|
6
5
|
|
7
6
|
module Limarka
|
8
7
|
|
@@ -12,7 +11,7 @@ module Limarka
|
|
12
11
|
# @see Cli
|
13
12
|
class Ref < Thor
|
14
13
|
include Thor::Actions
|
15
|
-
|
14
|
+
|
16
15
|
method_option :clipboard, :aliases => '-c', :desc => 'Incluir referência bibtex do clipboard (área de transferência)', :default => false, :type => :boolean
|
17
16
|
method_option :bibfile, :aliases => '-f', :desc => 'Arquivo de referências bibtex onde será incluído a referência', :default => "referencias.bib", :type => :string
|
18
17
|
desc "add", "Adiciona referência ao arquivo de bibliografia."
|
@@ -21,8 +20,6 @@ Quando você estiver navegando poderá copiar a referência bibtex (do google ac
|
|
21
20
|
DESC
|
22
21
|
def add
|
23
22
|
if (options[:clipboard]) then
|
24
|
-
referencia = Clipboard.paste
|
25
|
-
else
|
26
23
|
referencia = $stdin.read
|
27
24
|
end
|
28
25
|
begin
|
@@ -30,7 +27,7 @@ DESC
|
|
30
27
|
error = entry.length.zero?
|
31
28
|
if not error then
|
32
29
|
append_to_file options[:bibfile], referencia
|
33
|
-
|
30
|
+
|
34
31
|
puts <<MSG
|
35
32
|
A seguinte referência foi adicionado ao arquivo '#{options[:bibfile]}':
|
36
33
|
#{referencia}
|
@@ -48,5 +45,3 @@ MSG
|
|
48
45
|
end
|
49
46
|
end
|
50
47
|
end
|
51
|
-
|
52
|
-
|
data/lib/limarka/version.rb
CHANGED
data/limarka.gemspec
CHANGED
@@ -39,10 +39,10 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency "cucumber"
|
40
40
|
spec.add_development_dependency "aruba"
|
41
41
|
|
42
|
-
spec.add_dependency "clipboard"
|
42
|
+
#spec.add_dependency "clipboard"
|
43
43
|
spec.add_dependency "ffi"
|
44
44
|
spec.add_dependency "colorize"
|
45
|
-
spec.add_dependency "pdf-forms", "~> 1.2"
|
45
|
+
#spec.add_dependency "pdf-forms", "~> 1.2"
|
46
46
|
spec.add_dependency "pandoc-ruby"
|
47
47
|
spec.add_dependency "thor"
|
48
48
|
spec.add_dependency "bibtex-ruby"
|
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:
|
4
|
+
version: 20.6.8.pre.349
|
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:
|
11
|
+
date: 2020-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,20 +136,6 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: clipboard
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: ffi
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,20 +164,6 @@ dependencies:
|
|
178
164
|
- - ">="
|
179
165
|
- !ruby/object:Gem::Version
|
180
166
|
version: '0'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: pdf-forms
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '1.2'
|
188
|
-
type: :runtime
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '1.2'
|
195
167
|
- !ruby/object:Gem::Dependency
|
196
168
|
name: pandoc-ruby
|
197
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -299,6 +271,7 @@ executables:
|
|
299
271
|
extensions: []
|
300
272
|
extra_rdoc_files: []
|
301
273
|
files:
|
274
|
+
- ".github/FUNDING.yml"
|
302
275
|
- ".gitignore"
|
303
276
|
- ".gitmodules"
|
304
277
|
- ".rspec"
|
@@ -315,6 +288,9 @@ files:
|
|
315
288
|
- bin/console
|
316
289
|
- bin/deploy-docker.sh
|
317
290
|
- bin/instalador.sh
|
291
|
+
- bin/instaladores/dependencias_install.sh
|
292
|
+
- bin/instaladores/pandoc_install.sh
|
293
|
+
- bin/instaladores/tinytex_install.sh
|
318
294
|
- bin/setup
|
319
295
|
- bin/test
|
320
296
|
- changelogs/codelog.yml
|
@@ -327,6 +303,8 @@ files:
|
|
327
303
|
- changelogs/releases/19.7.md
|
328
304
|
- changelogs/template.yml
|
329
305
|
- changelogs/unreleased/.gitkeep
|
306
|
+
- changelogs/unreleased/20190705161205868_simplificando.yml
|
307
|
+
- changelogs/unreleased/20200608091738394_remove_dependencias.yml
|
330
308
|
- containers/limarka.dockerfile
|
331
309
|
- containers/ruby-latex-pandoc.dockerfile
|
332
310
|
- docs/paper/codemeta.json
|
@@ -363,7 +341,7 @@ files:
|
|
363
341
|
- lib/limarka/configuracao.rb
|
364
342
|
- lib/limarka/conversor.rb
|
365
343
|
- lib/limarka/cronograma.rb
|
366
|
-
- lib/limarka/
|
344
|
+
- lib/limarka/pdfconf_remover.rb
|
367
345
|
- lib/limarka/ref.rb
|
368
346
|
- lib/limarka/trabalho.rb
|
369
347
|
- lib/limarka/version.rb
|
@@ -384,12 +362,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
384
362
|
version: '0'
|
385
363
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
386
364
|
requirements:
|
387
|
-
- - "
|
365
|
+
- - ">"
|
388
366
|
- !ruby/object:Gem::Version
|
389
|
-
version:
|
367
|
+
version: 1.3.1
|
390
368
|
requirements: []
|
391
|
-
|
392
|
-
rubygems_version: 2.7.7
|
369
|
+
rubygems_version: 3.0.6
|
393
370
|
signing_key:
|
394
371
|
specification_version: 4
|
395
372
|
summary: Ferramenta para compilação de trabalhos acadêmicos com markdown e abnTeX2
|