parallel588-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 +26 -13
- 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 +7 -11
- data/bin/wkhtmltopdf_ubuntu_14.04_amd64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_14.04_i386.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_16.04_amd64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_16.04_i386.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d6b37ff25a9e204a55d7954427b0c4611c7ae5f40ea64ad194dee2310e70a7f
|
4
|
+
data.tar.gz: f1b6a1f09a54a00b264dc805a8e1363da5f4e2a2dc0475bd72da19d3f48ff455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4305ce1b3eb598cdc4926885d0c7cafc09eb34ae170786737617d136cc28250c85a1df92a566c2ff7de40e77ecbfef80f0f183de9c685c664b1cef97ef5d477
|
7
|
+
data.tar.gz: 0d044b61772a1d6d1e174ce0e3a79184509a18ee115fc0b80326bdd21da367c18a76d05ab937b455945571400a6a2f46137962c09e27b1ca3973635a4f14f552
|
data/bin/wkhtmltopdf
CHANGED
@@ -14,28 +14,41 @@ 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') || os.start_with?('zorin')
|
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.') || os.start_with?('ubuntu_21.')
|
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') || os.start_with?('rhel_7.')
|
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
|
|
32
43
|
"#{os}_#{architecture}"
|
33
44
|
when /darwin/
|
34
|
-
|
45
|
+
'macos_cocoa'
|
35
46
|
else
|
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)
|
@@ -45,8 +58,8 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
|
|
45
58
|
end
|
46
59
|
|
47
60
|
unless File.exist? binary
|
48
|
-
raise 'Invalid platform, must be running on Ubuntu
|
49
|
-
'CentOS 6/7/8, Debian
|
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 ' \
|
50
63
|
"(missing binary: #{binary})."
|
51
64
|
end
|
52
65
|
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel588-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
|
+
- Maksim Pechnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -25,8 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
description:
|
28
|
-
email:
|
29
|
-
- parallel588@gmail.com
|
28
|
+
email: parallel588@gmail.com
|
30
29
|
executables:
|
31
30
|
- wkhtmltopdf
|
32
31
|
extensions: []
|
@@ -34,15 +33,12 @@ extra_rdoc_files: []
|
|
34
33
|
files:
|
35
34
|
- bin/wkhtmltopdf
|
36
35
|
- bin/wkhtmltopdf-binary.rb
|
37
|
-
- bin/wkhtmltopdf_ubuntu_14.04_amd64.gz
|
38
|
-
- bin/wkhtmltopdf_ubuntu_14.04_i386.gz
|
39
|
-
- bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
|
40
|
-
- bin/wkhtmltopdf_ubuntu_16.04_i386.gz
|
41
36
|
- bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
|
42
37
|
- bin/wkhtmltopdf_ubuntu_18.04_i386.gz
|
43
38
|
- bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
|
44
39
|
homepage:
|
45
|
-
licenses:
|
40
|
+
licenses:
|
41
|
+
- Apache-2.0
|
46
42
|
metadata: {}
|
47
43
|
post_install_message:
|
48
44
|
rdoc_options: []
|
@@ -59,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
55
|
- !ruby/object:Gem::Version
|
60
56
|
version: '0'
|
61
57
|
requirements: []
|
62
|
-
rubygems_version: 3.
|
58
|
+
rubygems_version: 3.1.6
|
63
59
|
signing_key:
|
64
60
|
specification_version: 4
|
65
61
|
summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|