vae 0.9.1 → 0.9.2

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: 92e2ed1ab66a2045e2a3343fa7bdf033a5da5b840affc948407376863ec1f9a5
4
- data.tar.gz: 2794d9c0bcdae2cffd28f287887f435b07abd9b454aed6dd598cca64c3e657ca
3
+ metadata.gz: 79010eb92170edb9cb2ce0840c85e74f629f1d096db7222344fca4b6e9aa2c0a
4
+ data.tar.gz: d773f1c3ebfcdb2bfd2de8913bbdd9fa4cb0cf269f071a2ba913d65f5a3ec55b
5
5
  SHA512:
6
- metadata.gz: ad2a3844af78872f37c640bdf55c827ca3064d9d01bd926010c1f0d35ae0b34a2756dc0e2ae8815bf6c7aee619cb2f4a0ac4348cc6521e51ff0adaf51c4c78cc
7
- data.tar.gz: c33eb0e919353a3556a68aaf1514f45ca6e5c0c13e56493772b723fbdb3a6883303fbd4aaa019bcd2afc49d7ffb4a961486300abe09a1129b4f86d902f2654e6
6
+ metadata.gz: 3c53a94e12e82d7518b126fdade0670d546a7175f8ee3b63b800e708465ec3c4db810e8c9639a4b4113557b108925203dd3933da2a52d26454205da95a02083f
7
+ data.tar.gz: b4add3750169c45c93d23d12ac662852a182819bdef9172fdd058385056b49f52d41873461d93f8759c50b739c7db45d3cf9653f6312b9309723bc1645023d37
@@ -69,10 +69,10 @@ class PrintNodeServer < ProxyServer
69
69
  @last_job_id = match[1]
70
70
  end
71
71
  if match = res.body.match(/<next-job-url>([^<]*)<\/next-job-url>/)
72
- url = match[1]
73
- path = "/tmp/VaePrintNode-#{rand.to_s.gsub(".", "")}.pdf"
72
+ url = match[1].gsub("&amp;", "&")
73
+ path = "/tmp/VaePrintNode-#{@last_job_id}-#{rand.to_s.gsub(".", "")}.pdf"
74
74
  puts "Printing #{url} to #{path}"
75
- puts `chromehtml2pdf --marginLeft 1 --marginRight 1 --marginTop 1 --marginBottom 1 --out "#{path}" #{Shellwords.shellescape(url)}`
75
+ puts `chromehtml2pdf --printBackground true --marginLeft 1 --marginRight 1 --marginTop 1 --marginBottom 1 --out "#{path}" #{Shellwords.shellescape(url)}`
76
76
  if File.exists?(path)
77
77
  @last_job_output = `lp #{path}`
78
78
  Thread.new { sleep 15; FileUtils.rm(path) }
@@ -1 +1 @@
1
- VER = "0.9.1"
1
+ VER = "0.9.2"
@@ -4,6 +4,6 @@ args.shift()
4
4
  args.shift()
5
5
  spawn(
6
6
  "/usr/bin/env",
7
- ["ruby", "-W0", __dirname + "/../vae"].concat(process.argv),
7
+ ["ruby", "-W0", __dirname + "/../bin/vae"].concat(process.argv),
8
8
  { stdio: [0, 1, 2] }
9
9
  );
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Action Verb, LLC
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-23 00:00:00.000000000 Z
12
+ date: 2019-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chunky_png