pdflatex 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/lib/pdflatex.rb +18 -9
- data/lib/pdflatex/version.rb +1 -1
- data/pdflatex.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7879e14e81cea2459fb39cbf76d3fdb1e5d05b5e5664db4220f16fbc2d0a6b0
|
4
|
+
data.tar.gz: 15d5ed0f508ff9f6ad6de7150fd7e13c76f29814908c5171567782fac55665c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f99253e9e71640c6961bc7165acfdae7f1d7ccc4a4bbb2a8ac8bb2e5a9453d0d31f6f8b5555767ee9cfee564c5b468080e514680d852fc2112e7bb79b810819
|
7
|
+
data.tar.gz: 2631365131300d747d14e5677f197c85af8d2a61013d11c32de6c74c5131d7b4b0afbb125ebd5f51a51251590b78b0a51e43df55d00a668964aa407c199e315c
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.3
|
data/lib/pdflatex.rb
CHANGED
@@ -10,15 +10,24 @@ module Pdflatex
|
|
10
10
|
|
11
11
|
latex_file_name = File.basename(latex_file)
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
# Do not use docker image if ENV key is set
|
14
|
+
dont_use_docker = ENV.has_key?('DONT_USE_DOCKER')
|
15
|
+
|
16
|
+
cmd = if dont_use_docker
|
17
|
+
<<-CMD.gsub(/\s+/, ' ')
|
18
|
+
latexmk -outdir=#{expanded_output_path} -pdf #{path_to_latex_file}
|
19
|
+
CMD
|
20
|
+
else
|
21
|
+
<<-CMD.gsub(/\s+/, ' ')
|
22
|
+
docker run
|
23
|
+
--rm
|
24
|
+
--user $(id -u)
|
25
|
+
-v #{path_to_latex_file}:/pdflatex/#{latex_file_name}
|
26
|
+
-v #{expanded_output_path}:/pdflatex/out
|
27
|
+
swissdrg/pdflatex:ride
|
28
|
+
latexmk -outdir=out -pdf #{latex_file_name}
|
29
|
+
CMD
|
30
|
+
end
|
22
31
|
|
23
32
|
output = `#{cmd}`
|
24
33
|
|
data/lib/pdflatex/version.rb
CHANGED
data/pdflatex.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "~>
|
23
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdflatex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Urs Gerber
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
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: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
63
|
- ".rspec"
|
64
|
+
- ".ruby-version"
|
64
65
|
- ".travis.yml"
|
65
66
|
- CODE_OF_CONDUCT.md
|
66
67
|
- Dockerfile
|