postdoc 0.4.1 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/postdoc/chrome_process.rb +1 -1
- data/lib/postdoc.rb +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: fc6f1dedb4b052746faa12ef70bf33b7625412e0a1f67f64f6ef185660b5cf02
|
4
|
+
data.tar.gz: 54388234a249f8532c597c8b069f1c299361e48ac0a14681904489c5e74b5cb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 116bc3e984fa6a6187552969e1fb1173b2408d4a967a1df9e5800ae7548f5ed28bc7eb344bdb30edf3cc7a46b5e65a207fea572a86b847237bd2e63207ed1e3f
|
7
|
+
data.tar.gz: a66670624a25a39d06f1518fa0bc0deca2b332753b482e6bed7c20fa4b3fc269ce38851b395eda2587f2588dd3255417707093a8e2fa2852a70b2c06af619314
|
@@ -5,7 +5,7 @@ module Postdoc
|
|
5
5
|
class ChromeProcess
|
6
6
|
attr_reader :pid, :port
|
7
7
|
|
8
|
-
def initialize(port: Random.rand(
|
8
|
+
def initialize(port: Random.rand(1025..65535), **_options)
|
9
9
|
@port = port
|
10
10
|
@pid = Process.spawn "chrome --remote-debugging-port=#{port} --headless",
|
11
11
|
out: File::NULL, err: File::NULL
|
data/lib/postdoc.rb
CHANGED
@@ -9,7 +9,7 @@ require 'postdoc/batch'
|
|
9
9
|
|
10
10
|
module Postdoc
|
11
11
|
ActionController::Renderers.add :pdf do |_filename, options|
|
12
|
-
Postdoc.render_from_string render_to_string(options), options
|
12
|
+
Postdoc.render_from_string render_to_string(options), &options
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.render_from_string(content, **options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Groeneveld
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chrome_remote
|