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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b14e29e5c34afb7a6e620c20bca6137757df229f8cfa6b34b7e5f21d7051bb83
4
- data.tar.gz: 32d534d05af4fa9558bf152a42d564749f2dd839c5c1d4d9b6e0c757aee2ad08
3
+ metadata.gz: 9baec3609c998a3b80824c897e107615963239064048abb8a668cb98ff3281b5
4
+ data.tar.gz: 7b64f918f3ba7e54ac62961c4051018c04c0822175b29c31e3c594a7031bf9d7
5
5
  SHA512:
6
- metadata.gz: b74b31f57bbb032f3022dd7638f1693adc4b9bc8a0474e7f9f8f8d8697d600b03b391690c28ed01672e5adbe323572541690543713c3490fa631bae1f8b50e6d
7
- data.tar.gz: e2f91373d7f61d97374c4de1229984747a466b0bb771305b32113fc553b9fc1e9bd762c12d7b8972eca0db6ec001d3672d17bd840ce5487701f1c9df9687afa0
6
+ metadata.gz: d85176ad385a6ab09ddedeb360a7b1086518af521d8ffbc023d688b636e5c2a68ec8ff4ad272fcd32ba3718ecbdfe7958f3d977e6ec88090abe9f5f6a03ea6f6
7
+ data.tar.gz: 9e6f9f49ca7eeef6c934407777dfefb190d8065fe509c97d212174798cc29ff1cf1586953ddc269ff1d1fb73ec9d5967375f7f06ab39b2cd148d305faf954d5f
@@ -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);
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Grover
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.2'
5
5
  end
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.1
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-08 00:00:00.000000000 Z
11
+ date: 2019-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: combine_pdf