Merge pull request #5418 from consuldemocracy/dependabot/bundler/wicked_pdf-2.8.0
Bump wicked_pdf from 2.7.0 to 2.8.0
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -61,7 +61,7 @@ gem "uglifier", "~> 4.2.0"
|
|||||||
gem "uuidtools", "~> 2.2.0"
|
gem "uuidtools", "~> 2.2.0"
|
||||||
gem "view_component", "~> 3.11.0"
|
gem "view_component", "~> 3.11.0"
|
||||||
gem "whenever", "~> 1.0.0", require: false
|
gem "whenever", "~> 1.0.0", require: false
|
||||||
gem "wicked_pdf", "~> 2.7.0"
|
gem "wicked_pdf", "~> 2.8.0"
|
||||||
gem "wkhtmltopdf-binary", "~> 0.12.6"
|
gem "wkhtmltopdf-binary", "~> 0.12.6"
|
||||||
|
|
||||||
source "https://rails-assets.org" do
|
source "https://rails-assets.org" do
|
||||||
|
|||||||
@@ -680,7 +680,7 @@ GEM
|
|||||||
websocket-extensions (0.1.5)
|
websocket-extensions (0.1.5)
|
||||||
whenever (1.0.0)
|
whenever (1.0.0)
|
||||||
chronic (>= 0.6.3)
|
chronic (>= 0.6.3)
|
||||||
wicked_pdf (2.7.0)
|
wicked_pdf (2.8.0)
|
||||||
activesupport
|
activesupport
|
||||||
wkhtmltopdf-binary (0.12.6.6)
|
wkhtmltopdf-binary (0.12.6.6)
|
||||||
xpath (3.2.0)
|
xpath (3.2.0)
|
||||||
@@ -791,7 +791,7 @@ DEPENDENCIES
|
|||||||
view_component (~> 3.11.0)
|
view_component (~> 3.11.0)
|
||||||
web-console (~> 4.2.1)
|
web-console (~> 4.2.1)
|
||||||
whenever (~> 1.0.0)
|
whenever (~> 1.0.0)
|
||||||
wicked_pdf (~> 2.7.0)
|
wicked_pdf (~> 2.8.0)
|
||||||
wkhtmltopdf-binary (~> 0.12.6)
|
wkhtmltopdf-binary (~> 0.12.6)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
|
|||||||
@@ -8,15 +8,23 @@
|
|||||||
#
|
#
|
||||||
# https://github.com/mileszs/wicked_pdf/blob/master/README.md
|
# https://github.com/mileszs/wicked_pdf/blob/master/README.md
|
||||||
|
|
||||||
WickedPdf.config = {
|
WickedPdf.configure do |config|
|
||||||
# Path to the wkhtmltopdf executable: This usually isn't needed if using
|
# Path to the wkhtmltopdf executable: This usually isn't needed if using
|
||||||
# one of the wkhtmltopdf-binary family of gems.
|
# one of the wkhtmltopdf-binary family of gems.
|
||||||
# exe_path: '/usr/local/bin/wkhtmltopdf',
|
# config.exe_path = '/usr/local/bin/wkhtmltopdf',
|
||||||
# or
|
# or
|
||||||
# exe_path: Gem.bin_path('wkhtmltopdf-binary', 'wkhtmltopdf')
|
# config.exe_path = Gem.bin_path('wkhtmltopdf-binary', 'wkhtmltopdf')
|
||||||
|
|
||||||
|
# Needed for wkhtmltopdf 0.12.6+ to use many wicked_pdf asset helpers
|
||||||
|
config.enable_local_file_access = true
|
||||||
|
|
||||||
# Layout file to be used for all PDFs
|
# Layout file to be used for all PDFs
|
||||||
# (but can be overridden in `render :pdf` calls)
|
# (but can be overridden in `render :pdf` calls)
|
||||||
# layout: 'pdf.html',
|
# config.layout = 'pdf.html',
|
||||||
enable_local_file_access: true
|
|
||||||
}
|
# Using wkhtmltopdf without an X server can be achieved by enabling the
|
||||||
|
# 'use_xvfb' flag. This will wrap all wkhtmltopdf commands around the
|
||||||
|
# 'xvfb-run' command, in order to simulate an X server.
|
||||||
|
#
|
||||||
|
# config.use_xvfb = true,
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user