wkhtmltopdf-binary 0.12.4 → 0.12.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/wkhtmltopdf +52 -7
- data/bin/wkhtmltopdf_archlinux_amd64.gz +0 -0
- data/bin/wkhtmltopdf_centos_6_amd64.gz +0 -0
- data/bin/wkhtmltopdf_centos_6_i386.gz +0 -0
- data/bin/wkhtmltopdf_centos_7_amd64.gz +0 -0
- data/bin/wkhtmltopdf_centos_7_i386.gz +0 -0
- data/bin/wkhtmltopdf_centos_8_amd64.gz +0 -0
- data/bin/wkhtmltopdf_debian_10_amd64.gz +0 -0
- data/bin/wkhtmltopdf_debian_10_i386.gz +0 -0
- data/bin/wkhtmltopdf_debian_9_amd64.gz +0 -0
- data/bin/wkhtmltopdf_debian_9_i386.gz +0 -0
- data/bin/wkhtmltopdf_macos_cocoa.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_16.04_amd64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_16.04_i386.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_18.04_amd64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_18.04_i386.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_20.04_amd64.gz +0 -0
- metadata +39 -13
- data/bin/wkhtmltopdf_darwin_x86 +0 -0
- data/bin/wkhtmltopdf_linux_amd64 +0 -0
- data/bin/wkhtmltopdf_linux_x86 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
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
@@ -8,14 +8,59 @@
|
|
8
8
|
# of the License at http://www.apache.org/licenses/LICENSE-2.0
|
9
9
|
|
10
10
|
require 'rbconfig'
|
11
|
+
require 'zlib'
|
11
12
|
|
12
13
|
suffix = case RbConfig::CONFIG['host_os']
|
13
|
-
when /linux/
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
when /linux/
|
15
|
+
os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
|
16
|
+
|
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
|
19
|
+
|
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
|
22
|
+
|
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
|
40
|
+
|
41
|
+
architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
|
42
|
+
|
43
|
+
"#{os}_#{architecture}"
|
44
|
+
when /darwin/
|
45
|
+
'macos_cocoa'
|
46
|
+
else
|
47
|
+
'unknown'
|
48
|
+
end
|
49
|
+
|
50
|
+
suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
|
51
|
+
|
52
|
+
binary = "#{__FILE__}_#{suffix}"
|
53
|
+
|
54
|
+
if File.exist?("#{binary}.gz") && !File.exist?(binary)
|
55
|
+
File.open binary, 'wb', 0o755 do |file|
|
56
|
+
Zlib::GzipReader.open("#{binary}.gz") { |gzip| file << gzip.read }
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
unless File.exist? binary
|
61
|
+
raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 ' \
|
62
|
+
'CentOS 6/7/8, Debian 9/10, archlinux amd64, or intel-based Cocoa macOS ' \
|
63
|
+
"(missing binary: #{binary})."
|
19
64
|
end
|
20
65
|
|
21
|
-
|
66
|
+
exec *$*.unshift(binary)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,16 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wkhtmltopdf-binary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
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:
|
12
|
-
dependencies:
|
13
|
-
|
11
|
+
date: 2020-10-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: minitest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description:
|
14
28
|
email: zakird@gmail.com
|
15
29
|
executables:
|
16
30
|
- wkhtmltopdf
|
@@ -19,14 +33,27 @@ extra_rdoc_files: []
|
|
19
33
|
files:
|
20
34
|
- bin/wkhtmltopdf
|
21
35
|
- bin/wkhtmltopdf-binary.rb
|
22
|
-
- bin/
|
23
|
-
- bin/
|
24
|
-
- bin/
|
25
|
-
|
36
|
+
- bin/wkhtmltopdf_archlinux_amd64.gz
|
37
|
+
- bin/wkhtmltopdf_centos_6_amd64.gz
|
38
|
+
- bin/wkhtmltopdf_centos_6_i386.gz
|
39
|
+
- bin/wkhtmltopdf_centos_7_amd64.gz
|
40
|
+
- bin/wkhtmltopdf_centos_7_i386.gz
|
41
|
+
- bin/wkhtmltopdf_centos_8_amd64.gz
|
42
|
+
- bin/wkhtmltopdf_debian_10_amd64.gz
|
43
|
+
- bin/wkhtmltopdf_debian_10_i386.gz
|
44
|
+
- bin/wkhtmltopdf_debian_9_amd64.gz
|
45
|
+
- bin/wkhtmltopdf_debian_9_i386.gz
|
46
|
+
- bin/wkhtmltopdf_macos_cocoa.gz
|
47
|
+
- bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
|
48
|
+
- bin/wkhtmltopdf_ubuntu_16.04_i386.gz
|
49
|
+
- bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
|
50
|
+
- bin/wkhtmltopdf_ubuntu_18.04_i386.gz
|
51
|
+
- bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
|
52
|
+
homepage:
|
26
53
|
licenses:
|
27
54
|
- Apache-2.0
|
28
55
|
metadata: {}
|
29
|
-
post_install_message:
|
56
|
+
post_install_message:
|
30
57
|
rdoc_options: []
|
31
58
|
require_paths:
|
32
59
|
- "."
|
@@ -41,9 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
68
|
- !ruby/object:Gem::Version
|
42
69
|
version: '0'
|
43
70
|
requirements: []
|
44
|
-
|
45
|
-
|
46
|
-
signing_key:
|
71
|
+
rubygems_version: 3.0.3
|
72
|
+
signing_key:
|
47
73
|
specification_version: 4
|
48
74
|
summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
49
75
|
test_files: []
|
data/bin/wkhtmltopdf_darwin_x86
DELETED
Binary file
|
data/bin/wkhtmltopdf_linux_amd64
DELETED
Binary file
|
data/bin/wkhtmltopdf_linux_x86
DELETED
Binary file
|