grover 0.5.1 → 0.5.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 +4 -0
- data/lib/grover/configuration.rb +3 -1
- data/lib/grover/middleware.rb +1 -1
- data/lib/grover/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23be6a01f9d60e6aaa3e1c224a855b7424f40db5
|
4
|
+
data.tar.gz: 0f7e8fdeb229de987444e8e4756c8a3e09349202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59a8240257511c3fb8afc32b6cf2842f99fd7454b48ad700c4fbc355bb81bc85db40ddb45765653d38df018a94997f1e7b7b35e213b4ca4ccf21d31ca960640e
|
7
|
+
data.tar.gz: 88a776f44751fc3ff49503acb98f08582d0519a472fbe36ea255aff97fce81b590302a47834a4811dc92bdc798c023c060b5e86e0eb8358db376d1198d8704ee
|
data/lib/grover.rb
CHANGED
@@ -30,6 +30,10 @@ class Grover
|
|
30
30
|
try {
|
31
31
|
browser = await puppeteer.launch(#{launch_params});
|
32
32
|
const page = await browser.newPage();
|
33
|
+
|
34
|
+
const cache = options.cache; delete options.cache;
|
35
|
+
await page.setCacheEnabled(cache);
|
36
|
+
|
33
37
|
if (url.match(/^http/i)) {
|
34
38
|
await page.goto(url, { waitUntil: 'networkidle2' });
|
35
39
|
} else {
|
data/lib/grover/configuration.rb
CHANGED
data/lib/grover/middleware.rb
CHANGED
@@ -59,7 +59,7 @@ class Grover
|
|
59
59
|
body = body.join if body.is_a?(Array)
|
60
60
|
|
61
61
|
body = HTMLPreprocessor.process body, root_url, protocol
|
62
|
-
Grover.new(body, display_url: request_url)
|
62
|
+
Grover.new(body, display_url: request_url, cache: false)
|
63
63
|
end
|
64
64
|
|
65
65
|
def add_cover_content(grover)
|
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.5.
|
4
|
+
version: 0.5.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: 2018-09-
|
11
|
+
date: 2018-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: combine_pdf
|