wkhtmltopdf-binary 0.12.5.4 → 0.12.6.6

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: 8844ae08780f6c097410d1401ec6f528bb9750594dc10d3ff2d7f6ab936fef6e
4
- data.tar.gz: cf93a01e7ab28b9cd74b7b56865b0c716fc09f580a334f68f39be0046e87b459
3
+ metadata.gz: 7a2441a7b6acbf09751256dd420d54ab1e0c028d84e4bf0305cc15d353d1190a
4
+ data.tar.gz: d60450996f827521112c8845b98cbbb98deee424817395fd790e6ffd6ac8e40c
5
5
  SHA512:
6
- metadata.gz: 2770523ec0fa8e3f72dad317d3e3c1c395eb5748c0726176d9d4fe7b251feedc12f226cf73613d7f6e200e2e22acc5f437cd8e5da77d89133b52214c609a6e04
7
- data.tar.gz: 3cca26962f709bcb0ab9df347cff0b56e6f78b6d7a0b78b702bec2a81da6cf8dc6947d94d41aefe0a0b796235ebeb03cafbd8d59017122e8ca19b231aefd77ea
6
+ metadata.gz: 67800dff22babd8b0056433b13967f01eefec6fa2839b55031d2e6acb1c20e2f7239c7b01e9c5d2a1493218b93258439d60130c53b3c69fc6f0871721803d747
7
+ data.tar.gz: 6951ea953619f63163cfa83df61f8dc0ef16eeb76789f4d288192294bf747f601b9d30c46d67a92948c5178367bd2ca02426a98f13f361c85e7f9aa157c50fba
data/bin/wkhtmltopdf CHANGED
@@ -14,25 +14,49 @@ 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
- if os.start_with?('elementary') || os.start_with?('linuxmint')
18
- os = 'ubuntu_18.04'
19
- end
17
+ os = 'ubuntu_16.04' if os.start_with?('ubuntu_16.') ||
18
+ os.start_with?('ubuntu_17.')
20
19
 
21
- # CentOS 6 doesn't have `/etc/os-release`.
22
- if (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6')) ||
23
- os.start_with?('amzn_')
24
- os = 'centos_6'
25
- end
20
+ os = 'ubuntu_18.04' if os.start_with?('ubuntu_18.') ||
21
+ os.start_with?('ubuntu_19.') ||
22
+ os.start_with?('elementary') ||
23
+ os.start_with?('linuxmint') ||
24
+ os.start_with?('pop') ||
25
+ os.start_with?('zorin')
26
+
27
+ os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
28
+ os.start_with?('ubuntu_21.')
29
+
30
+ os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.')
31
+
32
+ os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
33
+ (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
34
+
35
+ os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
36
+ os.start_with?('rhel_7.')
37
+
38
+ os = 'centos_8' if os.start_with?('rocky_8') || os.start_with?('rhel_8.')
39
+
40
+ os_based_on_debian_9 = os.start_with?('debian_9') ||
41
+ os.start_with?('deepin')
42
+ os = 'debian_9' if os_based_on_debian_9
43
+
44
+ os = 'debian_10' if !os_based_on_debian_9 && os.start_with?('debian')
45
+
46
+ os = 'archlinux' if os.start_with?('arch_') ||
47
+ os.start_with?('manjaro_')
26
48
 
27
49
  architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
28
50
 
29
51
  "#{os}_#{architecture}"
30
52
  when /darwin/
31
- RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'macos_cocoa' : 'macos_carbon'
53
+ 'macos_cocoa'
32
54
  else
33
55
  'unknown'
34
56
  end
35
57
 
58
+ suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
59
+
36
60
  binary = "#{__FILE__}_#{suffix}"
37
61
 
38
62
  if File.exist?("#{binary}.gz") && !File.exist?(binary)
@@ -42,8 +66,8 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
42
66
  end
43
67
 
44
68
  unless File.exist? binary
45
- raise 'Invalid platform, must be running on Ubuntu 14.04/16.04/18.04 ' \
46
- 'CentOS 6/7/8, Debian 8/9/10, or intel-based macOS ' \
69
+ raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, ' \
70
+ 'CentOS 6/7/8, Debian 9/10, Archlinux amd64, or Intel-based Cocoa macOS ' \
47
71
  "(missing binary: #{binary})."
48
72
  end
49
73
 
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,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.4
4
+ version: 0.12.6.6
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-02-09 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -24,7 +24,21 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description:
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
28
42
  email: zakird@gmail.com
29
43
  executables:
30
44
  - wkhtmltopdf
@@ -33,6 +47,7 @@ extra_rdoc_files: []
33
47
  files:
34
48
  - bin/wkhtmltopdf
35
49
  - bin/wkhtmltopdf-binary.rb
50
+ - bin/wkhtmltopdf_archlinux_amd64.gz
36
51
  - bin/wkhtmltopdf_centos_6_amd64.gz
37
52
  - bin/wkhtmltopdf_centos_6_i386.gz
38
53
  - bin/wkhtmltopdf_centos_7_amd64.gz
@@ -40,23 +55,20 @@ files:
40
55
  - bin/wkhtmltopdf_centos_8_amd64.gz
41
56
  - bin/wkhtmltopdf_debian_10_amd64.gz
42
57
  - bin/wkhtmltopdf_debian_10_i386.gz
43
- - bin/wkhtmltopdf_debian_8_amd64.gz
44
- - bin/wkhtmltopdf_debian_8_i386.gz
45
58
  - bin/wkhtmltopdf_debian_9_amd64.gz
46
59
  - bin/wkhtmltopdf_debian_9_i386.gz
47
- - bin/wkhtmltopdf_macos_carbon.gz
48
60
  - bin/wkhtmltopdf_macos_cocoa.gz
49
- - bin/wkhtmltopdf_ubuntu_14.04_amd64.gz
50
- - bin/wkhtmltopdf_ubuntu_14.04_i386.gz
51
61
  - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
52
62
  - bin/wkhtmltopdf_ubuntu_16.04_i386.gz
53
63
  - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
54
64
  - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
55
- homepage:
65
+ - bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
66
+ - bin/wkhtmltopdf_ubuntu_22.04_amd64.gz
67
+ homepage:
56
68
  licenses:
57
69
  - Apache-2.0
58
70
  metadata: {}
59
- post_install_message:
71
+ post_install_message:
60
72
  rdoc_options: []
61
73
  require_paths:
62
74
  - "."
@@ -71,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
83
  - !ruby/object:Gem::Version
72
84
  version: '0'
73
85
  requirements: []
74
- rubygems_version: 3.0.6
75
- signing_key:
86
+ rubygems_version: 3.2.3
87
+ signing_key:
76
88
  specification_version: 4
77
89
  summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
78
90
  test_files: []
Binary file
Binary file