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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ada30cfb9f4c78ca09c1fd17911b3b76d6a4e3281dbe7947ba4487ec3c968ce0
4
- data.tar.gz: fc2a095add93ca4bdf259e72a3f2b52b2c3b10f08a607f0c7baa3aa0733c9ab9
3
+ metadata.gz: a2f0246a83bf590a8d69d9b0136e51aa432b01ecf623a9e65f2592305e490efc
4
+ data.tar.gz: 440206bd8724f253aa31ed2402497479fca5de32f9a4be2314030278fdb5b279
5
5
  SHA512:
6
- metadata.gz: bc569514238c4e83d26d52204161207e598c015adef5f1c31c3f98251e2aafa49b117b88233f903bc482eb02fcbb62bd6abb47faf02d5552450769d76766f211
7
- data.tar.gz: 5abfb7ee3b5eca914ad416f2ee754a3f6acde5fa55ddd64d40d49be493ddad4ce99fc2d838821da5a8c20322def8107e5b56bb6460198bf339d0427cbae276a6
6
+ metadata.gz: 36ab7d19aae3b30a264472a839b990247a2a3e58c000e85f34b78374ef9bf2514c2b908a4d3bfca7b1aa9831a576822e11be0959b8042b8cf42cd2cc9bb912ab
7
+ data.tar.gz: 103be7bc90d547e2f82a03b294e5dad77a4ed707d24e5132925470b78d90a8719efa2f61cbe062b126bf57f3b52a736f13d7e56013e93beccb540295c07b8559
@@ -1,3 +1,3 @@
1
1
  module Palapala
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.18"
3
3
  end
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.16
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-03 00:00:00.000000000 Z
11
+ date: 2024-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64