palapala_pdf 0.1.18 → 0.1.19
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/lib/palapala/chrome_process.rb +2 -2
- data/lib/palapala/version.rb +1 -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: 837d0f0eeca4484a6c8e6ccb8f5113889653d6076eb0a25b2ed13997de2c4656
|
|
4
|
+
data.tar.gz: 34561e1c72d7ff0f363055f0a9264e5a8fe2a30f31888e82679fa62a779fd054
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6402a0c71a59806fd91241118a51a993a1439afdde35f2b969ffb23c6df38bc071685801b08490f4789828536b0f1a10c86f6fe5ce48af79e8a7350fe3ff8b21
|
|
7
|
+
data.tar.gz: 40f62b4e5c9e14460c92ead8ed7439044a5d69636b670a6cb823349de069cb8e1be855a3cb2480a7dc9ae63d218d2125d2c7708aad856d64e4a06d3b13877e5f
|
|
@@ -83,7 +83,7 @@ module Palapala
|
|
|
83
83
|
system("#{chrome_path} --version") if Palapala.debug
|
|
84
84
|
# Launch chrome-headless-shell with the --remote-debugging-port parameter
|
|
85
85
|
params = [ "--disable-gpu", "--remote-debugging-port=9222", "--remote-debugging-address=0.0.0.0" ]
|
|
86
|
-
params.
|
|
86
|
+
params.concat(Palapala.chrome_params) if Palapala.chrome_params
|
|
87
87
|
pid = if Palapala.debug
|
|
88
88
|
spawn(chrome_path, *params)
|
|
89
89
|
else
|
|
@@ -98,7 +98,7 @@ module Palapala
|
|
|
98
98
|
|
|
99
99
|
def self.spawn_chrome_from_path
|
|
100
100
|
params = [ "--headless", "--disable-gpu", "--remote-debugging-port=9222" ]
|
|
101
|
-
params.
|
|
101
|
+
params.concat(Palapala.chrome_params) if Palapala.chrome_params
|
|
102
102
|
# Spawn an existing chrome with the path and parameters
|
|
103
103
|
Process.spawn(chrome_path, *params)
|
|
104
104
|
end
|
data/lib/palapala/version.rb
CHANGED