wkhtmltopdf-binary 0.12.6.3 → 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: 2f9ce49d355e331a8b271bc9f6e02c4c483def60f4ea7e75334a1fd1208ca5df
4
- data.tar.gz: 777a4df024ab9af85ce523a9b0167c493916d02a9d831b840d24c6c086a7472b
3
+ metadata.gz: 7a2441a7b6acbf09751256dd420d54ab1e0c028d84e4bf0305cc15d353d1190a
4
+ data.tar.gz: d60450996f827521112c8845b98cbbb98deee424817395fd790e6ffd6ac8e40c
5
5
  SHA512:
6
- metadata.gz: 2eb723694b5ea6bd87d4c293cd1f2a37ea71b47dbbfaa68e6d4ef509b03d4020b3528f45d4ceaaade014f48d65c57a7fa7256933bfafcfc316e477032c3f3f15
7
- data.tar.gz: e2b703f0a1e080f704f4294b56530439fc7ca860ae2f1c8d0ba2afac0b293630cd8e1cf3354bb89fd6ba93f62d23ae4e4c16c69f3d24f92094da5f2083b21f12
6
+ metadata.gz: 67800dff22babd8b0056433b13967f01eefec6fa2839b55031d2e6acb1c20e2f7239c7b01e9c5d2a1493218b93258439d60130c53b3c69fc6f0871721803d747
7
+ data.tar.gz: 6951ea953619f63163cfa83df61f8dc0ef16eeb76789f4d288192294bf747f601b9d30c46d67a92948c5178367bd2ca02426a98f13f361c85e7f9aa157c50fba
data/bin/wkhtmltopdf CHANGED
@@ -14,26 +14,37 @@ 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
- 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
17
+ os = 'ubuntu_16.04' if os.start_with?('ubuntu_16.') ||
18
+ os.start_with?('ubuntu_17.')
19
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
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')
22
26
 
23
- os_based_on_ubuntu_20_04 = os.start_with?('ubuntu_20.')
24
- os = 'ubuntu_20.04' if os_based_on_ubuntu_20_04
27
+ os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
28
+ os.start_with?('ubuntu_21.')
25
29
 
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
30
+ os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.')
28
31
 
29
- os_based_on_centos_7 = os.start_with?('amzn_2')
30
- os = 'centos_7' if os_based_on_centos_7
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'))
31
34
 
32
- os_based_on_debian_9 = /deepin/.match?(os)
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')
33
42
  os = 'debian_9' if os_based_on_debian_9
34
43
 
35
- os_based_on_archlinux = os.start_with?('arch_') || os.start_with?('manjaro_')
36
- os = 'archlinux' if os_based_on_archlinux
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_')
37
48
 
38
49
  architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
39
50
 
@@ -43,7 +54,7 @@ suffix = case RbConfig::CONFIG['host_os']
43
54
  else
44
55
  'unknown'
45
56
  end
46
-
57
+
47
58
  suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
48
59
 
49
60
  binary = "#{__FILE__}_#{suffix}"
@@ -55,8 +66,8 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
55
66
  end
56
67
 
57
68
  unless File.exist? binary
58
- raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 ' \
59
- 'CentOS 6/7/8, Debian 9/10, archlinux amd64, or intel-based Cocoa 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 ' \
60
71
  "(missing binary: #{binary})."
61
72
  end
62
73
 
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.3
4
+ version: 0.12.6.6
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-08-05 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,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:
@@ -49,6 +63,7 @@ files:
49
63
  - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
50
64
  - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
51
65
  - bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
66
+ - bin/wkhtmltopdf_ubuntu_22.04_amd64.gz
52
67
  homepage:
53
68
  licenses:
54
69
  - Apache-2.0
@@ -68,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
83
  - !ruby/object:Gem::Version
69
84
  version: '0'
70
85
  requirements: []
71
- rubygems_version: 3.0.3
86
+ rubygems_version: 3.2.3
72
87
  signing_key:
73
88
  specification_version: 4
74
89
  summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.