limarka 20.6.8.pre.347 → 20.6.8.pre.354

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2086ee691d20cd8319ffe7093a7cb5b92fa8bb4355e89481e0ef618c56821cb6
4
- data.tar.gz: f396d35f44f67c0d99a453db953a0e567bd1ee6e68f442a837d48acd02f132fb
3
+ metadata.gz: 2cdced2bed63c39cd0d7a3c53f0d173f0c6055b7c126357b093c0190bd6f4376
4
+ data.tar.gz: 819791f59b79d7dc9eab61ce3db6d29d8ad1aed6bbf43a148f7d0ae873ec7d8a
5
5
  SHA512:
6
- metadata.gz: 5192624798d909f0aaec395709aaaf225f721b68647a1b92bbabe5b82cc706c69d809033dcbaf19699290febabb9c00e4470d5fd87bdf18c407d6d5daffb3f9e
7
- data.tar.gz: 5682f187f8a7928c9576d9fd06c3f63d05020c1093b59ef6b19c97e7903f52c5f4844c3513ea4f980c03d7201be085c49eac4d729c5497539dade46723db867f
6
+ metadata.gz: e47ba713bec00ae9097b4110015fbba740f19b351eeb382cb0c4b68a85578b8c02bcad4d7c7baacc46cfdccc7fed8e4755ee2ab64bd0bdd6865c9e14bed3d0ab
7
+ data.tar.gz: 12287d6639af0445c9ee62e25bb61676028afb802eab92395db6fe6fbf8eafd813409ac812c9b739fcc245a8ae0c23467a87d2542b7e90a0101d637e94a75800
@@ -11,29 +11,35 @@ env:
11
11
  jobs:
12
12
  include:
13
13
  - stage: testes
14
+ name: "Testes do ruby (sem compilação pdf)"
14
15
  before_install:
15
16
  - sudo apt-get update -qq
16
- - bin/instalador.sh -dp
17
+ - bin/instaladores/dependencias_execucao_install.sh && bin/instaladores/dependencias_desenvolvimento_install.sh
18
+ - bin/instaladores/pandoc_install.sh -q
17
19
  before_script:
18
20
  - pandoc -v
19
- - git clone https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
21
+ - git clone --depth=1 https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
20
22
  script:
21
23
  - bundle exec rake spec:ruby
22
24
  - bundle exec rake cucumber:ruby
23
25
  - stage: testes
26
+ name: "Testes do latex (com compilação pdf)"
24
27
  cache:
25
28
  directories:
26
29
  - $HOME/.TinyTeX
27
30
  before_install:
28
31
  - sudo apt-get update -qq
29
- - export PATH=$PATH:~/.TinyTeX2/bin/x86_64-linux
30
- - bin/instalador.sh -dptc
32
+ - bin/instaladores/dependencias_execucao_install.sh && bin/instaladores/dependencias_desenvolvimento_install.sh
33
+ - bin/instaladores/pandoc_install.sh -q
34
+ - bin/instaladores/tinytex_install.sh
35
+ - export PATH=$PATH:~/.TinyTeX/bin/x86_64-linux
31
36
  before_script:
37
+ - tlmgr --version && tlmgr show --only-installed
32
38
  - latexmk -v
33
39
  - xelatex -v
34
40
  - pdftotext -v
35
41
  - pandoc -v
36
- - git clone https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
42
+ - git clone --depth=1 https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
37
43
  script:
38
44
  - bundle exec rspec spec/dependencias/latex_spec.rb
39
45
  - bundle exec rspec spec/simples_spec.rb
@@ -52,23 +58,15 @@ jobs:
52
58
  api_key:
53
59
  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=
54
60
  on:
55
- branches:
56
- only:
57
- - master
58
- - provider: rubygems
59
- api_key:
60
- 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=
61
- on:
62
- tag: true
63
- all_branches: true
61
+ branch: master
64
62
  - provider: script
65
63
  script: bin/build-docker.sh && bin/deploy-docker.sh
66
64
  on:
67
65
  repo: abntex/limarka
68
- branches:
69
- only:
70
- - master
66
+ branch: master
71
67
  - provider: script
72
68
  script: bin/build-docker.sh && bin/deploy-docker.sh $TRAVIS_TAG
73
69
  on:
74
70
  tags: true
71
+ after_failure:
72
+ - cat /root/.TinyTeX/texmf-var/web2c/tlmgr.log
@@ -52,14 +52,21 @@ done
52
52
  if [ "$codename" = "bionic" ]; then
53
53
 
54
54
  if [ -n "$dependencias" ]; then
55
- $dry sudo apt-get install -y -qq \
55
+ $dry sudo apt-get install -y -qq --no-install-recommends \
56
56
  language-pack-pt \
57
57
  locales \
58
58
  pdfgrep \
59
59
  poppler-utils \
60
- ruby-full \
60
+ ruby-bundler \
61
+ ruby-json \
62
+ ruby-ffi \
63
+ libffi-dev \
61
64
  unzip \
62
- xclip
65
+ xclip \
66
+ wget \
67
+ perl \
68
+ luajit \
69
+ python
63
70
  fi
64
71
 
65
72
  if [ -n "$tex" ]; then
@@ -76,36 +83,46 @@ if [ "$codename" = "bionic" ]; then
76
83
  else
77
84
  if [ -z "$dry" ]; then
78
85
  wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
79
- tlmgr install abntex2 \
86
+ tlmgr install \
87
+ abntex2 \
80
88
  babel-portuges \
81
89
  bookmark \
90
+ caption \
82
91
  enumitem \
83
92
  epstopdf-pkg \
84
- ifetex \
85
93
  lastpage \
86
94
  lipsum \
87
95
  listings \
88
- ltcaption \
89
96
  memoir \
90
97
  microtype \
91
98
  pdflscape \
92
99
  pdfpages \
100
+ psnfss \
101
+ shipunov \
102
+ texliveonfly \
93
103
  textcase \
94
104
  xcolor
95
105
 
96
106
  tlmgr option -- autobackup 0
97
107
  else
98
108
  $dry wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" \| sh
99
- $dry tlmgr install abntex2 \
109
+ $dry tlmgr install \
110
+ abntex2 \
100
111
  babel-portuges \
112
+ bookmark \
113
+ caption \
101
114
  enumitem \
102
- ifetex \
115
+ epstopdf-pkg \
103
116
  lastpage \
104
117
  lipsum \
105
118
  listings \
106
119
  memoir \
107
120
  microtype \
121
+ pdflscape \
108
122
  pdfpages \
123
+ psnfss \
124
+ shipunov \
125
+ texliveonfly \
109
126
  textcase \
110
127
  xcolor
111
128
  $dry tlmgr option -- autobackup 0
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env sh
2
+
3
+ sudo apt-get install -y -qq \
4
+ pdfgrep \
5
+ poppler-utils
@@ -3,6 +3,4 @@
3
3
  sudo apt-get install -y -qq \
4
4
  language-pack-pt \
5
5
  locales \
6
- pdfgrep \
7
- poppler-utils \
8
6
  unzip
@@ -11,7 +11,7 @@ while getopts "q" opt; do
11
11
  esac
12
12
  done
13
13
 
14
- if [ $quiet eq 1 ]
14
+ if [ $quiet eq 1 ]; then
15
15
  wget -nv $PANDOC_DEB
16
16
  else
17
17
  wget -c $PANDOC_DEB
@@ -9,16 +9,23 @@ if [ $tex_em_cache -eq 1 ]; then
9
9
  : #echo TinyTeX não será instalado.
10
10
  else
11
11
  wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
12
- tlmgr install abntex2 \
12
+ tlmgr install \
13
+ abntex2 \
13
14
  babel-portuges \
15
+ bookmark \
16
+ caption \
14
17
  enumitem \
15
- ifetex \
18
+ epstopdf-pkg \
16
19
  lastpage \
17
20
  lipsum \
18
21
  listings \
19
22
  memoir \
20
23
  microtype \
24
+ pdflscape \
21
25
  pdfpages \
26
+ psnfss \
27
+ shipunov \
28
+ texliveonfly \
22
29
  textcase \
23
30
  xcolor
24
31
  tlmgr option -- autobackup 0
@@ -44,6 +44,6 @@ ENV LANG pt_BR.UTF8
44
44
 
45
45
  # Instalação do pandoc
46
46
  WORKDIR /tmp
47
- RUN wget https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb \
47
+ RUN wget https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb \
48
48
  && dpkg -i pandoc-*.deb \
49
49
  && rm pandoc-*.deb
@@ -58,6 +58,9 @@ module Limarka
58
58
  def compila
59
59
  Dir.chdir(options[:output_dir]) do
60
60
  basename = File.basename(texto_tex_file, '.tex')
61
+ if system ("whereis texliveonfly")
62
+ system "texliveonfly -c xelatex -f #{basename}", :out=>'xxx-texliveonfly-std.txt'
63
+ end
61
64
  system "latexmk --quiet --xelatex -f #{basename}", :out=>'xxx-latexmk-std.txt', :err=>'xxx-latexmk-erros.txt'
62
65
  if (usa_pdftotext) then
63
66
  system "pdftotext -enc UTF-8 #{basename}.pdf"
@@ -50,5 +50,6 @@ Gem::Specification.new do |spec|
50
50
  spec.add_dependency "pandoc_abnt", "~> 2.0.0"
51
51
  spec.add_dependency "guard"
52
52
  spec.add_dependency "guard-shell"
53
+ spec.add_dependency "guard-rake"
53
54
 
54
55
  end
@@ -0,0 +1,28 @@
1
+ ERB_TEMPLATE = <<~HEREDOC
2
+ guard :shell do
3
+ <% all_tasks.each do |t, files| %>
4
+ watch(%r{^(<%= files.join('|') %>)$}) do |m|
5
+ system("rake <%= t %>")
6
+ end
7
+ <% end %>
8
+ end
9
+ HEREDOC
10
+
11
+ desc "Generates a Guardfile from Rake tasks"
12
+ task :guard do
13
+ app = Rake::application
14
+ app.init
15
+ app.load_rakefile
16
+
17
+ all_tasks = {}
18
+ app.tasks.each do |t|
19
+ t.sources.each do |src|
20
+ if File.file?(src) then
21
+ all_tasks[t.name] = [] unless all_tasks[t.name]
22
+ all_tasks[t.name] << src
23
+ end
24
+ end
25
+ end
26
+ template = ERB.new(ERB_TEMPLATE)
27
+ File.write('Guardfile', template.result(binding))
28
+ end
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: 20.6.8.pre.347
4
+ version: 20.6.8.pre.354
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: 2020-06-08 00:00:00.000000000 Z
11
+ date: 2020-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -262,6 +262,20 @@ dependencies:
262
262
  - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: guard-rake
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :runtime
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
265
279
  description: Com essa ferramenta você poderá escrever sua monografia, dissertação
266
280
  ou tese utilizando Markdown (linguagem mais simples que Latex).
267
281
  email:
@@ -288,7 +302,8 @@ files:
288
302
  - bin/console
289
303
  - bin/deploy-docker.sh
290
304
  - bin/instalador.sh
291
- - bin/instaladores/dependencias_install.sh
305
+ - bin/instaladores/dependencias_desenvolvimento_install.sh
306
+ - bin/instaladores/dependencias_execucao_install.sh
292
307
  - bin/instaladores/pandoc_install.sh
293
308
  - bin/instaladores/tinytex_install.sh
294
309
  - bin/setup
@@ -346,6 +361,7 @@ files:
346
361
  - lib/limarka/trabalho.rb
347
362
  - lib/limarka/version.rb
348
363
  - limarka.gemspec
364
+ - rakelib/guard.rake
349
365
  - referencias.bib
350
366
  homepage: https://github.com/abntex/limarka
351
367
  licenses: