pdfgen 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -10
- data/VERSION +1 -1
- data/lib/pdfgen.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: 80237bcbd9c457551fd01d9d834597e89bce1149
|
4
|
+
data.tar.gz: f3c875f5922a023f5050e070e66bf3effc52f16b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff8c14fb92f093d46a19349004b39d263f0c00ba6dd1228a98946cebef7fc8ec86e89998c0cd47b33cb598152dc38adda0f35aa2a00048662ef4ee09ff02085
|
7
|
+
data.tar.gz: 0be1494a49994c44b8785f86334bf57170f075819a1b4ffcc26923520fcc4a5039dca2ff65e31b5db1fe00f9487f8a27718d17f10fe3a5d1c28829c61b5453c6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## Pdfgen 0.8.0 (December 17, 2019)
|
2
|
+
|
3
|
+
* Allow using a `file://` path as a URL for PDFs
|
4
|
+
|
5
|
+
This was submitted by https://github.com/maokomioko in
|
6
|
+
https://github.com/romaimperator/pdfgen/pull/1. Thanks for your contribution!
|
7
|
+
|
1
8
|
## Pdfgen 0.7.0 (June 14, 2019)
|
2
9
|
|
3
10
|
* Revert to using setContent but require Puppeteer >= 1.11.0.
|
@@ -9,20 +16,20 @@
|
|
9
16
|
|
10
17
|
## Pdfgen 0.6.0 (June 14, 2019)
|
11
18
|
|
12
|
-
|
19
|
+
* Use capture3 to also capture stderror which is where Node error messages are output.
|
13
20
|
|
14
21
|
This allows Pdfgen to include the error from Node in the exception that is raised.
|
15
22
|
|
16
23
|
## Pdfgen 0.5.0 (September 3, 2018)
|
17
24
|
|
18
|
-
|
25
|
+
* Changes how the wait for timeout works slightly.
|
19
26
|
|
20
27
|
This new way starts the wait prior to putting the HTML in the page. Now that we can
|
21
28
|
utilize the waitUntil navigation feature in Puppeteer, we might as well start the
|
22
29
|
clock before waiting for that amount of time. This way, the maximum wait time should
|
23
30
|
be roughly the timeout instead of the timeout + how long the page takes to load.
|
24
31
|
|
25
|
-
|
32
|
+
* Changes how static HTML is put into the page.
|
26
33
|
|
27
34
|
This new method allows us to use the navigation wait helpers so there should be
|
28
35
|
almost no need for timeout waiting if passing Pdfgen HTML instead of a URL.
|
@@ -30,13 +37,13 @@
|
|
30
37
|
Sadly, this still does not load assets on the page so inlining your assets is still
|
31
38
|
required.
|
32
39
|
|
33
|
-
|
40
|
+
* Moves emulateMedia and setViewport steps to be before setting content or navigation
|
34
41
|
so that the browser won't need to rerender the content and hopefully we improve
|
35
42
|
performance some.
|
36
43
|
|
37
44
|
## Pdfgen 0.4.2 (June 8, 2018)
|
38
45
|
|
39
|
-
|
46
|
+
* Adds checking of minimum Node version required.
|
40
47
|
|
41
48
|
Need to soon add testing for different versions of Node to discover what the
|
42
49
|
compatible versions are.
|
@@ -50,16 +57,16 @@
|
|
50
57
|
|
51
58
|
## Pdfgen 0.4.1 (May 15, 2018)
|
52
59
|
|
53
|
-
|
60
|
+
* Fixes bug with regex that checks if a URL was passed.
|
54
61
|
|
55
62
|
## Pdfgen 0.4.0 (May 12, 2018)
|
56
63
|
|
57
|
-
|
64
|
+
* Can now provide a URL to the initializer.
|
58
65
|
|
59
66
|
Providing a URL to the initializer will now nagivate to the URL and then render the
|
60
67
|
page to a PDF.
|
61
68
|
|
62
|
-
|
69
|
+
* Adds a debug mode.
|
63
70
|
|
64
71
|
Calling debug_mode and passing in a time in milliseconds to wait with the browser
|
65
72
|
not headless. This may change to be forever in the future but that would cause weird
|
@@ -69,11 +76,11 @@
|
|
69
76
|
|
70
77
|
## Pdfgen 0.3.1 (April 23, 2018)
|
71
78
|
|
72
|
-
|
79
|
+
* Fixes bug by passing the wait_for_timeout to the Javascript script.
|
73
80
|
|
74
81
|
## Pdfgen 0.3.0 (April 23, 2018)
|
75
82
|
|
76
|
-
|
83
|
+
* Allows optional period in milliseconds to wait for the page to finish rendering.
|
77
84
|
|
78
85
|
A new optional wait timeout that will occur after the content has been set,
|
79
86
|
the media emulation set, and the viewport has been set to allow for javascript
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
data/lib/pdfgen.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Fox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|