wicked_pdf 1.3.0 → 1.4.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 +4 -0
- data/README.md +2 -0
- data/lib/wicked_pdf.rb +4 -2
- data/lib/wicked_pdf/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6fc82b54d2e17d53f2e9c8b23d4987dccb18e38a20f8aadaa57cd2b7c263bcb
|
4
|
+
data.tar.gz: bb936e81af7719b89e6878c891b9bb2d5a3fd8742a24640e2508773c9b2be0dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fe8ce87aa78a2d6d1d1e6590d1f069762b56f363aad561c255f7d1f0ba461fabcfb63177a34a547d4de7f1d6bebc9d3f2a17fa0095b7f36d0fb7a0f1c28a657
|
7
|
+
data.tar.gz: d2a74408e9a7b90046c3c6ecada7af16f7ccacf0fbe787a25b99b218c17ba42945d5854cd4c0631d2c73b2b306e55ca97a424ee6d313fc357d20378696a4945a
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
10
10
|
### Fixes
|
11
11
|
- None
|
12
12
|
|
13
|
+
## [1.4.0] - 2019-05-23
|
14
|
+
### New Features
|
15
|
+
- [Add support for `log_level` and `quiet` options](https://github.com/mileszs/wicked_pdf/pull/834)
|
16
|
+
|
13
17
|
## [1.3.0] - 2019-05-20
|
14
18
|
### New Features
|
15
19
|
- [Add support for Webpacker provided bundles](https://github.com/mileszs/wicked_pdf/pull/739)
|
data/README.md
CHANGED
@@ -190,6 +190,8 @@ class ThingsController < ApplicationController
|
|
190
190
|
viewport_size: 'TEXT', # available only with use_xserver or patched QT
|
191
191
|
extra: '', # directly inserted into the command to wkhtmltopdf
|
192
192
|
raise_on_all_errors: nil, # raise error for any stderr output. Such as missing media, image assets
|
193
|
+
log_level: 'info', # Available values: none, error, warn, or info - only available with wkhtmltopdf 0.12.5+
|
194
|
+
quiet: false, # `false` is same as `log_level: 'info'`, `true` is same as `log_level: 'none'`
|
193
195
|
outline: { outline: true,
|
194
196
|
outline_depth: LEVEL },
|
195
197
|
margin: { top: SIZE, # default 10 (mm)
|
data/lib/wicked_pdf.rb
CHANGED
@@ -293,10 +293,12 @@ class WickedPdf
|
|
293
293
|
:dpi,
|
294
294
|
:page_size,
|
295
295
|
:page_width,
|
296
|
-
:title
|
296
|
+
:title,
|
297
|
+
:log_level])
|
297
298
|
r += make_options(options, [:lowquality,
|
298
299
|
:grayscale,
|
299
|
-
:no_pdf_compression
|
300
|
+
:no_pdf_compression,
|
301
|
+
:quiet], '', :boolean)
|
300
302
|
r += make_options(options, [:image_dpi,
|
301
303
|
:image_quality,
|
302
304
|
:page_height], '', :numeric)
|
data/lib/wicked_pdf/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wicked_pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Z. Sterrett
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-05-
|
12
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
version: '0'
|
200
200
|
requirements:
|
201
201
|
- wkhtmltopdf
|
202
|
-
rubygems_version: 3.0.
|
202
|
+
rubygems_version: 3.0.1
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: PDF generator (from HTML) gem for Ruby on Rails
|