grover 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grover.rb +6 -0
- data/lib/grover/version.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: 9baec3609c998a3b80824c897e107615963239064048abb8a668cb98ff3281b5
|
4
|
+
data.tar.gz: 7b64f918f3ba7e54ac62961c4051018c04c0822175b29c31e3c594a7031bf9d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d85176ad385a6ab09ddedeb360a7b1086518af521d8ffbc023d688b636e5c2a68ec8ff4ad272fcd32ba3718ecbdfe7958f3d977e6ec88090abe9f5f6a03ea6f6
|
7
|
+
data.tar.gz: 9e6f9f49ca7eeef6c934407777dfefb190d8065fe509c97d212174798cc29ff1cf1586953ddc269ff1d1fb73ec9d5967375f7f06ab39b2cd148d305faf954d5f
|
data/lib/grover.rb
CHANGED
@@ -112,6 +112,12 @@ class Grover
|
|
112
112
|
}
|
113
113
|
}
|
114
114
|
|
115
|
+
// If specified, evaluate script on the page
|
116
|
+
const executeScript = options.executeScript; delete options.executeScript;
|
117
|
+
if (executeScript != undefined) {
|
118
|
+
await page.evaluate(executeScript);
|
119
|
+
}
|
120
|
+
|
115
121
|
// If we're running puppeteer in headless mode, return the converted PDF
|
116
122
|
if (debug == undefined || (typeof debug === 'object' && (debug.headless == undefined || debug.headless))) {
|
117
123
|
return await page.#{convert_action}(options);
|
data/lib/grover/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Bromwich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: combine_pdf
|