ferrum_pdf 0.4.1 → 0.4.2
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/ferrum_pdf/version.rb +1 -1
- data/lib/ferrum_pdf.rb +3 -0
- 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: 1bb953e452513432ae962fdf430ca58dfda05c95ef099a3a081c280aad8b7013
|
4
|
+
data.tar.gz: 8eea8b0b4b4fdcd2f24c36f7da512742c1d84efca70585cefbc23207e3287a68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1159b7493ae224c5c2eede63d2d0e4b30b51fb33929572ed1315bc5ca59aa2f39c1778a8a12ddc8df7d7d85e0038961250c0e9073300988055e5d0be032ddfd
|
7
|
+
data.tar.gz: 93823c9ad5df71ffae73925c09af0bed905ec64a6192d249d9d733075e0e92bc7126aede0b952a2293dc708123a6d93c0e9c5f5399954a3bd9baf447815bdc5b
|
data/lib/ferrum_pdf/version.rb
CHANGED
data/lib/ferrum_pdf.rb
CHANGED
@@ -25,7 +25,10 @@ module FerrumPdf
|
|
25
25
|
yield config
|
26
26
|
end
|
27
27
|
|
28
|
+
# Creates and registers a new browser for exports
|
29
|
+
# If a browser with the same name already exists, it will be shut down before instantiating the new one
|
28
30
|
def add_browser(name, **options)
|
31
|
+
@@browsers[name].quit if @@browsers[name]
|
29
32
|
@@browsers[name] = Ferrum::Browser.new(@@config.merge(options))
|
30
33
|
end
|
31
34
|
|