wkhtmltopdf-binary 0.12.6 → 0.12.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/wkhtmltopdf +24 -11
- data/bin/wkhtmltopdf_archlinux_amd64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_20.04_amd64.gz +0 -0
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 442c23c8cb055c2b6f1ff09a8d43c21a6c10ec99cfad877e17d9b435c85b8b6a
|
4
|
+
data.tar.gz: 58285d30e2f93fd6cb35c2b06f4dc8e04b40826eb8c8d9011cf705724386b578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 866ec6029b8f2f4f26591a6ff59d06788b3cdcf0684092b22854def5cecf77a6bb4ce2ae42f8fea843cdbed69cb50508a78192e71ecd8c90633a868abcb61414
|
7
|
+
data.tar.gz: fc474dcd0ea90061a6e352b7bfa454df8992bdefb2d4c40f08741d680f858d303b727d1e7d937ec350e56373bc433443d5108274beda65fcd897431c605ab40d
|
data/bin/wkhtmltopdf
CHANGED
@@ -14,18 +14,29 @@ suffix = case RbConfig::CONFIG['host_os']
|
|
14
14
|
when /linux/
|
15
15
|
os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
end
|
17
|
+
os_based_on_ubuntu_16_04 = os.start_with?('ubuntu_16.') || os.start_with?('ubuntu_17.')
|
18
|
+
os = 'ubuntu_16.04' if os_based_on_ubuntu_16_04
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
os.start_with?('amzn_')
|
24
|
-
os = 'centos_6'
|
25
|
-
end
|
20
|
+
os_based_on_ubuntu_18_04 = os.start_with?('ubuntu_18.') || os.start_with?('ubuntu_19.') || os.start_with?('elementary') || os.start_with?('linuxmint') || os.start_with?('pop')
|
21
|
+
os = 'ubuntu_18.04' if os_based_on_ubuntu_18_04
|
26
22
|
|
27
|
-
|
28
|
-
os = '
|
23
|
+
os_based_on_ubuntu_20_04 = os.start_with?('ubuntu_20.')
|
24
|
+
os = 'ubuntu_20.04' if os_based_on_ubuntu_20_04
|
25
|
+
|
26
|
+
os_based_on_centos_6 = (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6')) || (os.start_with?('amzn_') && !os.start_with?('amzn_2'))
|
27
|
+
os = 'centos_6' if os_based_on_centos_6
|
28
|
+
|
29
|
+
os_based_on_centos_7 = os.start_with?('amzn_2')
|
30
|
+
os = 'centos_7' if os_based_on_centos_7
|
31
|
+
|
32
|
+
os_based_on_debian_9 = (/(debian_9|deepin)/ =~ os)
|
33
|
+
os = 'debian_9' if os_based_on_debian_9
|
34
|
+
|
35
|
+
os_based_on_debian = !os_based_on_debian_9 && os.start_with?('debian')
|
36
|
+
os = 'debian_10' if os_based_on_debian
|
37
|
+
|
38
|
+
os_based_on_archlinux = os.start_with?('arch_') || os.start_with?('manjaro_')
|
39
|
+
os = 'archlinux' if os_based_on_archlinux
|
29
40
|
|
30
41
|
architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
|
31
42
|
|
@@ -36,6 +47,8 @@ suffix = case RbConfig::CONFIG['host_os']
|
|
36
47
|
'unknown'
|
37
48
|
end
|
38
49
|
|
50
|
+
suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
|
51
|
+
|
39
52
|
binary = "#{__FILE__}_#{suffix}"
|
40
53
|
|
41
54
|
if File.exist?("#{binary}.gz") && !File.exist?(binary)
|
@@ -46,7 +59,7 @@ end
|
|
46
59
|
|
47
60
|
unless File.exist? binary
|
48
61
|
raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 ' \
|
49
|
-
'CentOS 6/7/8, Debian 9/10, or intel-based Cocoa macOS ' \
|
62
|
+
'CentOS 6/7/8, Debian 9/10, archlinux amd64, or intel-based Cocoa macOS ' \
|
50
63
|
"(missing binary: #{binary})."
|
51
64
|
end
|
52
65
|
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wkhtmltopdf-binary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.6
|
4
|
+
version: 0.12.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zakir Durumeric
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email: zakird@gmail.com
|
29
29
|
executables:
|
30
30
|
- wkhtmltopdf
|
@@ -33,6 +33,7 @@ extra_rdoc_files: []
|
|
33
33
|
files:
|
34
34
|
- bin/wkhtmltopdf
|
35
35
|
- bin/wkhtmltopdf-binary.rb
|
36
|
+
- bin/wkhtmltopdf_archlinux_amd64.gz
|
36
37
|
- bin/wkhtmltopdf_centos_6_amd64.gz
|
37
38
|
- bin/wkhtmltopdf_centos_6_i386.gz
|
38
39
|
- bin/wkhtmltopdf_centos_7_amd64.gz
|
@@ -47,11 +48,12 @@ files:
|
|
47
48
|
- bin/wkhtmltopdf_ubuntu_16.04_i386.gz
|
48
49
|
- bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
|
49
50
|
- bin/wkhtmltopdf_ubuntu_18.04_i386.gz
|
50
|
-
|
51
|
+
- bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
|
52
|
+
homepage:
|
51
53
|
licenses:
|
52
54
|
- Apache-2.0
|
53
55
|
metadata: {}
|
54
|
-
post_install_message:
|
56
|
+
post_install_message:
|
55
57
|
rdoc_options: []
|
56
58
|
require_paths:
|
57
59
|
- "."
|
@@ -67,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
69
|
version: '0'
|
68
70
|
requirements: []
|
69
71
|
rubygems_version: 3.0.3
|
70
|
-
signing_key:
|
72
|
+
signing_key:
|
71
73
|
specification_version: 4
|
72
74
|
summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
73
75
|
test_files: []
|