page_print 0.1.11 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6309e9c992a543fb03dc1084589d229972057a93c0335eb7126e9ab59e921625
4
- data.tar.gz: 03cd8ddce16defbf2e351e62cf75b612e3482fa9c7816f8270b4b7d2eafb9720
3
+ metadata.gz: 92165dd6217dfe03c0f538a91918c875a0e9e219169b92f674e0c814d8fdf99f
4
+ data.tar.gz: 26b7cefc0a6855a31204ff47913401a3dbdce00e9b2245b95b23eb3d50e7f768
5
5
  SHA512:
6
- metadata.gz: 49c33016a5ecc19ee0bc913d993a09de30b4a7ca660d1bbd61b7a90222d7c50c7906ed60a0d83916c1280c72779ead5fd8590ccc7581c7a18e4b271ff334fd21
7
- data.tar.gz: a1cd12d2f758486d8318daaaccb870487b57e0bcf11f241fa3d3e176c9b5a88452bb1868f3c76276c256624df072c7270880496b5484db861427c1064064feaf
6
+ metadata.gz: c403830c62c26cbb611a936fe8acc39354a740c69eff215a8e02ead4856496dd1801dc9279cbada5a70b86f8b376096adc54f37223e3249c67b44b40b9310e74
7
+ data.tar.gz: c490f331e036c48d72ad06eedb386a80e7e57ac766b332b05e2ff327dc4527fa09c2e9729929484314f7c906afaf12da8c3fb02a7a910e836e8f4b3b750b0857
data/README.md CHANGED
@@ -32,7 +32,7 @@ PDFKit and Wicked PDF are Ruby integrations for `wkhtmltopdf`; their rendering b
32
32
  | Network access | Denied unless your fetcher supplies the resource | Built in |
33
33
  | CSS compatibility | Print-focused and partial; no CSS Grid | Limited by the old WebKit engine |
34
34
  | Operational footprint | Native gem and bundled libraries on supported platforms | `wkhtmltopdf` binary plus Qt/WebKit dependencies |
35
- | Upstream status | PagePrint currently packages PlutoBook 0.19.0 | `wkhtmltopdf` was archived in 2023 |
35
+ | Upstream status | PagePrint currently packages PlutoBook 0.20.0 | `wkhtmltopdf` was archived in 2023 |
36
36
 
37
37
  PagePrint is a strong fit when you control the templates, value predictable print layout, and do not need JavaScript. Stay with a `wkhtmltopdf`-based gem if your existing templates depend on its JavaScript or WebKit-specific rendering behavior. When migrating, compare representative output carefully because changing engines can alter pagination, fonts, and layout.
38
38
 
@@ -55,7 +55,7 @@ bundle install
55
55
  PagePrint requires Ruby 3.2 or newer. Native gems with vendored PlutoBook libraries are published for:
56
56
 
57
57
  - `x86_64-linux`
58
- - `arm64-darwin` (Apple Silicon)
58
+ - `arm64-darwin` (Apple Silicon, macOS 15 or newer)
59
59
 
60
60
  Other platforms build from source and require PlutoBook development headers and libraries. See [Installing on other platforms](docs/production.md#installing-on-other-platforms).
61
61
 
@@ -48,6 +48,8 @@ PagePrint.render(html, base_url: "https://example.test", resource_fetcher: fetch
48
48
 
49
49
  The fetcher receives `https://example.test/assets/report.css`. A base URL resolves the URL; it does not enable network access.
50
50
 
51
+ With PlutoBook 0.20.0, relative resource URLs no longer resolve against the process working directory when no base URL is supplied. Use an explicit absolute base URL, such as `https://example.test/assets/` or `file:///absolute/assets/`, with a trailing slash for a directory.
52
+
51
53
  Set an application-wide default when rendering outside Rails:
52
54
 
53
55
  ```ruby
data/docs/production.md CHANGED
@@ -23,7 +23,7 @@ PagePrint requires Ruby 3.2 or newer.
23
23
  | Platform | Installation |
24
24
  | --- | --- |
25
25
  | `x86_64-linux` | Native gem with vendored PlutoBook libraries; the Ruby extension is compiled against the local Ruby |
26
- | `arm64-darwin` | Native gem with vendored PlutoBook libraries; the Ruby extension is compiled against the local Ruby |
26
+ | `arm64-darwin` (macOS 15 or newer) | Native gem with vendored PlutoBook libraries; the Ruby extension is compiled against the local Ruby |
27
27
  | Other platforms | Source build using an installed PlutoBook |
28
28
 
29
29
  The published native gems disable PlutoBook's optional curl, TurboJPEG, and WebP features to keep the bundled dependency set smaller. PagePrint uses its own Ruby resource fetcher boundary and does not expose PlutoBook's optional network fetcher.
@@ -1,3 +1,3 @@
1
1
  module PagePrint
2
- VERSION = '0.1.11'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page_print
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dino Maric