pdfgen 0.6.0 → 0.7.0

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
  SHA1:
3
- metadata.gz: 46f2787d1d479c943502fde607fb660011b872b4
4
- data.tar.gz: 0eeb3181ea2b9e49f32aa3aee96e09a4524ab0fe
3
+ metadata.gz: 1e681da225f36dae847cc8aa5ef3f2c8dada2d34
4
+ data.tar.gz: 9d52509a92631f22da061ecc4ea0d1748140c996
5
5
  SHA512:
6
- metadata.gz: 7fdad867f3e1b0a8a59382c77c68a6b10cbf8354a5f798074fae44b9e4b971e07fa55d28fca7b4868d1ad054ca478f4cc5140f37a91b5992c7c27d1f5a1564d9
7
- data.tar.gz: 90fdc2ad7bfb56d8dfee04712a79ba00c9cb46bd5dabbb872db2f92a38115332a4715f763123b0856f79e28091f777333997b7ee6d36610e6ff0decd544f286f
6
+ metadata.gz: 8bf7752d9271f279bb86b622c681844a2f0d66cde435feeb9ff263a8e3e5c824252d7f230f9ae154ca86ccae0989dc472944c15070b52f4fc03b91866b8d7055
7
+ data.tar.gz: f4bf5e43414123bb696650ad4f853b8f34dbefd41807cd4920459838ed5508dc8eb40e25b04dbde4f3f982f6a4856e057afe5be2ecc704c30cec918e48dccdfc
data/CHANGELOG.md CHANGED
@@ -1,19 +1,28 @@
1
+ ## Pdfgen 0.7.0 (June 14, 2019)
2
+
3
+ * Revert to using setContent but require Puppeteer >= 1.11.0.
4
+
5
+ This version of Puppeteer added support to setContent for waiting until browser
6
+ events fire. The original reason for transitioning away from setContent was lack
7
+ of that feature and navigating to a data URL is limited to a maximum of 2 megabytes
8
+ of HTML as that is Chromium's URL length limit.
9
+
1
10
  ## Pdfgen 0.6.0 (June 14, 2019)
2
11
 
3
- * Use capture3 to also capture stderror which is where Node error messages are output.
12
+ - Use capture3 to also capture stderror which is where Node error messages are output.
4
13
 
5
14
  This allows Pdfgen to include the error from Node in the exception that is raised.
6
15
 
7
16
  ## Pdfgen 0.5.0 (September 3, 2018)
8
17
 
9
- * Changes how the wait for timeout works slightly.
18
+ - Changes how the wait for timeout works slightly.
10
19
 
11
20
  This new way starts the wait prior to putting the HTML in the page. Now that we can
12
21
  utilize the waitUntil navigation feature in Puppeteer, we might as well start the
13
22
  clock before waiting for that amount of time. This way, the maximum wait time should
14
23
  be roughly the timeout instead of the timeout + how long the page takes to load.
15
24
 
16
- * Changes how static HTML is put into the page.
25
+ - Changes how static HTML is put into the page.
17
26
 
18
27
  This new method allows us to use the navigation wait helpers so there should be
19
28
  almost no need for timeout waiting if passing Pdfgen HTML instead of a URL.
@@ -21,23 +30,23 @@
21
30
  Sadly, this still does not load assets on the page so inlining your assets is still
22
31
  required.
23
32
 
24
- * Moves emulateMedia and setViewport steps to be before setting content or navigation
33
+ - Moves emulateMedia and setViewport steps to be before setting content or navigation
25
34
  so that the browser won't need to rerender the content and hopefully we improve
26
35
  performance some.
27
36
 
28
37
  ## Pdfgen 0.4.2 (June 8, 2018)
29
38
 
30
- * Adds checking of minimum Node version required.
39
+ - Adds checking of minimum Node version required.
31
40
 
32
41
  Need to soon add testing for different versions of Node to discover what the
33
42
  compatible versions are.
34
43
 
35
- - Adds handling of any unhandled rejection by logging the error and then exiting.
44
+ * Adds handling of any unhandled rejection by logging the error and then exiting.
36
45
 
37
46
  This change provides better error messaged from Node and also prevents the process
38
47
  from hanging and not exiting when there was an error.
39
48
 
40
- - Fixes bug where launch options were no longer being passed to the Javascript.
49
+ * Fixes bug where launch options were no longer being passed to the Javascript.
41
50
 
42
51
  ## Pdfgen 0.4.1 (May 15, 2018)
43
52
 
data/README.md CHANGED
@@ -4,7 +4,7 @@ A tool for creating PDFs using [Puppeteer](https://github.com/GoogleChrome/puppe
4
4
  # Dependencies
5
5
  This gem requires:
6
6
  * Node v7.6 or greater
7
- * Puppeteer (tested with v1.3.0)
7
+ * Puppeteer v1.11.0 or greater
8
8
 
9
9
  ### OSX (Homebrew)
10
10
  To install node on OSX you can use Homebrew:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.7.0
@@ -58,7 +58,7 @@ stdin.on('end', function () {
58
58
  if (typeof url !== 'undefined' && url) {
59
59
  await page.goto(url, url_options);
60
60
  } else {
61
- await page.goto("data:text/html," + html, { waitUntil: 'networkidle0' });
61
+ await page.setContent(html, { waitUntil: ["networkidle0", "load"] });
62
62
  }
63
63
 
64
64
  // If we were given a wait timeout, we should wait for the rest of the timeout now. That way,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Fox