limarka 20.6.8.pre.358 → 20.6.8.pre.359
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/.travis.yml +2 -1
- data/bin/deploy-docker.sh +1 -1
- data/bin/instalador.sh +0 -1
- data/bin/instaladores/dependencias_execucao_install.sh +10 -2
- data/lib/limarka/cli.rb +0 -5
- data/lib/limarka/ref.rb +1 -5
- data/limarka.gemspec +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8cbbeee2bc31f84440b09b470a33ac55f7d3f18131a3f807e4e5ac22eb58f915
|
|
4
|
+
data.tar.gz: c5e35a906a8a8367472131013b2c6b9dff856c4e13bbc38e506f02c3a00a41a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c52373a70b5871e7cc707750681511adde7f09e2954e627048f069e27f50b0eb20d43d7261e2c71abfda44f50aa648f9394cf527c076f59a737ac93475eba2a
|
|
7
|
+
data.tar.gz: c83594959152ee97300b73381971ca20bafdef72dbeb6f8b14f0e480c9b1d9a819eb83cca9f5429d72ced7f9a768b51810ec5a0f974032431162d01f45fa3dbc
|
data/.travis.yml
CHANGED
|
@@ -50,7 +50,8 @@ jobs:
|
|
|
50
50
|
- cat tmp/simples/xxx-trabalho-academico.tex
|
|
51
51
|
- cat tmp/simples/xxx-trabalho-academico.log
|
|
52
52
|
- cat tmp/simples/xxx-trabalho-academico.txt
|
|
53
|
-
- stage:
|
|
53
|
+
- stage: testes
|
|
54
|
+
name: "Deploy docker and rubygems"
|
|
54
55
|
install: skip
|
|
55
56
|
script: echo tag $TRAVIS_TAG slug $TRAVIS_REPO_SLUG branch $TRAVIS_BRANCH
|
|
56
57
|
deploy:
|
data/bin/deploy-docker.sh
CHANGED
data/bin/instalador.sh
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env sh
|
|
2
2
|
|
|
3
|
+
# Algumas dependencias de desenvolvimento são adicionadas,
|
|
4
|
+
# as dapendencias dos gems do limarka precisam ser compilados.
|
|
5
|
+
# https://github.com/travis-ci/travis.rb/issues/558
|
|
6
|
+
|
|
3
7
|
apt-get install -y -qq \
|
|
8
|
+
gcc \
|
|
9
|
+
libffi-dev \
|
|
4
10
|
libfontconfig \
|
|
5
11
|
locales \
|
|
12
|
+
make \
|
|
6
13
|
perl-doc \
|
|
7
|
-
|
|
8
|
-
unzip
|
|
14
|
+
ruby-dev \
|
|
15
|
+
unzip \
|
|
16
|
+
wget
|
data/lib/limarka/cli.rb
CHANGED
|
@@ -74,7 +74,6 @@ module Limarka
|
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
method_option :interativo, :aliases => '-i', :desc => 'Solicita os parâmetros de forma interativa.', :type => :boolean, :default => false
|
|
77
|
-
method_option :clipboard, :aliases => '-c', :desc => 'Utiliza o conteúdo da área de transferência como o nome do arquivo.', :type => :boolean, :default => false
|
|
78
77
|
|
|
79
78
|
# method_option :arquivo, :aliases => '-a', :desc => 'Caminho completo ou apenas o nome do arquivo na pasta imagens. Somente arquivos existêntes são válidos. Se não for especificado e o nome do arquivo esteja copiado (na área de transferência), e o arquivo existir, ele será utilizado.'
|
|
80
79
|
method_option :legenda, :aliases => '-l', :desc => 'Legenda da figura.', :default => "Legenda da figura."
|
|
@@ -88,10 +87,6 @@ DESC
|
|
|
88
87
|
desc "fig ARQUIVO", "Imprime códigos para inclusão de imagens em conformidade com ABNT (em LaTeX)"
|
|
89
88
|
def fig(arquivo=nil)
|
|
90
89
|
|
|
91
|
-
if (options[:clipboard]) then
|
|
92
|
-
arquivo = Clipboard.paste # Ler do clipboard, requer xclip: sudo apt-get install xclip
|
|
93
|
-
end
|
|
94
|
-
|
|
95
90
|
if (arquivo) then
|
|
96
91
|
if arquivo.start_with?("file://") then
|
|
97
92
|
arquivo = arquivo[7,-1]
|
data/lib/limarka/ref.rb
CHANGED
|
@@ -12,16 +12,12 @@ module Limarka
|
|
|
12
12
|
class Ref < Thor
|
|
13
13
|
include Thor::Actions
|
|
14
14
|
|
|
15
|
-
method_option :clipboard, :aliases => '-c', :desc => 'Incluir referência bibtex do clipboard (área de transferência)', :default => false, :type => :boolean
|
|
16
15
|
method_option :bibfile, :aliases => '-f', :desc => 'Arquivo de referências bibtex onde será incluído a referência', :default => "referencias.bib", :type => :string
|
|
17
16
|
desc "add", "Adiciona referência ao arquivo de bibliografia."
|
|
18
17
|
long_desc <<-DESC
|
|
19
|
-
Quando você estiver navegando poderá copiar a referência bibtex (do google acadêmico, Zotero, etc.) e incluir ao arquivo de gerência de bibliografia (geralmente referencias.bib) utilizando esse comando. A inclusão do texto ocorrerá da entrada padrão
|
|
18
|
+
Quando você estiver navegando poderá copiar a referência bibtex (do google acadêmico, Zotero, etc.) e incluir ao arquivo de gerência de bibliografia (geralmente referencias.bib) utilizando esse comando. A inclusão do texto ocorrerá da entrada padrão.
|
|
20
19
|
DESC
|
|
21
20
|
def add
|
|
22
|
-
if (options[:clipboard]) then
|
|
23
|
-
referencia = $stdin.read
|
|
24
|
-
end
|
|
25
21
|
begin
|
|
26
22
|
entry = BibTeX.parse(referencia)
|
|
27
23
|
error = entry.length.zero?
|
data/limarka.gemspec
CHANGED
|
@@ -39,7 +39,6 @@ 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"
|
|
43
42
|
spec.add_dependency "ffi"
|
|
44
43
|
spec.add_dependency "colorize"
|
|
45
44
|
#spec.add_dependency "pdf-forms", "~> 1.2"
|