limarka 1.0.2 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '048f8ddd7134273f541aa5b0a0bc8459e25b42f1d92f912eaf8172c4912c59b3'
4
- data.tar.gz: 33096399627cb76c333a1616c0a3e3927bf0bd50ab839a8db7e580c0d2987b2b
3
+ metadata.gz: fe897ea17b11ec8d28793235ce4a7f691156fee1242a7000a38957b6e3c243f2
4
+ data.tar.gz: 32c74796324e9b768e3b261c34355ba1de43f5c2dd84b74af21fb6b93d94e6fd
5
5
  SHA512:
6
- metadata.gz: f74a8ac2092ed39272ab667f5bf061ab3f09d8f4d16d901b273edb486f11d832ce2971e1eea9a4aae0070015325b4172f00de6a02884ae9bb25c5e127ce71af1
7
- data.tar.gz: 8ad2d1f49bc5c84b976af4e16eea64e49d88bb699e08f19528be48541048a0465651763b24843d01e500a8b4582e5e78300e31f5e224f7a31f5f4420808d9099
6
+ metadata.gz: c4f88bfe98f5f8762efc803d8630ca3f88f33ac12fdd75434b897f9bc544354e53275bb881be8ff71c2e01e93a48ff82a0da7e3844a6f41be1ddc51c3728aa12
7
+ data.tar.gz: e290641db05810b064ee56bf54e7aa085896b7b66251bc399c222db76ed963caeda449fcd66c772d3c10dc83e86e745f8a95ebf82847bfb73a88d6bd4bc8715b
data/.travis.yml CHANGED
@@ -1,12 +1,14 @@
1
- dist: trusty
1
+ dist: xenial
2
2
  sudo: required
3
3
  language: ruby
4
- rvm:
5
- - 2.3.1
4
+ services:
5
+ - docker
6
+ cache: bundle
7
+
6
8
  before_install:
7
9
  - sudo apt-get update -qq
8
10
  - sudo apt-get install -y -qq ruby-full pdftk xclip poppler-utils language-pack-pt libreoffice unzip pdfgrep locales
9
- - wget https://github.com/jgm/pandoc/releases/download/2.5/pandoc-2.5-1-amd64.deb && sudo dpkg -i pandoc-*.deb
11
+ - wget https://github.com/jgm/pandoc/releases/download/2.7.2/pandoc-2.7.2-1-amd64.deb && sudo dpkg -i pandoc-*.deb
10
12
  - wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
11
13
  - tlmgr install memoir abntex2 lastpage microtype lipsum pdfpages ifetex textcase enumitem xcolor babel-portuges listings
12
14
  - export PATH=$PATH:~/bin
@@ -16,9 +18,24 @@ script:
16
18
  - xelatex -v
17
19
  - pdftotext -v
18
20
  - pandoc -v
21
+ - docker --version
19
22
  - libreoffice --version
20
23
  - bundle exec rspec -t @latex_minimo
21
24
  - bundle exec rake
22
25
  - bundle exec rake spec:latex
26
+
23
27
  after_failure:
24
28
  - cat test/latex/exemplo-minimo/xxx-Monografia.log
29
+
30
+ deploy:
31
+ - provider: script
32
+ skip_cleanup: true
33
+ script: bin/build-docker.sh && bin/deploy-docker.sh tag $TRAVIS_TAG
34
+ on:
35
+ tags: true
36
+ - provider: script
37
+ skip_cleanup: true
38
+ script: bin/build-docker.sh && bin/deploy-docker.sh branch dev
39
+ on:
40
+ branch: master
41
+ tags: false
data/CHANGELOG.md CHANGED
@@ -1,19 +1,28 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ Todas as mudanças relevantes deste projeto serão documentadas neste arquivo.
4
+
2
5
 
3
6
  ## [v1.0.2](https://github.com/abntex/limarka/tree/v1.0.2) (2019-01-17)
7
+
4
8
  [Full Changelog](https://github.com/abntex/limarka/compare/v1.0.1...v1.0.2)
5
9
 
10
+ A partir desta versão o TinyTex passou a ser a [versão oficinal do Latex para o Limarka](https://github.com/abntex/limarka/wiki/Instala%C3%A7%C3%A3o-no-Linux).
11
+
12
+ **OBS**: Não se faz necessário atualizar para essa versão.
13
+
6
14
  **Melhorias implementadas:**
7
15
 
8
16
  - Utilizar o tinytex nos testes automatizados [\#164](https://github.com/abntex/limarka/issues/164)
9
17
 
10
18
  **Issues fechados:**
11
19
 
12
- - Atualizar documentação sobre o TinyTex [\#170](https://github.com/abntex/limarka/issues/170)
13
20
  - Atualizar documentação sobre o pacote pdftk no Ubuntu 18.04 [\#168](https://github.com/abntex/limarka/issues/168)
14
21
  - Atualizar documentação sobre dependências de compilação no Ubuntu 17.10.1 [\#160](https://github.com/abntex/limarka/issues/160)
22
+ - Atualizar documentação sobre o TinyTex [\#170](https://github.com/abntex/limarka/issues/170)
15
23
 
16
24
  ## [v1.0.1](https://github.com/abntex/limarka/tree/v1.0.1) (2018-10-22)
25
+
17
26
  [Full Changelog](https://github.com/abntex/limarka/compare/v1.0.0...v1.0.1)
18
27
 
19
28
  **Bugs corrigidos:**
@@ -21,6 +30,7 @@
21
30
  - Limarka ainda informava que a versão 2.X era incompatível [\#167](https://github.com/abntex/limarka/issues/167)
22
31
 
23
32
  ## [v1.0.0](https://github.com/abntex/limarka/tree/v1.0.0) (2018-10-22)
33
+
24
34
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.8.0...v1.0.0)
25
35
 
26
36
  **Melhorias implementadas:**
@@ -28,6 +38,7 @@
28
38
  - Tornar o limarka compatível com o pandoc 2.0 [\#159](https://github.com/abntex/limarka/issues/159)
29
39
 
30
40
  ## [v0.8.0](https://github.com/abntex/limarka/tree/v0.8.0) (2018-10-20)
41
+
31
42
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.7.2...v0.8.0)
32
43
 
33
44
  **Melhorias implementadas:**
@@ -42,6 +53,7 @@
42
53
  - Distribuição do limarka através de imagem Docker [\#155](https://github.com/abntex/limarka/issues/155)
43
54
 
44
55
  ## [v0.7.2](https://github.com/abntex/limarka/tree/v0.7.2) (2017-04-09)
56
+
45
57
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.7.1...v0.7.2)
46
58
 
47
59
  **Melhorias implementadas:**
@@ -55,6 +67,7 @@
55
67
  - Identação na lista de siglas [\#139](https://github.com/abntex/limarka/issues/139)
56
68
 
57
69
  ## [v0.7.1](https://github.com/abntex/limarka/tree/v0.7.1) (2017-02-11)
70
+
58
71
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.7.0...v0.7.1)
59
72
 
60
73
  **Melhorias implementadas:**
@@ -62,6 +75,7 @@
62
75
  - Atualização do pandoc para versão 1.19.2 [\#130](https://github.com/abntex/limarka/issues/130)
63
76
 
64
77
  ## [v0.7.0](https://github.com/abntex/limarka/tree/v0.7.0) (2017-02-11)
78
+
65
79
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.6.7...v0.7.0)
66
80
 
67
81
  **Melhorias implementadas:**
@@ -73,9 +87,11 @@
73
87
  - Folha de aprovação gerada não apresenta o mês [\#128](https://github.com/abntex/limarka/issues/128)
74
88
 
75
89
  ## [v0.6.7](https://github.com/abntex/limarka/tree/v0.6.7) (2017-01-31)
90
+
76
91
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.6.6...v0.6.7)
77
92
 
78
93
  ## [v0.6.6](https://github.com/abntex/limarka/tree/v0.6.6) (2017-01-22)
94
+
79
95
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.6.5...v0.6.6)
80
96
 
81
97
  **Bugs corrigidos:**
@@ -84,6 +100,7 @@
84
100
  - Erro nas referências quando title está entre duplas chaves e contem subtítulo [\#122](https://github.com/abntex/limarka/issues/122)
85
101
 
86
102
  ## [v0.6.5](https://github.com/abntex/limarka/tree/v0.6.5) (2017-01-16)
103
+
87
104
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.6.4...v0.6.5)
88
105
 
89
106
  **Melhorias implementadas:**
@@ -91,6 +108,7 @@
91
108
  - Documentação da API [\#121](https://github.com/abntex/limarka/issues/121)
92
109
 
93
110
  ## [v0.6.4](https://github.com/abntex/limarka/tree/v0.6.4) (2017-01-16)
111
+
94
112
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.6.3...v0.6.4)
95
113
 
96
114
  **Issues fechados:**
@@ -98,6 +116,7 @@
98
116
  - Updating version software of the paper [\#120](https://github.com/abntex/limarka/issues/120)
99
117
 
100
118
  ## [v0.6.3](https://github.com/abntex/limarka/tree/v0.6.3) (2017-01-15)
119
+
101
120
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.6.2...v0.6.3)
102
121
 
103
122
  **Melhorias implementadas:**
@@ -119,6 +138,7 @@
119
138
  - Several actions related to the software paper [\#93](https://github.com/abntex/limarka/issues/93)
120
139
 
121
140
  ## [v0.6.2](https://github.com/abntex/limarka/tree/v0.6.2) (2017-01-09)
141
+
122
142
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.6.1...v0.6.2)
123
143
 
124
144
  **Bugs corrigidos:**
@@ -126,6 +146,7 @@
126
146
  - Falta do gem ffi causa problema no Windows [\#115](https://github.com/abntex/limarka/issues/115)
127
147
 
128
148
  ## [v0.6.1](https://github.com/abntex/limarka/tree/v0.6.1) (2017-01-08)
149
+
129
150
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.6.0...v0.6.1)
130
151
 
131
152
  **Melhorias implementadas:**
@@ -142,6 +163,7 @@
142
163
  - Inclusão de badges no README [\#106](https://github.com/abntex/limarka/issues/106)
143
164
 
144
165
  ## [v0.6.0](https://github.com/abntex/limarka/tree/v0.6.0) (2016-12-27)
166
+
145
167
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.5.5...v0.6.0)
146
168
 
147
169
  **Melhorias implementadas:**
@@ -150,6 +172,7 @@
150
172
  - Inclusão de menu interativo [\#100](https://github.com/abntex/limarka/issues/100)
151
173
 
152
174
  ## [v0.5.5](https://github.com/abntex/limarka/tree/v0.5.5) (2016-12-19)
175
+
153
176
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.5.4...v0.5.5)
154
177
 
155
178
  **Melhorias implementadas:**
@@ -158,6 +181,7 @@
158
181
  - Tornar compatível com o Windows [\#87](https://github.com/abntex/limarka/issues/87)
159
182
 
160
183
  ## [v0.5.4](https://github.com/abntex/limarka/tree/v0.5.4) (2016-12-19)
184
+
161
185
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.5.3...v0.5.4)
162
186
 
163
187
  **Bugs corrigidos:**
@@ -165,6 +189,7 @@
165
189
  - Problemas de codificação no Windows [\#98](https://github.com/abntex/limarka/issues/98)
166
190
 
167
191
  ## [v0.5.3](https://github.com/abntex/limarka/tree/v0.5.3) (2016-12-19)
192
+
168
193
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.5.2...v0.5.3)
169
194
 
170
195
  **Bugs corrigidos:**
@@ -176,6 +201,7 @@
176
201
  - Creating an Open Canvas for limarka [\#95](https://github.com/abntex/limarka/issues/95)
177
202
 
178
203
  ## [v0.5.2](https://github.com/abntex/limarka/tree/v0.5.2) (2016-12-09)
204
+
179
205
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.5.1...v0.5.2)
180
206
 
181
207
  **Melhorias implementadas:**
@@ -187,6 +213,7 @@
187
213
  - Alteração de configurações nos repositórios do projeto no github [\#85](https://github.com/abntex/limarka/issues/85)
188
214
 
189
215
  ## [v0.5.1](https://github.com/abntex/limarka/tree/v0.5.1) (2016-12-05)
216
+
190
217
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.5.0...v0.5.1)
191
218
 
192
219
  **Bugs corrigidos:**
@@ -194,6 +221,7 @@
194
221
  - Correção da legenda da tabela [\#91](https://github.com/abntex/limarka/issues/91)
195
222
 
196
223
  ## [v0.5.0](https://github.com/abntex/limarka/tree/v0.5.0) (2016-12-05)
224
+
197
225
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.4.6...v0.5.0)
198
226
 
199
227
  **Melhorias implementadas:**
@@ -202,6 +230,7 @@
202
230
  - Possibilita utilizações de arquivos de rascunho [\#82](https://github.com/abntex/limarka/issues/82)
203
231
 
204
232
  ## [v0.4.6](https://github.com/abntex/limarka/tree/v0.4.6) (2016-11-28)
233
+
205
234
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.4.5...v0.4.6)
206
235
 
207
236
  **Melhorias implementadas:**
@@ -213,6 +242,7 @@
213
242
  - Apresentação do número da página [\#71](https://github.com/abntex/limarka/issues/71)
214
243
 
215
244
  ## [v0.4.5](https://github.com/abntex/limarka/tree/v0.4.5) (2016-11-20)
245
+
216
246
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.4.4...v0.4.5)
217
247
 
218
248
  **Melhorias implementadas:**
@@ -229,6 +259,7 @@
229
259
  - Apresentação de funcionalidades no README [\#75](https://github.com/abntex/limarka/issues/75)
230
260
 
231
261
  ## [v0.4.4](https://github.com/abntex/limarka/tree/v0.4.4) (2016-11-18)
262
+
232
263
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.4.3...v0.4.4)
233
264
 
234
265
  **Bugs corrigidos:**
@@ -236,6 +267,7 @@
236
267
  - Correção no comentário de inserir figura [\#73](https://github.com/abntex/limarka/issues/73)
237
268
 
238
269
  ## [v0.4.3](https://github.com/abntex/limarka/tree/v0.4.3) (2016-11-18)
270
+
239
271
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.4.2...v0.4.3)
240
272
 
241
273
  **Melhorias implementadas:**
@@ -249,6 +281,7 @@
249
281
  - Tarefa rake para geração de releases [\#22](https://github.com/abntex/limarka/issues/22)
250
282
 
251
283
  ## [v0.4.2](https://github.com/abntex/limarka/tree/v0.4.2) (2016-11-18)
284
+
252
285
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.4.1...v0.4.2)
253
286
 
254
287
  **Melhorias implementadas:**
@@ -256,6 +289,7 @@
256
289
  - Opção de criar tabelas [\#37](https://github.com/abntex/limarka/issues/37)
257
290
 
258
291
  ## [v0.4.1](https://github.com/abntex/limarka/tree/v0.4.1) (2016-11-17)
292
+
259
293
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.4.0...v0.4.1)
260
294
 
261
295
  **Issues fechados:**
@@ -263,6 +297,7 @@
263
297
  - Possibilitar incluir referência bibtex da área de transferência [\#69](https://github.com/abntex/limarka/issues/69)
264
298
 
265
299
  ## [v0.4.0](https://github.com/abntex/limarka/tree/v0.4.0) (2016-11-16)
300
+
266
301
  [Full Changelog](https://github.com/abntex/limarka/compare/v0.3.0...v0.4.0)
267
302
 
268
303
  **Melhorias implementadas:**
@@ -271,6 +306,7 @@
271
306
  - Aumentar o provisionamento de inclusão de Figura [\#39](https://github.com/abntex/limarka/issues/39)
272
307
 
273
308
  ## [v0.3.0](https://github.com/abntex/limarka/tree/v0.3.0) (2016-11-02)
309
+
274
310
  [Full Changelog](https://github.com/abntex/limarka/compare/0.2.0...v0.3.0)
275
311
 
276
312
  **Bugs corrigidos:**
@@ -308,4 +344,4 @@
308
344
 
309
345
 
310
346
 
311
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
347
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in limarka.gemspec
4
+ gem 'github_changelog_generator', :require => false, :git => 'https://github.com/github-changelog-generator/github-changelog-generator'
5
+
4
6
  gemspec
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'github_changelog_generator/task'
12
12
 
13
13
  desc 'Executa os testes ruby'
14
14
  RSpec::Core::RakeTask.new('spec') do |t|
15
- t.rspec_opts = "--tag ~compilacao --tag ~dependencias_latex"
15
+ t.rspec_opts = "--tag ~compilacao --tag ~dependencias_latex"
16
16
  end
17
17
 
18
18
  desc 'Executa os testes com compilação Latex'
@@ -24,10 +24,13 @@ task :default => [:configuracao_padrao, 'spec']
24
24
 
25
25
  GitHubChangelogGenerator::RakeTask.new :changelog do |c|
26
26
  c.future_release = "v"+Limarka::VERSION
27
+ c.header = "# Changelog\n\nTodas as mudanças relevantes deste projeto serão documentadas neste arquivo.\n"
27
28
  c.bug_prefix="**Bugs corrigidos:**"
28
29
  c.issue_prefix = "**Issues fechados:**"
29
30
  c.enhancement_prefix="**Melhorias implementadas:**"
30
31
  c.since_tag="0.2.0"
32
+ c.user="abntex"
33
+ c.project="limarka"
31
34
  end
32
35
 
33
36
 
@@ -62,6 +65,28 @@ task :dissertacao => 'dissertacao-limarka/output' do
62
65
  system 'bundle', 'exec', 'limarka', 'exec', '-i', 'dissertacao-limarka', '-o', 'dissertacao-limarka/output'
63
66
  end
64
67
 
68
+ namespace 'docker' do
69
+
70
+ desc 'Constroi imagem docker'
71
+ task 'build' do
72
+ sh 'bin/build-docker.sh'
73
+ end
74
+
75
+ desc 'Publica imagens docker do limarka no travis'
76
+ task 'deploy' do
77
+ sh 'bin/deploy-docker.sh'
78
+ end
79
+
80
+ desc 'Executa o docker dentro do modelo'
81
+ task 'run' do
82
+ Dir.chdir('modelo-oficial') do
83
+ rm_rf("xxx*")
84
+ sh 'docker run --mount src=`pwd`,target=/trabalho,type=bind limarka exec'
85
+ end
86
+ end
87
+
88
+ end
89
+
65
90
  PREAMBULO="templates/preambulo.tex"
66
91
  PRETEXTUAL = "templates/pretextual.tex"
67
92
  POSTEXTUAL = "templates/postextual.tex"
@@ -0,0 +1,4 @@
1
+ # $1: limarka version
2
+ echo "Gerando imagem do limarka..."
3
+ docker build -t limarka -f containers/Dockerfile-ruby-tinytex.production .
4
+ docker images
@@ -0,0 +1,46 @@
1
+ # $1: comando valor
2
+ # tag v1.2.3
3
+ # branch master
4
+ # http://codewiki.wikidot.com/shell-script:if-else
5
+ if [ "$1" = "tag" ]
6
+ then
7
+ # Versionamento Semântico 2.0.0
8
+ # https://semver.org/lang/pt-BR/
9
+ if [ -n "$2" ]
10
+ then
11
+ # Versionamento Semântico 2.0.0
12
+ # https://semver.org/lang/pt-BR/
13
+ MAJOR=`echo $2|cut -f 1 -d '.'`
14
+ MINOR=`echo $2|cut -f 2 -d '.'`
15
+ #PATCH=`echo $1|cut -f 3 -d '.'`
16
+ echo "Aplicando tags da versão $2..."
17
+ docker tag limarka "limarka/limarka"
18
+ docker tag limarka "limarka/limarka:$MAJOR"
19
+ docker tag limarka "limarka/limarka:$MAJOR.$MINOR"
20
+ echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
21
+ docker push "limarka/limarka"
22
+ docker push "limarka/limarka:$MAJOR"
23
+ docker push "limarka/limarka:$MAJOR.$MINOR"
24
+ else
25
+ >&2 echo "Erro: faltou informar o nome da tag. Ex: tag v1.2.3"
26
+ exit 1
27
+ fi
28
+ elif [ "$1" = "branch" ]
29
+ then
30
+ if [ -n "$2" ]
31
+ then
32
+ echo "Aplicando tag $2 na branch..."
33
+ docker tag limarka limarka/limarka:$2
34
+ echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
35
+ docker push limarka/limarka:$2
36
+ else
37
+ >&2 echo "Erro: faltou informar o nome da tag para branch. Ex: branch dev"
38
+ exit 1
39
+ fi
40
+ else
41
+ >&2 echo "Erro: faltou passar os parâmetros."
42
+ >&2 echo "Uso:"
43
+ >&2 echo " tag v1.2.3"
44
+ >&2 echo " branch dev"
45
+ exit 1
46
+ fi
data/bin/test CHANGED
@@ -3,4 +3,4 @@
3
3
  set -e
4
4
 
5
5
  echo "===> Executa os testes rápidos..."
6
- rake spec:fast
6
+ rake spec
@@ -0,0 +1,37 @@
1
+ FROM ruby:2-slim
2
+
3
+ LABEL maintainer="eduardo.ufpb@gmail.com"
4
+
5
+ # Tentamos seguir as melhores práticas:
6
+ # https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
7
+
8
+ RUN apt-get update && apt-get install -y -qq \
9
+ build-essential \
10
+ fontconfig \
11
+ locales \
12
+ pdfgrep \
13
+ pdftk \
14
+ poppler-utils \
15
+ unzip \
16
+ wget
17
+
18
+ RUN gem install limarka guard guard-shell
19
+
20
+ # Instala tinytex (/root/.TinyTex)
21
+ RUN wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
22
+ ENV PATH="/root/bin:${PATH}"
23
+
24
+ # instala bibliotecas para o abntex2/limarka
25
+ RUN tlmgr install memoir abntex2 lastpage microtype lipsum pdfpages ifetex textcase enumitem xcolor babel-portuges listings
26
+
27
+ # Instala o pandoc
28
+ WORKDIR /tmp
29
+ RUN wget https://github.com/jgm/pandoc/releases/download/2.7.2/pandoc-2.7.2-1-amd64.deb \
30
+ && dpkg -i pandoc-*.deb \
31
+ && rm pandoc-*.deb
32
+
33
+ VOLUME ["/trabalho"]
34
+ WORKDIR /trabalho
35
+
36
+ CMD ["--help"]
37
+ ENTRYPOINT ["/usr/local/bundle/bin/limarka"]
@@ -59,9 +59,12 @@ module Limarka
59
59
  def compila
60
60
  Dir.chdir(options[:output_dir]) do
61
61
  basename = File.basename(texto_tex_file, '.tex')
62
- system "latexmk --quiet --xelatex -f #{basename}", :out=>File::NULL, :err=>File::NULL
62
+ system "latexmk --quiet --xelatex -f #{basename}", :out=>'xxx-latexmk-std.txt', :err=>'xxx-latexmk-erros.txt'
63
63
  if (usa_pdftotext) then
64
64
  system "pdftotext -enc UTF-8 #{basename}.pdf"
65
+ # Comando sed para corrigir junção do fi (ligatures)
66
+ # https://superuser.com/questions/220363/cleaning-up-pdftotext-font-issues/231637#231637
67
+ system "sed -i -e 's/ffi/ffi/g' -e 's/fi/fi/g' -e 's/ff/ff/g' -e 's/fl/fl/g' -e 's/ffl/ffl/g' #{basename}.txt"
65
68
  File.open("#{basename}.txt", 'r') {|f| @txt = f.read}
66
69
  end
67
70
  end
@@ -48,6 +48,7 @@ module Limarka
48
48
  h.merge! errata
49
49
  h.merge! referencias
50
50
  h.merge! lista_ilustracoes
51
+ h.merge! lista_quadros
51
52
  h.merge! lista_tabelas
52
53
  h.merge! lista_siglas
53
54
 
@@ -76,6 +77,11 @@ module Limarka
76
77
  {'errata' => !desativado?('errata_combo')}
77
78
  end
78
79
 
80
+ def lista_quadros
81
+ campo = 'lista_quadros_combo'
82
+ {'lista_quadros' => ler_campo(campo).include?('Gerar')}
83
+ end
84
+
79
85
  def lista_ilustracoes
80
86
  campo = 'lista_ilustracoes_combo'
81
87
  {'lista_ilustracoes' => ler_campo(campo).include?('Gerar')}
@@ -1,3 +1,3 @@
1
1
  module Limarka
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
data/limarka.gemspec CHANGED
@@ -17,20 +17,20 @@ Gem::Specification.new do |spec|
17
17
  spec.bindir = "exe"
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
- spec.requirements = 'pandoc, v1.19.1'
20
+ #spec.requirements = 'pandoc, v1.19.1'
21
21
  spec.post_install_message = 'Gostou do limarka? Considere contribuir com o projeto: https://opencollective.com/limarka/donate'
22
22
 
23
-
24
- spec.add_development_dependency "bundler", "~> 1.12"
25
- spec.add_development_dependency "rake", "~> 11.0"
26
- spec.add_development_dependency "rspec", "~> 3.5"
23
+ # essas são as ferramentas de desenvolvimento
24
+ spec.add_development_dependency "bundler", "~> 2.0"
25
+ spec.add_development_dependency "rake", "~> 12.0"
26
+ spec.add_development_dependency "rspec", "~> 3.8"
27
27
  spec.add_development_dependency "pry-byebug"
28
28
  spec.add_development_dependency "github_changelog_generator"
29
29
 
30
30
  spec.add_dependency "clipboard"
31
31
  spec.add_dependency "ffi"
32
32
  spec.add_dependency "colorize"
33
- spec.add_dependency "pdf-forms", "~> 1.1.1"
33
+ spec.add_dependency "pdf-forms", "~> 1.2"
34
34
  spec.add_dependency "pandoc-ruby"
35
35
  spec.add_dependency "thor"
36
36
  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: 1.0.2
4
+ version: 1.1.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: 2019-01-17 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.12'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '11.0'
33
+ version: '12.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '11.0'
40
+ version: '12.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.5'
47
+ version: '3.8'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.5'
54
+ version: '3.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry-byebug
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.1.1
131
+ version: '1.2'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.1.1
138
+ version: '1.2'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: pandoc-ruby
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -243,7 +243,6 @@ executables:
243
243
  extensions: []
244
244
  extra_rdoc_files: []
245
245
  files:
246
- - ".github_changelog_generator"
247
246
  - ".gitignore"
248
247
  - ".gitmodules"
249
248
  - ".rspec"
@@ -256,11 +255,12 @@ files:
256
255
  - LICENSE
257
256
  - README.md
258
257
  - Rakefile
258
+ - bin/build-docker.sh
259
259
  - bin/console
260
+ - bin/deploy-docker.sh
260
261
  - bin/setup
261
262
  - bin/test
262
- - containers/Dockerfile-ruby-latex-full.production
263
- - containers/Dockerfile.production
263
+ - containers/Dockerfile-ruby-tinytex.production
264
264
  - docs/paper/codemeta.json
265
265
  - docs/paper/generate
266
266
  - docs/paper/open-canvas.md
@@ -319,10 +319,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  - - ">="
320
320
  - !ruby/object:Gem::Version
321
321
  version: '0'
322
- requirements:
323
- - pandoc, v1.19.1
324
- rubyforge_project:
325
- rubygems_version: 2.7.6
322
+ requirements: []
323
+ rubygems_version: 3.0.3
326
324
  signing_key:
327
325
  specification_version: 4
328
326
  summary: Ferramenta para compilação de trabalhos acadêmicos com markdown e abnTeX2
@@ -1,2 +0,0 @@
1
- user=abntex
2
- project=limarka
@@ -1,15 +0,0 @@
1
- FROM ruby:2.3
2
-
3
- LABEL maintainer="eduardo.ufpb@gmail.com"
4
-
5
- COPY spec/dependencias/texlive-abntex2.profile /tmp
6
- WORKDIR /tmp
7
-
8
- # Instala texlive
9
- ADD http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz /tmp/
10
- RUN tar -xf install-tl-unx.tar.gz && cd install-tl-* && ./install-tl -no-gui -profile ../texlive-abntex2.profile -no-verify-downloads
11
- # adiciona latex ao caminho
12
- ENV PATH $PATH:/usr/local/texlive/2017/bin/x86_64-linux
13
- RUN rm -rf /tmp/install-tl-*
14
-
15
- ENTRYPOINT /bin/bash
@@ -1,48 +0,0 @@
1
- FROM edusantana/ruby-latex-full
2
-
3
- LABEL maintainer="eduardo.ufpb@gmail.com"
4
- LABEL limarka.version="v0.7.2"
5
-
6
- WORKDIR /tmp
7
-
8
- #FROM latex_base as runtime
9
- # Instala pandoc
10
- ADD https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb /tmp/
11
- RUN dpkg -i pandoc-*.deb && rm pandoc-*.deb
12
-
13
- # Instalando dependências de teste
14
- #FROM runtime as teste
15
- #COPY . /app/
16
- #RUN apt-get update && apt-get install -y -qq libreoffice-writer
17
- RUN gem install limarka guard guard-shell
18
-
19
- # Instalando dependências de runtime
20
- RUN apt-get update && apt-get install -y -qq \
21
- locales \
22
- pdfgrep \
23
- pdftk \
24
- poppler-utils \
25
- unzip \
26
- xclip
27
-
28
- VOLUME ["/trabalho"]
29
- WORKDIR /trabalho
30
-
31
- #RUN locale-gen pt_BR && locale-gen pt_BR.UTF-8 && dpkg-reconfigure locales && update-locale
32
-
33
-
34
- #ENV LANG=pt_BR.UTF-8
35
-
36
- # Set the locale
37
- #RUN apt-get update && apt-get install -y locales && locale-gen pt_BR.UTF-8
38
-
39
- #RUN locale-gen --no-purge pt_BR.UTF-8
40
- #update-locale LANG=pt_BR.UTF-8
41
- #echo locales locales/locales_to_be_generated multiselect pt_BR.UTF-8 UTF-8 | DEBIAN_FRONTEND=noninteractive debconf-set-selections
42
- #echo locales locales/default_environment_locale select pt_BR.UTF-8 | DEBIAN_FRONTEND=noninteractive debconf-set-selections
43
- #DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
44
-
45
- # Instalando dependências de teste
46
- CMD ["--help"]
47
- ENTRYPOINT ["/usr/local/bundle/bin/limarka"]
48
-