limarka 19.7.4.pre.330 → 20.6.8.pre.347

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8614323f7b6d315773ed0012f3d7abb17c796e67bb4c0a366851a5e093c88dc
4
- data.tar.gz: 976e14de35363e442f07dc61f2f70e46ac3aa98489855182bb3263df426f0937
3
+ metadata.gz: 2086ee691d20cd8319ffe7093a7cb5b92fa8bb4355e89481e0ef618c56821cb6
4
+ data.tar.gz: f396d35f44f67c0d99a453db953a0e567bd1ee6e68f442a837d48acd02f132fb
5
5
  SHA512:
6
- metadata.gz: 1e2ee4005ef4efc43e82e74189cac0e962530013706bd27d56b67d2e38a6dc5bb7050ccd174bbd90e7cf0e149f91843e6b23d0d9feda83463e7149eb63626836
7
- data.tar.gz: acfb7f648b287cd43159b2d115614f03b26711e33001f8285e5f27e595c982c67325201653c7309b85e169d60a252c8ee717d444d743df774ec091388b8ab3ed
6
+ metadata.gz: 5192624798d909f0aaec395709aaaf225f721b68647a1b92bbabe5b82cc706c69d809033dcbaf19699290febabb9c00e4470d5fd87bdf18c407d6d5daffb3f9e
7
+ data.tar.gz: 5682f187f8a7928c9576d9fd06c3f63d05020c1093b59ef6b19c97e7903f52c5f4844c3513ea4f980c03d7201be085c49eac4d729c5497539dade46723db867f
data/.gitignore CHANGED
@@ -203,3 +203,4 @@ master.bib
203
203
  test
204
204
  .byebug_history
205
205
  coverage/
206
+ modelo-oficial
@@ -1,3 +0,0 @@
1
- [submodule "modelo-oficial"]
2
- path = modelo-oficial
3
- url = https://github.com/abntex/trabalho-academico-limarka.git
@@ -1,4 +1,4 @@
1
- dist: xenial
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
- - libreoffice --version
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
- - libreoffice --version
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
@@ -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
- Crie uma branch a partir da master para sua funcionalidade:
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 minha-funcionalidade
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|
@@ -35,31 +35,11 @@ namespace :cucumber do
35
35
  end
36
36
  end
37
37
 
38
- task :default => [:configuracao_padrao, 'spec:ruby']
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
 
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env sh
1
2
  # $1: limarka version
2
3
  echo "Gerando imagem do limarka..."
3
4
  docker build -t ruby-latex-pandoc - < containers/ruby-latex-pandoc.dockerfile
@@ -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" = "xenial" ]; then
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 \
@@ -80,16 +78,21 @@ if [ "$codename" = "xenial" ]; then
80
78
  wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
81
79
  tlmgr install abntex2 \
82
80
  babel-portuges \
81
+ bookmark \
83
82
  enumitem \
83
+ epstopdf-pkg \
84
84
  ifetex \
85
85
  lastpage \
86
86
  lipsum \
87
87
  listings \
88
+ ltcaption \
88
89
  memoir \
89
90
  microtype \
91
+ pdflscape \
90
92
  pdfpages \
91
93
  textcase \
92
94
  xcolor
95
+
93
96
  tlmgr option -- autobackup 0
94
97
  else
95
98
  $dry wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" \| sh
@@ -113,10 +116,10 @@ if [ "$codename" = "xenial" ]; then
113
116
 
114
117
  fi #tex
115
118
 
116
- fi # xenial
119
+ fi #
117
120
 
118
121
  if [ -n "$pandoc" ];
119
122
  then
120
- $dry wget -nv https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb
123
+ $dry wget -nv https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb
121
124
  $dry sudo dpkg -i pandoc-*.deb && $dry rm pandoc-*.deb
122
125
  fi
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env sh
2
+
3
+ sudo apt-get install -y -qq \
4
+ language-pack-pt \
5
+ locales \
6
+ pdfgrep \
7
+ poppler-utils \
8
+ unzip
@@ -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 memoir abntex2 lastpage microtype lipsum pdfpages ifetex textcase enumitem xcolor babel-portuges listings
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/* \
@@ -2,7 +2,6 @@ require "limarka/version"
2
2
  require "limarka/cli"
3
3
  require "limarka/trabalho"
4
4
  require "limarka/cronograma"
5
- require "limarka/pdfconf"
6
5
  require "limarka/check"
7
6
 
8
7
  module Limarka
@@ -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
@@ -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'
@@ -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'
@@ -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
-
@@ -1,4 +1,4 @@
1
1
  module Limarka
2
2
  # O Versionamento é ano e mês
3
- VERSION = "19.7.4"
3
+ VERSION = "20.6.8"
4
4
  end
@@ -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: 19.7.4.pre.330
4
+ version: 20.6.8.pre.347
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: 2019-07-11 00:00:00.000000000 Z
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
@@ -316,6 +288,9 @@ files:
316
288
  - bin/console
317
289
  - bin/deploy-docker.sh
318
290
  - bin/instalador.sh
291
+ - bin/instaladores/dependencias_install.sh
292
+ - bin/instaladores/pandoc_install.sh
293
+ - bin/instaladores/tinytex_install.sh
319
294
  - bin/setup
320
295
  - bin/test
321
296
  - changelogs/codelog.yml
@@ -329,6 +304,7 @@ files:
329
304
  - changelogs/template.yml
330
305
  - changelogs/unreleased/.gitkeep
331
306
  - changelogs/unreleased/20190705161205868_simplificando.yml
307
+ - changelogs/unreleased/20200608091738394_remove_dependencias.yml
332
308
  - containers/limarka.dockerfile
333
309
  - containers/ruby-latex-pandoc.dockerfile
334
310
  - docs/paper/codemeta.json
@@ -365,7 +341,7 @@ files:
365
341
  - lib/limarka/configuracao.rb
366
342
  - lib/limarka/conversor.rb
367
343
  - lib/limarka/cronograma.rb
368
- - lib/limarka/pdfconf.rb
344
+ - lib/limarka/pdfconf_remover.rb
369
345
  - lib/limarka/ref.rb
370
346
  - lib/limarka/trabalho.rb
371
347
  - lib/limarka/version.rb
@@ -390,8 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
390
366
  - !ruby/object:Gem::Version
391
367
  version: 1.3.1
392
368
  requirements: []
393
- rubyforge_project:
394
- rubygems_version: 2.7.7
369
+ rubygems_version: 3.0.6
395
370
  signing_key:
396
371
  specification_version: 4
397
372
  summary: Ferramenta para compilação de trabalhos acadêmicos com markdown e abnTeX2