palapala_pdf 0.1.16 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/palapala/version.rb +1 -1
- data/lib/palapala.rb +10 -0
- 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: a2f0246a83bf590a8d69d9b0136e51aa432b01ecf623a9e65f2592305e490efc
|
4
|
+
data.tar.gz: 440206bd8724f253aa31ed2402497479fca5de32f9a4be2314030278fdb5b279
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36ab7d19aae3b30a264472a839b990247a2a3e58c000e85f34b78374ef9bf2514c2b908a4d3bfca7b1aa9831a576822e11be0959b8042b8cf42cd2cc9bb912ab
|
7
|
+
data.tar.gz: 103be7bc90d547e2f82a03b294e5dad77a4ed707d24e5132925470b78d90a8719efa2f61cbe062b126bf57f3b52a736f13d7e56013e93beccb540295c07b8559
|
data/lib/palapala/version.rb
CHANGED
data/lib/palapala.rb
CHANGED
@@ -32,4 +32,14 @@ module Palapala
|
|
32
32
|
self.headless_chrome_path = ENV.fetch("HEADLESS_CHROME_PATH", nil)
|
33
33
|
self.headless_chrome_url = ENV.fetch("HEADLESS_CHROME_URL", "http://localhost:9222")
|
34
34
|
self.chrome_headless_shell_version = ENV.fetch("CHROME_HEADLESS_SHELL_VERSION", "stable")
|
35
|
+
self.chrome_params = ENV.fetch("HEADLESS_CHROME_PARAMS", nil)&.split || []
|
36
|
+
|
37
|
+
if !ENV["DYNO"].nil? || File.exist?('/.dockerenv')
|
38
|
+
self.chrome_params ||= []
|
39
|
+
self.chrome_params << "--no-sandbox"
|
40
|
+
end
|
41
|
+
|
42
|
+
if !ENV["DYNO"].nil?
|
43
|
+
self.headless_chrome_path = "chrome"
|
44
|
+
end
|
35
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: palapala_pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koen Handekyn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|