wkhtmltopdf-binary 0.12.5.1 → 0.12.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5b8ebf97fa3a74a00e411d4d7d484bba2c1c2baebc62d2c73d11d7ac5afb433
4
- data.tar.gz: 9863aba12e71e69d20bad0306e2a2490855ff535e677c63be1d26d95f55b4a00
3
+ metadata.gz: 442c23c8cb055c2b6f1ff09a8d43c21a6c10ec99cfad877e17d9b435c85b8b6a
4
+ data.tar.gz: 58285d30e2f93fd6cb35c2b06f4dc8e04b40826eb8c8d9011cf705724386b578
5
5
  SHA512:
6
- metadata.gz: 76bf118aca2ecbfac9021c6bcef5e5ae14f93431173f634d57ffbbb61341f48724db9218503a17b95b417af3c2915ddd0decce4463981b62be2f9834f1fb1aa1
7
- data.tar.gz: e75124c3de84bdafb58b3c72508dfc3834210c62b42978cd8a65bed47072867e25246a9eb7533f9b63053fda8032e35c511c7c3122f22e7ee2c861127b17d348
6
+ metadata.gz: 866ec6029b8f2f4f26591a6ff59d06788b3cdcf0684092b22854def5cecf77a6bb4ce2ae42f8fea843cdbed69cb50508a78192e71ecd8c90633a868abcb61414
7
+ data.tar.gz: fc474dcd0ea90061a6e352b7bfa454df8992bdefb2d4c40f08741d680f858d303b727d1e7d937ec350e56373bc433443d5108274beda65fcd897431c605ab40d
data/bin/wkhtmltopdf CHANGED
@@ -14,20 +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
- # CentOS 6 doesn't have `/etc/os-release`.
18
- if os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6')
19
- os = 'centos_6'
20
- 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
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
21
40
 
22
41
  architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
23
42
 
24
43
  "#{os}_#{architecture}"
25
44
  when /darwin/
26
- RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'macos_cocoa' : 'macos_carbon'
45
+ 'macos_cocoa'
27
46
  else
28
47
  'unknown'
29
48
  end
30
49
 
50
+ suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
51
+
31
52
  binary = "#{__FILE__}_#{suffix}"
32
53
 
33
54
  if File.exist?("#{binary}.gz") && !File.exist?(binary)
@@ -37,9 +58,9 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
37
58
  end
38
59
 
39
60
  unless File.exist? binary
40
- raise 'Invalid platform, must be running on Ubuntu 14.04/16.04/18.04 ' \
41
- 'CentOS 6/7, Debian 8/9/10, or intel-based macOS ' \
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 ' \
42
63
  "(missing binary: #{binary})."
43
64
  end
44
65
 
45
- system *$*.unshift(binary)
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
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.5.1
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-01-17 00:00:00.000000000 Z
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,29 +33,27 @@ 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
39
40
  - bin/wkhtmltopdf_centos_7_i386.gz
41
+ - bin/wkhtmltopdf_centos_8_amd64.gz
40
42
  - bin/wkhtmltopdf_debian_10_amd64.gz
41
43
  - bin/wkhtmltopdf_debian_10_i386.gz
42
- - bin/wkhtmltopdf_debian_8_amd64.gz
43
- - bin/wkhtmltopdf_debian_8_i386.gz
44
44
  - bin/wkhtmltopdf_debian_9_amd64.gz
45
45
  - bin/wkhtmltopdf_debian_9_i386.gz
46
- - bin/wkhtmltopdf_macos_carbon.gz
47
46
  - bin/wkhtmltopdf_macos_cocoa.gz
48
- - bin/wkhtmltopdf_ubuntu_14.04_amd64.gz
49
- - bin/wkhtmltopdf_ubuntu_14.04_i386.gz
50
47
  - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
51
48
  - bin/wkhtmltopdf_ubuntu_16.04_i386.gz
52
49
  - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
53
50
  - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
54
- homepage:
51
+ - bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
52
+ homepage:
55
53
  licenses:
56
54
  - Apache-2.0
57
55
  metadata: {}
58
- post_install_message:
56
+ post_install_message:
59
57
  rdoc_options: []
60
58
  require_paths:
61
59
  - "."
@@ -71,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
69
  version: '0'
72
70
  requirements: []
73
71
  rubygems_version: 3.0.3
74
- signing_key:
72
+ signing_key:
75
73
  specification_version: 4
76
74
  summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
77
75
  test_files: []
Binary file
Binary file