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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a05c520748d7c7ee7d8a4bb26227c1c30cb9ee7bcbf9e7393d47aff109046504
4
- data.tar.gz: c04b1ba0f7f61fa7b25c0b293080c1e80fd4c5b4a0a0eedbe46c6150eae13be9
3
+ metadata.gz: b7879e14e81cea2459fb39cbf76d3fdb1e5d05b5e5664db4220f16fbc2d0a6b0
4
+ data.tar.gz: 15d5ed0f508ff9f6ad6de7150fd7e13c76f29814908c5171567782fac55665c2
5
5
  SHA512:
6
- metadata.gz: eba6e416467563470eedc8a81953d340d1847e8267f33cf0fe500837b650ab75b22f0ae7870ec787502de08cada4824f49f4bace6d8f4b48a7cc59bdc57bc50c
7
- data.tar.gz: 4241094d2121b12ae026c2cf5da858b32b31745385a2a456066e5911525f63e579700fe9eeb1f55b394199d0a106f013b4b76ac3bd21cb55edeafdce946ceaaa
6
+ metadata.gz: 1f99253e9e71640c6961bc7165acfdae7f1d7ccc4a4bbb2a8ac8bb2e5a9453d0d31f6f8b5555767ee9cfee564c5b468080e514680d852fc2112e7bb79b810819
7
+ data.tar.gz: 2631365131300d747d14e5677f197c85af8d2a61013d11c32de6c74c5131d7b4b0afbb125ebd5f51a51251590b78b0a51e43df55d00a668964aa407c199e315c
@@ -0,0 +1 @@
1
+ 2.5.3
@@ -10,15 +10,24 @@ module Pdflatex
10
10
 
11
11
  latex_file_name = File.basename(latex_file)
12
12
 
13
- cmd = <<-CMD.gsub(/\s+/, ' ')
14
- docker run
15
- --rm
16
- --user $(id -u)
17
- -v #{path_to_latex_file}:/pdflatex/#{latex_file_name}
18
- -v #{expanded_output_path}:/pdflatex/out
19
- swissdrg/pdflatex:ride
20
- latexmk -outdir=out -pdf #{latex_file_name}
21
- CMD
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
 
@@ -1,3 +1,3 @@
1
1
  module Pdflatex
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".freeze
3
3
  end
@@ -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", "~> 1.14"
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.0
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-21 00:00:00.000000000 Z
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: '1.14'
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.14'
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