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 +4 -4
- data/lib/print_node_server.rb +3 -3
- data/lib/version.rb +1 -1
- data/node_wrapper/vae.js +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79010eb92170edb9cb2ce0840c85e74f629f1d096db7222344fca4b6e9aa2c0a
|
4
|
+
data.tar.gz: d773f1c3ebfcdb2bfd2de8913bbdd9fa4cb0cf269f071a2ba913d65f5a3ec55b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c53a94e12e82d7518b126fdade0670d546a7175f8ee3b63b800e708465ec3c4db810e8c9639a4b4113557b108925203dd3933da2a52d26454205da95a02083f
|
7
|
+
data.tar.gz: b4add3750169c45c93d23d12ac662852a182819bdef9172fdd058385056b49f52d41873461d93f8759c50b739c7db45d3cf9653f6312b9309723bc1645023d37
|
data/lib/print_node_server.rb
CHANGED
@@ -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("&", "&")
|
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) }
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VER = "0.9.
|
1
|
+
VER = "0.9.2"
|
data/node_wrapper/vae.js
CHANGED
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.
|
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-
|
12
|
+
date: 2019-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chunky_png
|