wkhtmltopdf-binary 0.12.6.5 → 0.12.6.7

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: 442c23c8cb055c2b6f1ff09a8d43c21a6c10ec99cfad877e17d9b435c85b8b6a
4
- data.tar.gz: 58285d30e2f93fd6cb35c2b06f4dc8e04b40826eb8c8d9011cf705724386b578
3
+ metadata.gz: 34e941b4342fc4cd0e43cc5e53e37f3528d61dfb6aa74f9b79fe40fd3403d42b
4
+ data.tar.gz: 7f41a6cfb370cd6ebb77a010337c9c55ca14d9c7f6115ac9c5c50eced184ea2e
5
5
  SHA512:
6
- metadata.gz: 866ec6029b8f2f4f26591a6ff59d06788b3cdcf0684092b22854def5cecf77a6bb4ce2ae42f8fea843cdbed69cb50508a78192e71ecd8c90633a868abcb61414
7
- data.tar.gz: fc474dcd0ea90061a6e352b7bfa454df8992bdefb2d4c40f08741d680f858d303b727d1e7d937ec350e56373bc433443d5108274beda65fcd897431c605ab40d
6
+ metadata.gz: 9f68b8f2d31ffac36fae2338d4483ce8d04b1c98080d63b43a13a4e3a0f8d9e5b51c8f322351e986d883957e0ca08b3127074f0f6cc38edd6da7a5e528b2e00a
7
+ data.tar.gz: 3005d0dc98542d5dbf4872239321936d84d25f7053c323bb6180d98f2535315eeecdfa8d7cd7386d4a89ac01fedb5e65e0cfb760df0024ed16510d5425f064db
data/bin/wkhtmltopdf CHANGED
@@ -10,35 +10,63 @@
10
10
  require 'rbconfig'
11
11
  require 'zlib'
12
12
 
13
+ def architecture
14
+ case RbConfig::CONFIG['host_cpu']
15
+ when *%w[arm64 aarch64 arch64]
16
+ 'arm64'
17
+ when 'x86_64'
18
+ 'amd64'
19
+ else
20
+ 'i386'
21
+ end
22
+ end
23
+
13
24
  suffix = case RbConfig::CONFIG['host_os']
14
25
  when /linux/
15
26
  os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
16
27
 
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
28
+ os = 'ubuntu_16.04' if os.start_with?('ubuntu_16.') ||
29
+ os.start_with?('ubuntu_17.') ||
30
+ os.start_with?('linuxmint_18.')
19
31
 
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
32
+ os = 'ubuntu_18.04' if os.start_with?('ubuntu_18.') ||
33
+ os.start_with?('ubuntu_19.') ||
34
+ os.start_with?('elementary') ||
35
+ os.start_with?('linuxmint_19.') ||
36
+ os.start_with?('pop') ||
37
+ os.start_with?('zorin')
22
38
 
23
- os_based_on_ubuntu_20_04 = os.start_with?('ubuntu_20.')
24
- os = 'ubuntu_20.04' if os_based_on_ubuntu_20_04
39
+ os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
40
+ os.start_with?('linuxmint_20.')
41
+
42
+ os = 'ubuntu_21.10' if os.start_with?('ubuntu_21.') ||
43
+ os.start_with?('linuxmint_21.')
25
44
 
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
45
+ os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') ||
46
+ os.start_with?('tuxedo_22.')
28
47
 
29
- os_based_on_centos_7 = os.start_with?('amzn_2')
30
- os = 'centos_7' if os_based_on_centos_7
48
+ os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
49
+ (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
31
50
 
32
- os_based_on_debian_9 = (/(debian_9|deepin)/ =~ os)
51
+ os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
52
+ os.start_with?('rhel_7.')
53
+
54
+ os = 'centos_8' if os.start_with?('rocky_8') ||
55
+ os.start_with?('rhel_8.') ||
56
+ os.start_with?('ol_8.')
57
+
58
+ os_based_on_debian_9 = os.start_with?('debian_9') ||
59
+ os.start_with?('deepin')
33
60
  os = 'debian_9' if os_based_on_debian_9
34
61
 
35
- os_based_on_debian = !os_based_on_debian_9 && os.start_with?('debian')
36
- os = 'debian_10' if os_based_on_debian
62
+ os = 'debian_10' if !os_based_on_debian_9 && os.start_with?('debian_10')
63
+
64
+ os = 'debian_11' if !os_based_on_debian_9 && os.start_with?('debian_11')
37
65
 
38
- os_based_on_archlinux = os.start_with?('arch_') || os.start_with?('manjaro_')
39
- os = 'archlinux' if os_based_on_archlinux
66
+ os = 'debian_12' if !os_based_on_debian_9 && os.start_with?('debian_12')
40
67
 
41
- architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
68
+ os = 'archlinux' if os.start_with?('arch_') ||
69
+ os.start_with?('manjaro_')
42
70
 
43
71
  "#{os}_#{architecture}"
44
72
  when /darwin/
@@ -58,8 +86,8 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
58
86
  end
59
87
 
60
88
  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 ' \
89
+ raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, ' \
90
+ 'CentOS 6/7/8, Debian 9/10/11/12, Archlinux amd64, Debian 9/10/11/12 arm64, or Intel-based Cocoa macOS ' \
63
91
  "(missing binary: #{binary})."
64
92
  end
65
93
 
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.6.5
4
+ version: 0.12.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zakir Durumeric
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2024-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
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'
27
41
  description:
28
42
  email: zakird@gmail.com
29
43
  executables:
@@ -40,8 +54,16 @@ files:
40
54
  - bin/wkhtmltopdf_centos_7_i386.gz
41
55
  - bin/wkhtmltopdf_centos_8_amd64.gz
42
56
  - bin/wkhtmltopdf_debian_10_amd64.gz
57
+ - bin/wkhtmltopdf_debian_10_arm64.gz
43
58
  - bin/wkhtmltopdf_debian_10_i386.gz
59
+ - bin/wkhtmltopdf_debian_11_amd64.gz
60
+ - bin/wkhtmltopdf_debian_11_arm64.gz
61
+ - bin/wkhtmltopdf_debian_11_i386.gz
62
+ - bin/wkhtmltopdf_debian_12_amd64.gz
63
+ - bin/wkhtmltopdf_debian_12_arm64.gz
64
+ - bin/wkhtmltopdf_debian_12_i386.gz
44
65
  - bin/wkhtmltopdf_debian_9_amd64.gz
66
+ - bin/wkhtmltopdf_debian_9_arm64.gz
45
67
  - bin/wkhtmltopdf_debian_9_i386.gz
46
68
  - bin/wkhtmltopdf_macos_cocoa.gz
47
69
  - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
@@ -49,10 +71,15 @@ files:
49
71
  - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
50
72
  - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
51
73
  - bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
52
- homepage:
74
+ - bin/wkhtmltopdf_ubuntu_20.04_arm64.gz
75
+ - bin/wkhtmltopdf_ubuntu_21.10_amd64.gz
76
+ - bin/wkhtmltopdf_ubuntu_22.04_amd64.gz
77
+ homepage: https://github.com/zakird/wkhtmltopdf_binary_gem
53
78
  licenses:
54
79
  - Apache-2.0
55
- metadata: {}
80
+ metadata:
81
+ source_code_uri: https://github.com/zakird/wkhtmltopdf_binary_gem
82
+ changelog_uri: https://github.com/zakird/wkhtmltopdf_binary_gem/blob/master/CHANGELOG.md
56
83
  post_install_message:
57
84
  rdoc_options: []
58
85
  require_paths:
@@ -68,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
95
  - !ruby/object:Gem::Version
69
96
  version: '0'
70
97
  requirements: []
71
- rubygems_version: 3.0.3
98
+ rubygems_version: 3.4.19
72
99
  signing_key:
73
100
  specification_version: 4
74
101
  summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.